Searched refs:di_ctx (Results 1 - 2 of 2) sorted by relevance
/darwin-on-arm/xnu/libkern/crypto/ |
H A D | corecrypto_md5.c | 22 static void DiToMD5(const struct ccdigest_info *di, struct ccdigest_ctx *di_ctx, MD5_CTX *md5_ctx) argument 24 setCount(md5_ctx, ccdigest_nbits(di, di_ctx)/8+ccdigest_num(di, di_ctx)); 25 memcpy(md5_ctx->buffer, ccdigest_data(di, di_ctx), di->block_size); 26 memcpy(md5_ctx->state, ccdigest_state_ccn(di, di_ctx), di->state_size); 30 static void MD5ToDi(const struct ccdigest_info *di, MD5_CTX *md5_ctx, struct ccdigest_ctx *di_ctx) argument 34 ccdigest_num(di, di_ctx)=count%di->block_size; 35 ccdigest_nbits(di, di_ctx)=(count-ccdigest_num(di, di_ctx))*8; 36 memcpy(ccdigest_data(di, di_ctx), md5_ct [all...] |
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 35 ccdigest_num(di, di_ctx)=count%di->block_size; 36 ccdigest_nbits(di, di_ctx)=(count-ccdigest_num(di, di_ctx))*8; 37 memcpy(ccdigest_data(di, di_ctx), sha1_ct [all...] |
Completed in 13 milliseconds