Home
last modified time | relevance | path

Searched refs:md_size (Results 1 – 7 of 7) sorted by relevance

/external/boringssl/src/crypto/cipher/
Dtls_cbc.c132 void EVP_tls_cbc_copy_mac(uint8_t *out, unsigned md_size, in EVP_tls_cbc_copy_mac() argument
144 unsigned mac_start = mac_end - md_size; in EVP_tls_cbc_copy_mac()
153 assert(in_len >= md_size); in EVP_tls_cbc_copy_mac()
154 assert(md_size <= EVP_MAX_MD_SIZE); in EVP_tls_cbc_copy_mac()
161 if (orig_len > md_size + 255 + 1) { in EVP_tls_cbc_copy_mac()
162 scan_start = orig_len - (md_size + 255 + 1); in EVP_tls_cbc_copy_mac()
171 div_spoiler = md_size >> 1; in EVP_tls_cbc_copy_mac()
173 rotate_offset = (div_spoiler + mac_start - scan_start) % md_size; in EVP_tls_cbc_copy_mac()
175 memset(rotated_mac, 0, md_size); in EVP_tls_cbc_copy_mac()
181 j &= constant_time_lt(j, md_size); in EVP_tls_cbc_copy_mac()
[all …]
De_ssl3.c38 size_t md_size = EVP_MD_CTX_size(&ssl3_ctx->md_ctx); in ssl3_mac() local
39 size_t pad_len = (md_size == 20) ? 40 : 48; in ssl3_mac()
66 !EVP_DigestUpdate(&md_ctx, tmp, md_size) || in ssl3_mac()
Dinternal.h127 void EVP_tls_cbc_copy_mac(uint8_t *out, unsigned md_size,
/external/boringssl/src/crypto/digest/
Ddigest.c73 size_t EVP_MD_size(const EVP_MD *md) { return md->md_size; } in EVP_MD_size()
197 assert(ctx->digest->md_size <= EVP_MAX_MD_SIZE); in EVP_DigestFinal_ex()
200 *size = ctx->digest->md_size; in EVP_DigestFinal_ex()
Dinternal.h73 unsigned md_size; member
/external/tpm2/
DOsslCryptoEngine.h41 unsigned md_size; member
/external/wpa_supplicant_8/src/crypto/
Dtls_openssl.c3092 int md_size; in openssl_get_keyblock_size() local
3101 md_size = EVP_MD_size(h); in openssl_get_keyblock_size()
3103 md_size = ssl->s3->tmp.new_mac_secret_size; in openssl_get_keyblock_size()
3108 "IV_len=%d", EVP_CIPHER_key_length(c), md_size, in openssl_get_keyblock_size()
3111 md_size + in openssl_get_keyblock_size()