Home
last modified time | relevance | path

Searched refs:mac_key_len (Results 1 – 6 of 6) sorted by relevance

/external/boringssl/src/ssl/
Dssl_aead_ctx.c32 const uint8_t *mac_key, size_t mac_key_len, in SSL_AEAD_CTX_new() argument
42 if (mac_key_len > 0) { in SSL_AEAD_CTX_new()
45 if (mac_key_len + enc_key_len + fixed_iv_len > sizeof(merged_key)) { in SSL_AEAD_CTX_new()
49 memcpy(merged_key, mac_key, mac_key_len); in SSL_AEAD_CTX_new()
50 memcpy(merged_key + mac_key_len, enc_key, enc_key_len); in SSL_AEAD_CTX_new()
51 memcpy(merged_key + mac_key_len + enc_key_len, fixed_iv, fixed_iv_len); in SSL_AEAD_CTX_new()
53 enc_key_len += mac_key_len; in SSL_AEAD_CTX_new()
74 if (mac_key_len == 0) { in SSL_AEAD_CTX_new()
Dinternal.h318 const uint8_t *mac_key, size_t mac_key_len,
/external/boringssl/src/crypto/cipher/
De_tls.c37 uint8_t mac_key_len; member
69 size_t mac_key_len = EVP_MD_size(md); in aead_tls_init() local
71 assert(mac_key_len + enc_key_len + in aead_tls_init()
83 assert(mac_key_len <= EVP_MAX_MD_SIZE); in aead_tls_init()
84 memcpy(tls_ctx->mac_key, key, mac_key_len); in aead_tls_init()
85 tls_ctx->mac_key_len = (uint8_t)mac_key_len; in aead_tls_init()
89 if (!EVP_CipherInit_ex(&tls_ctx->cipher_ctx, cipher, NULL, &key[mac_key_len], in aead_tls_init()
90 implicit_iv ? &key[mac_key_len + enc_key_len] : NULL, in aead_tls_init()
92 !HMAC_Init_ex(&tls_ctx->hmac_ctx, key, mac_key_len, md, NULL)) { in aead_tls_init()
314 tls_ctx->mac_key, tls_ctx->mac_key_len)) { in aead_tls_open()
De_ssl3.c97 size_t mac_key_len = EVP_MD_size(md); in aead_ssl3_init() local
99 assert(mac_key_len + enc_key_len + EVP_CIPHER_iv_length(cipher) == key_len); in aead_ssl3_init()
112 if (!EVP_CipherInit_ex(&ssl3_ctx->cipher_ctx, cipher, NULL, &key[mac_key_len], in aead_ssl3_init()
113 &key[mac_key_len + enc_key_len], in aead_ssl3_init()
116 !EVP_DigestUpdate(&ssl3_ctx->md_ctx, key, mac_key_len)) { in aead_ssl3_init()
/external/boringssl/src/crypto/evp/
Devp.c230 size_t mac_key_len) { in EVP_PKEY_new_mac_key() argument
241 EVP_PKEY_CTRL_SET_MAC_KEY, mac_key_len, in EVP_PKEY_new_mac_key()
/external/boringssl/src/include/openssl/
Devp.h145 size_t mac_key_len);