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:
np 2020-04-23 23:54:23 +00:00
parent 9ae2e3fb2d
commit 712b699779

View File

@ -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);
}