Searched refs:mdlen (Results 1 – 6 of 6) sorted by relevance
/external/boringssl/src/crypto/rsa/ |
D | padding.c | 285 unsigned mdlen; in PKCS1_MGF1() local 289 mdlen = EVP_MD_size(dgst); in PKCS1_MGF1() 302 if (outlen + mdlen <= len) { in PKCS1_MGF1() 306 outlen += mdlen; in PKCS1_MGF1() 326 unsigned i, emlen, mdlen; in RSA_padding_add_PKCS1_OAEP_mgf1() local 338 mdlen = EVP_MD_size(md); in RSA_padding_add_PKCS1_OAEP_mgf1() 340 if (to_len < 2 * mdlen + 2) { in RSA_padding_add_PKCS1_OAEP_mgf1() 346 if (from_len > emlen - 2 * mdlen - 1) { in RSA_padding_add_PKCS1_OAEP_mgf1() 351 if (emlen < 2 * mdlen + 1) { in RSA_padding_add_PKCS1_OAEP_mgf1() 358 db = to + mdlen + 1; in RSA_padding_add_PKCS1_OAEP_mgf1() [all …]
|
/external/boringssl/src/crypto/evp/ |
D | digestsign.c | 130 unsigned int mdlen; in EVP_DigestSignFinal() local 134 EVP_DigestFinal_ex(&tmp_ctx, md, &mdlen) && in EVP_DigestSignFinal() 135 EVP_PKEY_sign(ctx->pctx, out_sig, out_sig_len, md, mdlen); in EVP_DigestSignFinal() 150 unsigned int mdlen; in EVP_DigestVerifyFinal() local 154 EVP_DigestFinal_ex(&tmp_ctx, md, &mdlen) && in EVP_DigestVerifyFinal() 155 EVP_PKEY_verify(ctx->pctx, sig, sig_len, md, mdlen); in EVP_DigestVerifyFinal()
|
D | pbkdf.c | 67 size_t cplen, mdlen, tkeylen, k; in PKCS5_PBKDF2_HMAC() local 72 mdlen = EVP_MD_size(digest); in PKCS5_PBKDF2_HMAC() 81 if (tkeylen > mdlen) { in PKCS5_PBKDF2_HMAC() 82 cplen = mdlen; in PKCS5_PBKDF2_HMAC() 110 if (!HMAC_Update(&hctx, digest_tmp, mdlen) || in PKCS5_PBKDF2_HMAC()
|
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_pwd_common.c | 46 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/ppp/pppd/ |
D | chap_ms.c | 583 int mdlen = secret_len; in NTPasswordHash() local 587 int mdlen = secret_len; in NTPasswordHash() 589 int mdlen = secret_len * 8; in NTPasswordHash() 596 while (mdlen > 512) { in NTPasswordHash() 599 mdlen -= 512; in NTPasswordHash() 601 MD4Update(&md4Context, secret, mdlen); in NTPasswordHash()
|
/external/wpa_supplicant_8/src/crypto/ |
D | crypto_openssl.c | 795 unsigned int mdlen; in crypto_hash_finish() local 807 mdlen = *len; in crypto_hash_finish() 808 res = HMAC_Final(ctx->ctx, mac, &mdlen); in crypto_hash_finish() 813 *len = mdlen; in crypto_hash_finish() 824 unsigned int mdlen) in openssl_hmac_vector() argument 843 res = HMAC_Final(ctx, mac, &mdlen); in openssl_hmac_vector()
|