svn commit: r360232 - head/sys/dev/cxgbe/crypto
Navdeep Parhar
np at FreeBSD.org
Thu Apr 23 23:54:24 UTC 2020
Author: np
Date: Thu Apr 23 23:54:23 2020
New Revision: 360232
URL: https://svnweb.freebsd.org/changeset/base/360232
Log:
cxgbe/crypto: Fix the key size in a couple of places to catch up with
the recent OCF refactor.
Sponsored by: Chelsio Communications
Modified:
head/sys/dev/cxgbe/crypto/t4_kern_tls.c
Modified: head/sys/dev/cxgbe/crypto/t4_kern_tls.c
==============================================================================
--- head/sys/dev/cxgbe/crypto/t4_kern_tls.c Thu Apr 23 21:16:51 2020 (r360231)
+++ head/sys/dev/cxgbe/crypto/t4_kern_tls.c Thu Apr 23 23:54:23 2020 (r360232)
@@ -812,11 +812,11 @@ ktls_setup_keys(struct tlspcb *tlsp, const struct ktls
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);
}
More information about the svn-src-all
mailing list