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

/darwin-on-arm/xnu/libkern/libkern/crypto/
H A Dsha2.h63 void SHA256_Final(void *digest, SHA256_CTX *ctx);
67 void SHA384_Final(void *digest, SHA384_CTX *ctx);
71 void SHA512_Final(void *digest, SHA512_CTX *ctx);
H A Dregister_crypto.h48 void *digest);
50 const void *data, void *digest);
89 /* digest implementations */
/darwin-on-arm/xnu/libkern/crypto/
H A Dcorecrypto_sha2.c39 /* Make sure the context size for the digest info fits in the one we have */
54 void SHA256_Final(void *digest, SHA256_CTX *ctx) argument
59 ccdigest_final(di, ctx->ctx, digest);
67 /* Make sure the context size for the digest info fits in the one we have */
83 void SHA384_Final(void *digest, SHA384_CTX *ctx) argument
88 ccdigest_final(di, ctx->ctx, digest);
96 /* Make sure the context size for the digest info fits in the one we have */
111 void SHA512_Final(void *digest, SHA512_CTX *ctx) argument
116 ccdigest_final(di, ctx->ctx, digest);
H A Dcorecrypto_sha1.c61 void SHA1Final(void *digest, SHA1_CTX *ctx) argument
67 ccdigest_final(di, di_ctx, digest);
79 void SHA1Final_r(SHA1_CTX *context, void *digest);
80 void SHA1Final_r(SHA1_CTX *context, void *digest) argument
82 SHA1Final(digest, context);
H A Dcorecrypto_md5.c60 void MD5Final(unsigned char digest[MD5_DIGEST_LENGTH], MD5_CTX *ctx) argument
66 ccdigest_final(di, di_ctx, digest);
H A Dlocalcrypto_sha1.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 Dlocalcrypto_md5.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);
/darwin-on-arm/xnu/bsd/dev/random/YarrowCoreLib/src/
H A Dsha1mod.h69 __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]);
/darwin-on-arm/xnu/EXTERNAL_HEADERS/corecrypto/
H A Dcchmac.h23 ccdigest_ctx_t digest; member in union:__anon6
37 #define cchmac_digest_ctx(_di_, HC) (((cchmac_ctx_t)(HC)).digest)
47 #define cchmac_istate(_di_, HC) ((ccdigest_state_t)(((cchmac_ctx_t)(HC)).digest))
52 #define cchmac_data(_di_, HC) ccdigest_data(_di_, ((cchmac_ctx_t)(HC)).digest)
53 #define cchmac_num(_di_, HC) ccdigest_num(_di_, ((cchmac_ctx_t)(HC)).digest)
54 #define cchmac_nbits(_di_, HC) ccdigest_nbits(_di_, ((cchmac_ctx_t)(HC)).digest)
H A Dccsha1.h27 unsigned char *digest);
H A Dccdigest.h16 /* To malloc a digest context for a given di, use malloc(ccdigest_di_size(di))
56 unsigned char *digest);
105 void ccdigest_final(const struct ccdigest_info *di, ccdigest_ctx_t ctx, unsigned char *digest) argument
107 di->final(di,ctx,digest);
111 const void *data, void *digest);
115 const void *data, const void *digest);
118 const void *data, const void *digest, unsigned long chunk);
123 const void *digest; member in struct:ccdigest_vector
/darwin-on-arm/xnu/bsd/netinet6/
H A Dah_core.c372 u_char digest[16] __attribute__((aligned(4))); local
382 MD5Final(&digest[0], (MD5_CTX *)state->foo);
384 bcopy(&digest[0], (void *)addr, sizeof(digest) > l ? l : sizeof(digest));
494 u_char digest[SHA1_RESULTLEN] __attribute__((aligned(4))); /* SHA-1 generates 160 bits */ local
505 SHA1Final((caddr_t)&digest[0], ctxt);
506 bcopy(&digest[0], (void *)addr, sizeof(digest) > l ? l : sizeof(digest));
612 u_char digest[16] __attribute__((aligned(4))); local
739 u_char digest[SHA1_RESULTLEN] __attribute__((aligned(4))); /* SHA-1 generates 160 bits */ local
882 u_char digest[SHA256_DIGEST_LENGTH] __attribute__((aligned(4))); local
1025 u_char digest[SHA384_DIGEST_LENGTH]; local
1168 u_char digest[SHA512_DIGEST_LENGTH] __attribute__((aligned(4))); local
[all...]
H A Din6_ifattach.c140 u_int8_t digest[SHA1_RESULTLEN]; local
153 SHA1Final(digest, &ctxt);
155 /* assumes sizeof(digest) > sizeof(ifid) */
156 bcopy(digest, &in6->s6_addr[8], 8);
175 u_int8_t seed[16], nullbuf[8], digest[SHA1_RESULTLEN]; local
210 SHA1Final(digest, &ctxt);
214 * Take the left-most 64-bits of the SHA1 digest and set bit 6 (the
217 bcopy(digest, ret, 8);
222 * for simplicity. If the caclculated digest happens to be zero,
236 * Take the next 64-bits of the SHA1 digest an
683 u_int8_t digest[SHA1_RESULTLEN]; local
[all...]
/darwin-on-arm/xnu/bsd/nfs/
H A Dnfs_gss_crypto.c264 * Finish the context and produce the HMAC SHA1 digest.
268 HMAC_SHA1_DES3KD_Final(void *digest, HMAC_SHA1_DES3KD_CTX *ctx) argument
273 SHA1Final(digest, &ctx->sha1_ctx);
280 SHA1Update(&ctx->sha1_ctx, digest, SHA1_RESULTLEN);
281 SHA1Final(digest, &ctx->sha1_ctx);
304 * Finalize the context and extract the digest.
307 void MD5_DESCBC_Final(void *digest, MD5_DESCBC_CTX *ctx) argument
314 * Now get the DES CBC checksum for the digest.
316 des_cbc_cksum((des_cblock *) md5_digest, (des_cblock *)digest,
H A Dnfs_gss.c3181 * Start building an MD5 digest at the given offset and keep
3183 * Then convert the 16 byte MD5 digest to an 8 byte DES CBC
3193 u_char *digest)
3233 gss_digest_Final(&context, digest);
3238 * Start building an MD5 digest at the given offset and keep
3240 * Then convert the 16 byte MD5 digest to an 8 byte DES CBC
3282 * Compute the digest of the seqnum in network order
3411 gss_digest_Final(GSS_DIGEST_CTX *ctx, void *digest) argument
3414 case NFS_GSS_1DES: MD5_DESCBC_Final(digest, &ctx->m_ctx);
3416 case NFS_GSS_3DES: HMAC_SHA1_DES3KD_Final(digest,
3187 nfs_gss_cksum_mchain( gss_key_info *ki, mbuf_t mhead, u_char *alg, int offset, int len, u_char *digest) argument
[all...]
/darwin-on-arm/xnu/iokit/Kernel/
H A DIOPlatformExpert.cpp952 uint8_t digest[ SHA_DIGEST_LENGTH ]; local
959 SHA1Final( digest, &context );
961 digest[ 6 ] = ( digest[ 6 ] & 0x0F ) | 0x50;
962 digest[ 8 ] = ( digest[ 8 ] & 0x3F ) | 0x80;
964 uuid_unparse( digest, uuid );
979 uint8_t digest[ SHA_DIGEST_LENGTH ]; local
985 SHA1Final( digest, &context );
987 digest[
[all...]
/darwin-on-arm/xnu/bsd/dev/random/
H A Dfips_sha1.c80 * The digest algorithm interprets the input message as a sequence of 32-bit
173 * SHA1 block update operation. Continues a SHA1 message-digest
237 * SHA1 finalization. Ends an SHA1 message-digest operation, writing the
238 * the message digest and zeroizing the context.
241 FIPS_SHA1Final(void *digest, SHA1_CTX *context) argument
255 /* Store state in digest */
256 Encode(digest, context->state, 20);
/darwin-on-arm/xnu/bsd/net/
H A Dpf_ioctl.c1518 u_int8_t digest[PF_MD5_DIGEST_LENGTH]; local
1547 MD5Final(digest, &ctx);
1548 memcpy(pf_status.pf_chksum, digest, sizeof (pf_status.pf_chksum));
H A Dpf.c3977 u_int32_t digest[4]; local
3997 MD5Final((u_char *)digest, &ctx);
3999 return (digest[0] + random() + pf_tcp_iss_off);

Completed in 288 milliseconds