mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
cxgbe/crypto: Fix the key size in a couple of places to catch up with
the recent OCF refactor. Sponsored by: Chelsio Communications
This commit is contained in:
parent
36dcd97de3
commit
55eae197fc
1 changed files with 2 additions and 2 deletions
|
|
@ -812,11 +812,11 @@ ktls_setup_keys(struct tlspcb *tlsp, const struct ktls_session *tls,
|
|||
if (tlsp->enc_mode == SCMD_CIPH_MODE_AES_GCM) {
|
||||
memcpy(khdr->txsalt, tls->params.iv, SALT_SIZE);
|
||||
t4_init_gmac_hash(tls->params.cipher_key,
|
||||
tls->params.cipher_key_len * 8,
|
||||
tls->params.cipher_key_len,
|
||||
(char *)key + tls->params.cipher_key_len);
|
||||
} else {
|
||||
t4_init_hmac_digest(axf, partial_digest_len,
|
||||
tls->params.auth_key, tls->params.auth_key_len * 8,
|
||||
tls->params.auth_key, tls->params.auth_key_len,
|
||||
(char *)key + tls->params.cipher_key_len);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue