Signed-off-by: Cristian Stoica <[email protected]>
---
authenc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/authenc.c b/authenc.c
index 8bff677..74f9c9b 100644
--- a/authenc.c
+++ b/authenc.c
@@ -655,8 +655,7 @@ __crypto_auth_run_zc(struct csession *ses_ptr, struct
kernel_crypt_auth_op *kcao
int dst_len;
if (unlikely(ses_ptr->cdata.init == 0 ||
- ses_ptr->cdata.stream == 0 ||
- ses_ptr->cdata.aead == 0))
+ (ses_ptr->cdata.stream == 0 &&
ses_ptr->cdata.aead == 0)))
{
dprintk(0, KERN_ERR, "Only stream and AEAD
ciphers are allowed for authenc\n");
ret = -EINVAL;
--
1.7.11.7
_______________________________________________
Cryptodev-linux-devel mailing list
[email protected]
https://mail.gna.org/listinfo/cryptodev-linux-devel