mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 06:37:59 +00:00
crypto: n2/des - fix build breakage after DES updates
Fix build breakage caused by the DES library refactor.
Fixes: d4b90dbc85
("crypto: n2/des - switch to new verification routines")
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
5a74362c9a
commit
c963050259
1 changed files with 4 additions and 2 deletions
|
@ -757,7 +757,8 @@ static int n2_aes_setkey(struct crypto_ablkcipher *cipher, const u8 *key,
|
|||
static int n2_des_setkey(struct crypto_ablkcipher *cipher, const u8 *key,
|
||||
unsigned int keylen)
|
||||
{
|
||||
struct n2_cipher_context *ctx = crypto_ablkcipher_ctx(cipher);
|
||||
struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher);
|
||||
struct n2_cipher_context *ctx = crypto_tfm_ctx(tfm);
|
||||
struct n2_cipher_alg *n2alg = n2_cipher_alg(tfm);
|
||||
int err;
|
||||
|
||||
|
@ -775,7 +776,8 @@ static int n2_des_setkey(struct crypto_ablkcipher *cipher, const u8 *key,
|
|||
static int n2_3des_setkey(struct crypto_ablkcipher *cipher, const u8 *key,
|
||||
unsigned int keylen)
|
||||
{
|
||||
struct n2_cipher_context *ctx = crypto_ablkcipher_ctx(cipher);
|
||||
struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher);
|
||||
struct n2_cipher_context *ctx = crypto_tfm_ctx(tfm);
|
||||
struct n2_cipher_alg *n2alg = n2_cipher_alg(tfm);
|
||||
int err;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue