Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/cipher_extra/
De_tls.c39 uint8_t mac_key_len; member
78 size_t mac_key_len = EVP_MD_size(md); in aead_tls_init() local
80 assert(mac_key_len + enc_key_len + in aead_tls_init()
86 assert(mac_key_len <= EVP_MAX_MD_SIZE); in aead_tls_init()
87 OPENSSL_memcpy(tls_ctx->mac_key, key, mac_key_len); in aead_tls_init()
88 tls_ctx->mac_key_len = (uint8_t)mac_key_len; in aead_tls_init()
91 if (!EVP_CipherInit_ex(&tls_ctx->cipher_ctx, cipher, NULL, &key[mac_key_len], in aead_tls_init()
92 implicit_iv ? &key[mac_key_len + enc_key_len] : NULL, in aead_tls_init()
94 !HMAC_Init_ex(&tls_ctx->hmac_ctx, key, mac_key_len, md, NULL)) { in aead_tls_init()
347 tls_ctx->mac_key, tls_ctx->mac_key_len)) { in aead_tls_open()