[CRYPTO] aead: Allow algorithms with no givcrypt support
[deliverable/linux.git] / crypto / aead.c
index 0402b606fcfd444c41f5d9a2c7fe041e73e8cd61..15335ed9010a6260e950c89c490348fe4d2aea26 100644 (file)
@@ -77,7 +77,7 @@ static unsigned int crypto_aead_ctxsize(struct crypto_alg *alg, u32 type,
        return alg->cra_ctxsize;
 }
 
-static int no_givdecrypt(struct aead_givcrypt_request *req)
+static int no_givcrypt(struct aead_givcrypt_request *req)
 {
        return -ENOSYS;
 }
@@ -93,8 +93,8 @@ static int crypto_init_aead_ops(struct crypto_tfm *tfm, u32 type, u32 mask)
        crt->setkey = setkey;
        crt->encrypt = alg->encrypt;
        crt->decrypt = alg->decrypt;
-       crt->givencrypt = alg->givencrypt;
-       crt->givdecrypt = alg->givdecrypt ?: no_givdecrypt;
+       crt->givencrypt = alg->givencrypt ?: no_givcrypt;
+       crt->givdecrypt = alg->givdecrypt ?: no_givcrypt;
        crt->ivsize = alg->ivsize;
        crt->authsize = alg->maxauthsize;
 
This page took 0.027774 seconds and 5 git commands to generate.