aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cxgbe/crypto/t4_keyctx.c
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2021-07-26 20:41:05 +0000
committerMark Johnston <markj@FreeBSD.org>2021-07-26 20:41:05 +0000
commitd8787d4f7848bad8bd69325969806e1a76d0c3df (patch)
treee4a527273715df2fa754b500a51a64f1457bd599 /sys/dev/cxgbe/crypto/t4_keyctx.c
parent45cd18ec73dcd262612898bf1a263cacde17d348 (diff)
downloadsrc-d8787d4f7848bad8bd69325969806e1a76d0c3df.tar.gz
src-d8787d4f7848bad8bd69325969806e1a76d0c3df.zip
crypto: Constify all transform descriptors
No functional change intended. Reviewed by: ae, jhb MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D31196
Diffstat (limited to 'sys/dev/cxgbe/crypto/t4_keyctx.c')
-rw-r--r--sys/dev/cxgbe/crypto/t4_keyctx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/cxgbe/crypto/t4_keyctx.c b/sys/dev/cxgbe/crypto/t4_keyctx.c
index b64eb4ff23d7..136aba759a08 100644
--- a/sys/dev/cxgbe/crypto/t4_keyctx.c
+++ b/sys/dev/cxgbe/crypto/t4_keyctx.c
@@ -349,7 +349,7 @@ t4_copy_partial_hash(int alg, union authctx *auth_ctx, void *dst)
}
void
-t4_init_hmac_digest(struct auth_hash *axf, u_int partial_digest_len,
+t4_init_hmac_digest(const struct auth_hash *axf, u_int partial_digest_len,
const char *key, int klen, char *dst)
{
union authctx auth_ctx;
@@ -532,7 +532,7 @@ void
t4_tls_key_ctx(const struct ktls_session *tls, int direction,
struct tls_keyctx *kctx)
{
- struct auth_hash *axf;
+ const struct auth_hash *axf;
u_int mac_key_size;
char *hash;