aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/safexcel
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/safexcel
parent45cd18ec73dcd262612898bf1a263cacde17d348 (diff)
Diffstat (limited to 'sys/dev/safexcel')
-rw-r--r--sys/dev/safexcel/safexcel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/safexcel/safexcel.c b/sys/dev/safexcel/safexcel.c
index 71300dcb0393..3940361561d0 100644
--- a/sys/dev/safexcel/safexcel.c
+++ b/sys/dev/safexcel/safexcel.c
@@ -1318,7 +1318,7 @@ safexcel_setkey_xcbcmac(const uint8_t *key, int klen, uint32_t *hashkey)
}
static void
-safexcel_setkey_hmac_digest(struct auth_hash *ahash, union authctx *ctx,
+safexcel_setkey_hmac_digest(const struct auth_hash *ahash, union authctx *ctx,
char *buf)
{
int hashwords, i;
@@ -1360,7 +1360,7 @@ safexcel_setkey_hmac(const struct crypto_session_params *csp,
const uint8_t *key, int klen, uint8_t *ipad, uint8_t *opad)
{
union authctx ctx;
- struct auth_hash *ahash;
+ const struct auth_hash *ahash;
ahash = crypto_auth_hash(csp);
hmac_init_ipad(ahash, key, klen, &ctx);