Searched refs:digest (Results 1 - 9 of 9) sorted by relevance

/macosx-10.5.8/xnu-1228.15.4/bsd/dev/random/YarrowCoreLib/src/
H A Dsha1mod.h67 __private_extern__ void YSHA1Final(unsigned char digest[20],
H A Dsha1mod.c162 /* Add padding and return the message digest. */
165 YSHA1Final(unsigned char digest[20], YSHA1_CTX* context) argument
180 digest[i] = (unsigned char)
205 unsigned char digest[20], buffer[16384];
227 YSHA1Final(digest, &context);
231 printf("%02X", digest[i*4+j]);
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/
H A Dah_core.c339 u_char digest[16]; local
349 MD5Final(&digest[0], (MD5_CTX *)state->foo);
351 bcopy(&digest[0], (void *)addr, sizeof(digest));
460 u_char digest[SHA1_RESULTLEN]; /* SHA-1 generates 160 bits */ local
471 SHA1Final((caddr_t)&digest[0], ctxt);
472 bcopy(&digest[0], (void *)addr, HMACSIZE);
577 u_char digest[16]; local
589 MD5Final(&digest[0], ctxt);
593 MD5Update(ctxt, &digest[
703 u_char digest[SHA1_RESULTLEN]; /* SHA-1 generates 160 bits */ local
835 u_char digest[SHA256_DIGEST_LENGTH]; local
968 u_char digest[SHA384_DIGEST_LENGTH]; local
1101 u_char digest[SHA512_DIGEST_LENGTH]; local
[all...]
H A Din6_ifattach.c143 u_int8_t digest[16]; local
156 MD5Final(digest, &ctxt);
158 /* assumes sizeof(digest) > sizeof(ifid) */
159 bcopy(digest, &in6->s6_addr[8], 8);
178 u_int8_t seed[16], digest[16], nullbuf[8]; local
213 MD5Final(digest, &ctxt);
217 * Take the left-most 64-bits of the MD5 digest and set bit 6 (the
220 bcopy(digest, ret, 8);
225 * for simplicity. If the caclculated digest happens to be zero,
239 * Take the rightmost 64-bits of the MD5 digest an
691 u_int8_t digest[16]; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/crypto/sha2/
H A Dsha2.c312 * digest to a readable hexadecimal character string:
550 void SHA256_Final(sha2_byte digest[], SHA256_CTX* context) { argument
551 sha2_word32 *d = (sha2_word32*)digest;
557 /* If no digest buffer is passed, we don't bother doing this: */
558 if (digest != (sha2_byte*)0) {
614 sha2_byte digest[SHA256_DIGEST_LENGTH], *d = digest; local
621 SHA256_Final(digest, context);
632 bzero(digest, SHA256_DIGEST_LENGTH);
636 char* SHA256_Data(const sha2_byte* data, size_t len, char digest[SHA256_DIGEST_STRING_LENGT argument
913 SHA512_Final(sha2_byte digest[], SHA512_CTX* context) argument
943 sha2_byte digest[SHA512_DIGEST_LENGTH], *d = digest; local
965 SHA512_Data(const sha2_byte* data, size_t len, char digest[SHA512_DIGEST_STRING_LENGTH]) argument
988 SHA384_Final(sha2_byte digest[], SHA384_CTX* context) argument
1018 sha2_byte digest[SHA384_DIGEST_LENGTH], *d = digest; local
1040 SHA384_Data(const sha2_byte* data, size_t len, char digest[SHA384_DIGEST_STRING_LENGTH]) argument
[all...]
/macosx-10.5.8/xnu-1228.15.4/iokit/Kernel/
H A DIOPlatformExpert.cpp873 uint8_t digest[ SHA_DIGEST_LENGTH ]; local
879 SHA1Final( digest, &context );
881 digest[ 6 ] = ( digest[ 6 ] & 0x0F ) | 0x50;
882 digest[ 8 ] = ( digest[ 8 ] & 0x3F ) | 0x80;
884 uuid_unparse( digest, uuid );
/macosx-10.5.8/xnu-1228.15.4/libkern/crypto/
H A Dsha1.c70 * The digest algorithm interprets the input message as a sequence of 32-bit
174 * SHA1 block update operation. Continues a SHA1 message-digest
327 SHA1Final_r(SHA1_CTX *context, void *digest) argument
329 SHA1Final(digest, context);
333 * SHA1 finalization. Ends an SHA1 message-digest operation, writing the
334 * the message digest and zeroizing the context.
337 SHA1Final(void *digest, SHA1_CTX *context) argument
351 /* Store state in digest */
352 Encode(digest, context->state, 20);
H A Dmd5.c30 * MD5.C - RSA Data Security, Inc., MD5 message-digest algorithm
65 * The digest algorithm interprets the input message as a sequence of 32-bit
168 * MD5 block update operation. Continues an MD5 message-digest
215 * MD5 finalization. Ends an MD5 message-digest operation, writing the
216 * the message digest and zeroizing the context.
219 MD5Final(unsigned char digest[MD5_DIGEST_LENGTH], MD5_CTX *context) argument
233 /* Store state in digest */
234 Encode(digest, context->state, 16);
/macosx-10.5.8/xnu-1228.15.4/bsd/nfs/
H A Dnfs_gss.c2907 * Start building an MD5 digest at the given offset and keep
2909 * Then convert the 16 byte MD5 digest to an 8 byte DES CBC
2925 u_char digest[16]; local
2960 MD5Final(digest, &context);
2963 * Now get the DES CBC checksum for the digest.
2965 (void) des_cbc_cksum((des_cblock *) digest, (des_cblock *) cksum,
2966 sizeof(digest), sched, (des_cblock *) iv0);
2971 * Start building an MD5 digest at the given offset and keep
2973 * Then convert the 16 byte MD5 digest to an 8 byte DES CBC
3004 u_char digest[1 local
[all...]

Completed in 130 milliseconds