From 16b5363af41959e5666aa24ecb5813c0d51760a0 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 2 Feb 2004 17:06:34 +0000 Subject: 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@ --- sys/dev/hifn/hifn7751.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/dev/hifn') 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; -- cgit v1.1