diff options
Diffstat (limited to 'crypto/aead.c')
-rw-r--r-- | crypto/aead.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/aead.c b/crypto/aead.c index 0402b606fcfd..15335ed9010a 100644 --- a/crypto/aead.c +++ b/crypto/aead.c | |||
@@ -77,7 +77,7 @@ static unsigned int crypto_aead_ctxsize(struct crypto_alg *alg, u32 type, | |||
77 | return alg->cra_ctxsize; | 77 | return alg->cra_ctxsize; |
78 | } | 78 | } |
79 | 79 | ||
80 | static int no_givdecrypt(struct aead_givcrypt_request *req) | 80 | static int no_givcrypt(struct aead_givcrypt_request *req) |
81 | { | 81 | { |
82 | return -ENOSYS; | 82 | return -ENOSYS; |
83 | } | 83 | } |
@@ -93,8 +93,8 @@ static int crypto_init_aead_ops(struct crypto_tfm *tfm, u32 type, u32 mask) | |||
93 | crt->setkey = setkey; | 93 | crt->setkey = setkey; |
94 | crt->encrypt = alg->encrypt; | 94 | crt->encrypt = alg->encrypt; |
95 | crt->decrypt = alg->decrypt; | 95 | crt->decrypt = alg->decrypt; |
96 | crt->givencrypt = alg->givencrypt; | 96 | crt->givencrypt = alg->givencrypt ?: no_givcrypt; |
97 | crt->givdecrypt = alg->givdecrypt ?: no_givdecrypt; | 97 | crt->givdecrypt = alg->givdecrypt ?: no_givcrypt; |
98 | crt->ivsize = alg->ivsize; | 98 | crt->ivsize = alg->ivsize; |
99 | crt->authsize = alg->maxauthsize; | 99 | crt->authsize = alg->maxauthsize; |
100 | 100 | ||