summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-02-02 17:06:34 +0000
committerphk <phk@FreeBSD.org>2004-02-02 17:06:34 +0000
commit16b5363af41959e5666aa24ecb5813c0d51760a0 (patch)
treeb489794db6e17663a36a6a8b957205b078d69ebb /sys/dev
parenta9340686f1096a3f0b29ccfb1dc65fa2bdef82bb (diff)
downloadFreeBSD-src-16b5363af41959e5666aa24ecb5813c0d51760a0.zip
FreeBSD-src-16b5363af41959e5666aa24ecb5813c0d51760a0.tar.gz
Add CRD_F_KEY_EXPLICIT which allows the key to be changed per
operation, just like it was possible to change the IV. Currently supported on Hifn and software engines only. Approved by: sam@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/hifn/hifn7751.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/hifn/hifn7751.c b/sys/dev/hifn/hifn7751.c
index 8c5bec5..77e4c65 100644
--- a/sys/dev/hifn/hifn7751.c
+++ b/sys/dev/hifn/hifn7751.c
@@ -2437,6 +2437,8 @@ hifn_process(void *arg, struct cryptop *crp, int hint)
}
}
+ if (enccrd->crd_flags & CRD_F_KEY_EXPLICIT)
+ cmd->cry_masks |= HIFN_CRYPT_CMD_NEW_KEY;
cmd->ck = enccrd->crd_key;
cmd->cklen = enccrd->crd_klen >> 3;
OpenPOWER on IntegriCloud