/external/fio/crc/ |
md5.c | 91 void fio_md5_init(struct fio_md5_ctx *mctx) 93 mctx->hash[0] = 0x67452301; 94 mctx->hash[1] = 0xefcdab89; 95 mctx->hash[2] = 0x98badcfe; 96 mctx->hash[3] = 0x10325476; 99 void fio_md5_update(struct fio_md5_ctx *mctx, const uint8_t *data, 102 const uint32_t avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); 104 mctx->byte_count += len; 107 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail) [all...] |
/external/openssl/crypto/cms/ |
cms_dd.c | 106 EVP_MD_CTX mctx; local 111 EVP_MD_CTX_init(&mctx); 115 if (!cms_DigestAlgorithm_find_ctx(&mctx, chain, dd->digestAlgorithm)) 118 if (EVP_DigestFinal_ex(&mctx, md, &mdlen) <= 0) 144 EVP_MD_CTX_cleanup(&mctx);
|
cms_sd.c | 622 EVP_MD_CTX mctx; local 624 EVP_MD_CTX_init(&mctx); 633 if (!cms_DigestAlgorithm_find_ctx(&mctx, chain, si->digestAlgorithm)) 644 if (!EVP_DigestFinal_ex(&mctx, md, &mdlen)) 668 if (!EVP_SignFinal(&mctx, sig, &siglen, si->pkey)) 681 EVP_MD_CTX_cleanup(&mctx); 704 EVP_MD_CTX mctx; local 715 EVP_MD_CTX_init(&mctx); 723 if (EVP_DigestSignInit(&mctx, &pctx, md, NULL, si->pkey) <= 0) 737 if (EVP_DigestSignUpdate(&mctx, abuf, alen) <= 0 771 EVP_MD_CTX mctx; local 845 EVP_MD_CTX mctx; local [all...] |
cms_lib.c | 390 int cms_DigestAlgorithm_find_ctx(EVP_MD_CTX *mctx, BIO *chain, 414 return EVP_MD_CTX_copy_ex(mctx, mtmp);
|
cms_lcl.h | 450 int cms_DigestAlgorithm_find_ctx(EVP_MD_CTX *mctx, BIO *chain,
|
/external/chromium_org/third_party/boringssl/src/crypto/ecdh/ |
ecdh.c | 170 EVP_MD_CTX mctx; local 180 EVP_MD_CTX_init(&mctx); 184 EVP_DigestInit_ex(&mctx, md, NULL); 189 if (!EVP_DigestUpdate(&mctx, Z, Zlen) || 190 !EVP_DigestUpdate(&mctx, ctr, sizeof(ctr)) || 191 !EVP_DigestUpdate(&mctx, sinfo, sinfolen)) { 196 if (!EVP_DigestFinal(&mctx, out, NULL)) { 205 if (!EVP_DigestFinal(&mctx, mtmp, NULL)) { 216 EVP_MD_CTX_cleanup(&mctx);
|
/external/chromium_org/third_party/boringssl/src/crypto/evp/ |
p_hmac.c | 144 static int hmac_signctx_init(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx) { 147 HMAC_CTX_set_flags(&hctx->ctx, mctx->flags & ~EVP_MD_CTX_FLAG_NO_INIT); 148 EVP_MD_CTX_set_flags(mctx, EVP_MD_CTX_FLAG_NO_INIT); 149 mctx->update = int_update; 154 EVP_MD_CTX *mctx) { 157 size_t md_size = EVP_MD_CTX_size(mctx);
|
internal.h | 204 int (*signctx_init)(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx); 206 EVP_MD_CTX *mctx); 208 int (*verifyctx_init)(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx); 210 EVP_MD_CTX *mctx);
|
/external/openssl/crypto/hmac/ |
hm_pmeth.c | 150 static int hmac_signctx_init(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx) 153 HMAC_CTX_set_flags(&hctx->ctx, mctx->flags & ~EVP_MD_CTX_FLAG_NO_INIT); 154 EVP_MD_CTX_set_flags(mctx, EVP_MD_CTX_FLAG_NO_INIT); 155 mctx->update = int_update; 160 EVP_MD_CTX *mctx) 164 int l = EVP_MD_CTX_size(mctx);
|
/external/openssl/crypto/cmac/ |
cm_pmeth.c | 109 static int cmac_signctx_init(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx) 111 EVP_MD_CTX_set_flags(mctx, EVP_MD_CTX_FLAG_NO_INIT); 112 mctx->update = int_update; 117 EVP_MD_CTX *mctx)
|
/external/openssl/apps/ |
req.c | 1810 EVP_MD_CTX mctx; local 1824 EVP_MD_CTX mctx; local 1839 EVP_MD_CTX mctx; local [all...] |
dgst.c | 420 EVP_MD_CTX *mctx = NULL; local 423 if (!BIO_get_md_ctx(bmd, &mctx)) 430 r = EVP_DigestVerifyInit(mctx, &pctx, md, NULL, sigkey); 432 r = EVP_DigestSignInit(mctx, &pctx, md, NULL, sigkey);
|
/external/openssl/crypto/pkcs7/ |
pk7_doit.c | 708 static int do_pkcs7_signed_attrib(PKCS7_SIGNER_INFO *si, EVP_MD_CTX *mctx) 725 if (!EVP_DigestFinal_ex(mctx, md_data,&md_len)) 907 EVP_MD_CTX mctx; local 918 EVP_MD_CTX_init(&mctx); 919 if (EVP_DigestSignInit(&mctx, &pctx, md,NULL, si->pkey) <= 0) 933 if (EVP_DigestSignUpdate(&mctx,abuf,alen) <= 0) 937 if (EVP_DigestSignFinal(&mctx, NULL, &siglen) <= 0) 942 if (EVP_DigestSignFinal(&mctx, abuf, &siglen) <= 0) 952 EVP_MD_CTX_cleanup(&mctx); 961 EVP_MD_CTX_cleanup(&mctx); [all...] |
/external/chromium_org/third_party/boringssl/src/ssl/ |
s3_both.c | 510 EVP_MD_CTX mctx; local 518 EVP_MD_CTX_init(&mctx); 519 if (!EVP_DigestInit_ex(&mctx, *out_md, NULL) 520 || !EVP_DigestUpdate(&mctx, hdata, hdatalen) 521 || !EVP_DigestFinal(&mctx, out, &len)) 524 EVP_MD_CTX_cleanup(&mctx);
|
/external/openssl/crypto/evp/ |
evp_locl.h | 320 int (*signctx_init)(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx); 322 EVP_MD_CTX *mctx); 324 int (*verifyctx_init)(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx); 326 EVP_MD_CTX *mctx);
|
pmeth_lib.c | 544 int (*signctx_init)(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx), 546 EVP_MD_CTX *mctx)) 553 int (*verifyctx_init)(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx), 555 EVP_MD_CTX *mctx))
|
evp.h | [all...] |
/external/openssl/crypto/pem/ |
pvkfmt.c | 711 EVP_MD_CTX mctx; local 713 EVP_MD_CTX_init(&mctx); 714 if (!EVP_DigestInit_ex(&mctx, EVP_sha1(), NULL) 715 || !EVP_DigestUpdate(&mctx, salt, saltlen) 716 || !EVP_DigestUpdate(&mctx, pass, passlen) 717 || !EVP_DigestFinal_ex(&mctx, key, NULL)) 720 EVP_MD_CTX_cleanup(&mctx);
|
/external/openssl/include/openssl/ |
evp.h | [all...] |
/external/openssl/ssl/ |
s3_clnt.c | 3218 EVP_MD_CTX mctx; local [all...] |
s3_srvr.c | 3018 EVP_MD_CTX mctx; local [all...] |