Home
last modified time | relevance | path

Searched refs:mdlen (Results 1 – 16 of 16) sorted by relevance

/external/chromium_org/third_party/boringssl/src/crypto/rsa/
Dpadding.c329 unsigned mdlen; in PKCS1_MGF1() local
333 mdlen = EVP_MD_size(dgst); in PKCS1_MGF1()
345 if (outlen + mdlen <= len) { in PKCS1_MGF1()
349 outlen += mdlen; in PKCS1_MGF1()
369 unsigned i, emlen, mdlen; in RSA_padding_add_PKCS1_OAEP_mgf1() local
381 mdlen = EVP_MD_size(md); in RSA_padding_add_PKCS1_OAEP_mgf1()
383 if (tlen < 2 * mdlen + 2) { in RSA_padding_add_PKCS1_OAEP_mgf1()
390 if (flen > emlen - 2 * mdlen - 1) { in RSA_padding_add_PKCS1_OAEP_mgf1()
396 if (emlen < 2 * mdlen + 1) { in RSA_padding_add_PKCS1_OAEP_mgf1()
404 db = to + mdlen + 1; in RSA_padding_add_PKCS1_OAEP_mgf1()
[all …]
/external/openssl/crypto/cms/
Dcms_dd.c108 unsigned int mdlen; in cms_DigestedData_do_final() local
118 if (EVP_DigestFinal_ex(&mctx, md, &mdlen) <= 0) in cms_DigestedData_do_final()
123 if (mdlen != (unsigned int)dd->digest->length) in cms_DigestedData_do_final()
130 if (memcmp(md, dd->digest->data, mdlen)) in cms_DigestedData_do_final()
138 if (!ASN1_STRING_set(dd->digest, md, mdlen)) in cms_DigestedData_do_final()
Dcms_sd.c643 unsigned int mdlen; in cms_SignerInfo_content_sign() local
644 if (!EVP_DigestFinal_ex(&mctx, md, &mdlen)) in cms_SignerInfo_content_sign()
648 md, mdlen)) in cms_SignerInfo_content_sign()
/external/chromium_org/third_party/boringssl/src/crypto/evp/
Dpbkdf.c65 size_t cplen, mdlen, tkeylen, k; in PKCS5_PBKDF2_HMAC() local
70 mdlen = EVP_MD_size(digest); in PKCS5_PBKDF2_HMAC()
86 if (tkeylen > mdlen) { in PKCS5_PBKDF2_HMAC()
87 cplen = mdlen; in PKCS5_PBKDF2_HMAC()
115 if (!HMAC_Update(&hctx, digest_tmp, mdlen) || in PKCS5_PBKDF2_HMAC()
Ddigestsign.c156 unsigned int mdlen; in EVP_DigestSignFinal() local
165 r = EVP_DigestFinal_ex(&tmp_ctx, md, &mdlen); in EVP_DigestSignFinal()
171 if (EVP_PKEY_sign(ctx->pctx, out_sig, out_sig_len, md, mdlen) <= 0) { in EVP_DigestSignFinal()
194 unsigned int mdlen; in EVP_DigestVerifyFinal() local
204 r = EVP_DigestFinal_ex(&tmp_ctx, md, &mdlen); in EVP_DigestVerifyFinal()
211 return EVP_PKEY_verify(ctx->pctx, sig, sig_len, md, mdlen); in EVP_DigestVerifyFinal()
/external/openssl/crypto/evp/
Dm_sigver.c142 unsigned int mdlen; in EVP_DigestSignFinal() local
150 r = EVP_DigestFinal_ex(&tmp_ctx,md,&mdlen); in EVP_DigestSignFinal()
154 if (EVP_PKEY_sign(ctx->pctx, sigret, siglen, md, mdlen) <= 0) in EVP_DigestSignFinal()
179 unsigned int mdlen; in EVP_DigestVerifyFinal() local
195 r = EVP_DigestFinal_ex(&tmp_ctx,md,&mdlen); in EVP_DigestVerifyFinal()
199 return EVP_PKEY_verify(ctx->pctx, sig, siglen, md, mdlen); in EVP_DigestVerifyFinal()
Dp5_crpt2.c86 int cplen, j, k, tkeylen, mdlen; in PKCS5_PBKDF2_HMAC() local
90 mdlen = EVP_MD_size(digest); in PKCS5_PBKDF2_HMAC()
91 if (mdlen < 0) in PKCS5_PBKDF2_HMAC()
108 if(tkeylen > mdlen) in PKCS5_PBKDF2_HMAC()
109 cplen = mdlen; in PKCS5_PBKDF2_HMAC()
141 if (!HMAC_Update(&hctx, digtmp, mdlen) in PKCS5_PBKDF2_HMAC()
/external/chromium_org/third_party/boringssl/src/crypto/ecdh/
Decdh.c173 size_t mdlen; in ECDH_KDF_X9_62() local
179 mdlen = EVP_MD_size(md); in ECDH_KDF_X9_62()
195 if (outlen >= mdlen) { in ECDH_KDF_X9_62()
199 outlen -= mdlen; in ECDH_KDF_X9_62()
203 out += mdlen; in ECDH_KDF_X9_62()
209 OPENSSL_cleanse(mtmp, mdlen); in ECDH_KDF_X9_62()
/external/openssl/crypto/rsa/
Drsa_oaep.c219 int mdlen; in PKCS1_MGF1() local
223 mdlen = EVP_MD_size(dgst); in PKCS1_MGF1()
224 if (mdlen < 0) in PKCS1_MGF1()
236 if (outlen + mdlen <= len) in PKCS1_MGF1()
240 outlen += mdlen; in PKCS1_MGF1()
/external/openssl/crypto/ocsp/
Docsp_vfy.c306 int mdlen; in ocsp_match_issuerid() local
314 mdlen = EVP_MD_size(dgst); in ocsp_match_issuerid()
315 if (mdlen < 0) in ocsp_match_issuerid()
317 if ((cid->issuerNameHash->length != mdlen) || in ocsp_match_issuerid()
318 (cid->issuerKeyHash->length != mdlen)) in ocsp_match_issuerid()
323 if (memcmp(md, cid->issuerNameHash->data, mdlen)) in ocsp_match_issuerid()
326 if (memcmp(md, cid->issuerKeyHash->data, mdlen)) in ocsp_match_issuerid()
/external/wpa_supplicant_8/src/eap_common/
Deap_pwd_common.c46 size_t resultbytelen, len = 0, mdlen; in eap_pwd_kdf() local
63 mdlen = SHA256_MAC_LEN; in eap_pwd_kdf()
64 if (crypto_hash_finish(hash, digest, &mdlen) < 0) in eap_pwd_kdf()
66 if ((len + mdlen) > resultbytelen) in eap_pwd_kdf()
69 os_memcpy(result + len, digest, mdlen); in eap_pwd_kdf()
70 len += mdlen; in eap_pwd_kdf()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_openssl.c660 unsigned int mdlen; in crypto_hash_finish() local
671 mdlen = *len; in crypto_hash_finish()
673 HMAC_Final(&ctx->ctx, mac, &mdlen); in crypto_hash_finish()
676 res = HMAC_Final(&ctx->ctx, mac, &mdlen); in crypto_hash_finish()
682 *len = mdlen; in crypto_hash_finish()
712 unsigned int mdlen; in hmac_sha1_vector() local
726 mdlen = 20; in hmac_sha1_vector()
728 HMAC_Final(&ctx, mac, &mdlen); in hmac_sha1_vector()
731 res = HMAC_Final(&ctx, mac, &mdlen); in hmac_sha1_vector()
753 unsigned int mdlen; in hmac_sha256_vector() local
[all …]
/external/openssl/crypto/pkcs7/
Dpk7_attr.c151 const unsigned char *md, int mdlen) in PKCS7_add1_attrib_digest() argument
157 if (!ASN1_STRING_set(os, md, mdlen) in PKCS7_add1_attrib_digest()
Dpkcs7.h378 const unsigned char *md, int mdlen);
/external/ppp/pppd/
Dchap_ms.c523 int mdlen = secret_len; in NTPasswordHash() local
527 int mdlen = secret_len; in NTPasswordHash()
529 int mdlen = secret_len * 8; in NTPasswordHash()
535 MD4Update(&md4Context, (unsigned char *)secret, mdlen); in NTPasswordHash()
/external/openssl/include/openssl/
Dpkcs7.h378 const unsigned char *md, int mdlen);