]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
crypto: des - remove now unused __des3_ede_setkey()
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 15 Aug 2019 09:01:11 +0000 (12:01 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Aug 2019 04:57:33 +0000 (14:57 +1000)
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/des_generic.c
include/crypto/des.h

index e021a321f584106bd90e61cee1ded4bfa8a796b4..6e13a4a29ecb0b9f158ece39b8a4eddbd615ad96 100644 (file)
@@ -51,19 +51,6 @@ static void crypto_des_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src)
        des_decrypt(dctx, dst, src);
 }
 
-int __des3_ede_setkey(u32 *expkey, u32 *flags, const u8 *key,
-                     unsigned int keylen)
-{
-       int err;
-
-       des_ekey(expkey, key); expkey += DES_EXPKEY_WORDS; key += DES_KEY_SIZE;
-       dkey(expkey, key); expkey += DES_EXPKEY_WORDS; key += DES_KEY_SIZE;
-       des_ekey(expkey, key);
-
-       return 0;
-}
-EXPORT_SYMBOL_GPL(__des3_ede_setkey);
-
 static int des3_ede_setkey(struct crypto_tfm *tfm, const u8 *key,
                           unsigned int keylen)
 {
index 2c864a4e67073e3d0176b7efb02e6750e0e12529..7812b4331ae4a4116a314c3ec3211181ae8612b2 100644 (file)
@@ -54,7 +54,4 @@ int des_expand_key(struct des_ctx *ctx, const u8 *key, unsigned int keylen);
 int des3_ede_expand_key(struct des3_ede_ctx *ctx, const u8 *key,
                        unsigned int keylen);
 
-extern int __des3_ede_setkey(u32 *expkey, u32 *flags, const u8 *key,
-                            unsigned int keylen);
-
 #endif /* __CRYPTO_DES_H */