Home
last modified time | relevance | path

Searched refs:digest (Results 1 – 4 of 4) sorted by relevance

/dalvik/libdex/
Dsha1.h18 void SHA1Final(unsigned char digest[HASHSIZE], SHA1_CTX* context);
Dsha1.c241 void SHA1Final(unsigned char digest[HASHSIZE], SHA1_CTX* in SHA1Final()
260 digest[i] = (unsigned char) in SHA1Final()
282 void sha1file(char *fname, unsigned char* digest) in sha1file() argument
295 memset(digest, 0, HASHSIZE); in sha1file()
309 SHA1Final(digest, &context); in sha1file()
333 unsigned char digest[HASHSIZE]; in verifyfile() local
368 sha1file(s, digest); in verifyfile()
373 err |= digest[k]- in verifyfile()
384 fprintf(stderr, "%02X", digest[k]); in verifyfile()
423 unsigned char digest[HASHSIZE]; in main() local
[all …]
DDexFile.c298 const char* dvmSHA1DigestToStr(const unsigned char digest[], char* tmpBuf);
304 unsigned char digest[]) in dexComputeSHA1Digest() argument
309 SHA1Final(digest, &context); in dexComputeSHA1Digest()
316 static const char* dexSHA1DigestToStr(const unsigned char digest[],char* tmpBuf) in dexSHA1DigestToStr() argument
324 *cp++ = hexDigit[digest[i] >> 4]; in dexSHA1DigestToStr()
325 *cp++ = hexDigit[digest[i] & 0x0f]; in dexSHA1DigestToStr()
/dalvik/dx/src/com/android/dx/dex/file/
DDexFile.java619 int amt = md.digest(bytes, 12, 20); in calcSignature()