Searched refs:sha1_ctx (Results 1 - 4 of 4) sorted by relevance
/darwin-on-arm/xnu/libkern/crypto/ |
H A D | corecrypto_sha1.c | 23 static void DiToSHA1(const struct ccdigest_info *di, struct ccdigest_ctx *di_ctx, SHA1_CTX *sha1_ctx) argument 25 setCount(sha1_ctx, ccdigest_nbits(di, di_ctx)/8+ccdigest_num(di, di_ctx)); 26 memcpy(sha1_ctx->m.b8, ccdigest_data(di, di_ctx), di->block_size); 27 memcpy(sha1_ctx->h.b8, ccdigest_state_ccn(di, di_ctx), di->state_size); 31 static void SHA1ToDi(const struct ccdigest_info *di, SHA1_CTX *sha1_ctx, struct ccdigest_ctx *di_ctx) argument 33 uint64_t count = getCount(sha1_ctx); 37 memcpy(ccdigest_data(di, di_ctx), sha1_ctx->m.b8, di->block_size); 38 memcpy(ccdigest_state_ccn(di, di_ctx), sha1_ctx->h.b8, di->state_size);
|
/darwin-on-arm/xnu/bsd/nfs/ |
H A D | nfs_gss_crypto.c | 242 SHA1Init(&ctx->sha1_ctx); 251 SHA1Update(&ctx->sha1_ctx, ipad, sizeof(ipad)); 260 SHA1Update(&ctx->sha1_ctx, data, len); 273 SHA1Final(digest, &ctx->sha1_ctx); 278 SHA1Init(&ctx->sha1_ctx); 279 SHA1Update(&ctx->sha1_ctx, opad, sizeof(opad)); 280 SHA1Update(&ctx->sha1_ctx, digest, SHA1_RESULTLEN); 281 SHA1Final(digest, &ctx->sha1_ctx);
|
H A D | nfs_gss_crypto.h | 47 SHA1_CTX sha1_ctx; member in struct:__anon448
|
/darwin-on-arm/xnu/bsd/dev/random/ |
H A D | randomdev.c | 221 SHA1_CTX sha1_ctx; local 239 FIPS_SHA1Init(&sha1_ctx); 246 FIPS_SHA1Update(&sha1_ctx, g_xkey, kBlockSize); 249 FIPS_SHA1Update (&sha1_ctx, (const u_int8_t *)zeros, sizeof (zeros)); 260 *finger++ = OSSwapHostToBigInt32(sha1_ctx.h.b32[j]); 264 u_int32_t new_crc = CalculateCRC(sha1_ctx.h.b8, sizeof (Block));
|
Completed in 19 milliseconds