diff --git a/sys/geom/eli/g_eli.c b/sys/geom/eli/g_eli.c index 803678d9119e..585e842179ea 100644 --- a/sys/geom/eli/g_eli.c +++ b/sys/geom/eli/g_eli.c @@ -532,8 +532,7 @@ g_eli_crypto_run(struct g_eli_worker *wr, struct bio *bp) crd->crd_skip = 0; crd->crd_len = secsize; - crd->crd_flags = - CRD_F_IV_EXPLICIT | CRD_F_IV_PRESENT | CRD_F_KEY_EXPLICIT; + crd->crd_flags = CRD_F_IV_EXPLICIT | CRD_F_IV_PRESENT; if (bp->bio_cmd == BIO_WRITE) crd->crd_flags |= CRD_F_ENCRYPT; crd->crd_alg = sc->sc_algo; diff --git a/sys/geom/eli/g_eli_crypto.c b/sys/geom/eli/g_eli_crypto.c index 693dab7989d7..817ff72c5d62 100644 --- a/sys/geom/eli/g_eli_crypto.c +++ b/sys/geom/eli/g_eli_crypto.c @@ -97,7 +97,7 @@ g_eli_crypto_cipher(u_int algo, int enc, u_char *data, size_t datasize, crd->crd_skip = 0; crd->crd_len = datasize; - crd->crd_flags = CRD_F_IV_EXPLICIT | CRD_F_IV_PRESENT | CRD_F_KEY_EXPLICIT; + crd->crd_flags = CRD_F_IV_EXPLICIT | CRD_F_IV_PRESENT; if (enc) crd->crd_flags |= CRD_F_ENCRYPT; crd->crd_alg = algo;