Searched refs:mac_key_len (Results 1 – 6 of 6) sorted by relevance
/external/boringssl/src/ssl/ |
D | ssl_aead_ctx.c | 32 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()
|
D | internal.h | 318 const uint8_t *mac_key, size_t mac_key_len,
|
/external/boringssl/src/crypto/cipher/ |
D | e_tls.c | 37 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()
|
D | e_ssl3.c | 97 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/ |
D | evp.c | 230 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/ |
D | evp.h | 145 size_t mac_key_len);
|