Searched refs:mac_key_len (Results 1 – 4 of 4) sorted by relevance
/external/boringssl/src/ssl/ |
D | ssl_aead_ctx.c | 34 const uint8_t *mac_key, size_t mac_key_len, in SSL_AEAD_CTX_new() argument 44 if (mac_key_len > 0) { in SSL_AEAD_CTX_new() 47 if (mac_key_len + enc_key_len + fixed_iv_len > sizeof(merged_key)) { in SSL_AEAD_CTX_new() 51 memcpy(merged_key, mac_key, mac_key_len); in SSL_AEAD_CTX_new() 52 memcpy(merged_key + mac_key_len, enc_key, enc_key_len); in SSL_AEAD_CTX_new() 53 memcpy(merged_key + mac_key_len + enc_key_len, fixed_iv, fixed_iv_len); in SSL_AEAD_CTX_new() 55 enc_key_len += mac_key_len; in SSL_AEAD_CTX_new() 76 if (mac_key_len == 0) { in SSL_AEAD_CTX_new()
|
D | internal.h | 298 const uint8_t *mac_key, size_t mac_key_len,
|
/external/boringssl/src/crypto/cipher/ |
D | e_tls.c | 38 uint8_t mac_key_len; member 70 size_t mac_key_len = EVP_MD_size(md); in aead_tls_init() local 72 assert(mac_key_len + enc_key_len + in aead_tls_init() 84 assert(mac_key_len <= EVP_MAX_MD_SIZE); in aead_tls_init() 85 memcpy(tls_ctx->mac_key, key, mac_key_len); in aead_tls_init() 86 tls_ctx->mac_key_len = (uint8_t)mac_key_len; in aead_tls_init() 90 if (!EVP_CipherInit_ex(&tls_ctx->cipher_ctx, cipher, NULL, &key[mac_key_len], in aead_tls_init() 91 implicit_iv ? &key[mac_key_len + enc_key_len] : NULL, in aead_tls_init() 93 !HMAC_Init_ex(&tls_ctx->hmac_ctx, key, mac_key_len, md, NULL)) { in aead_tls_init() 309 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()
|