Re: [PATCH v2] crypto: skcipher - fix weak key check for lskciphers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eric Biggers <ebiggers@xxxxxxxxxx> wrote:
> From: Eric Biggers <ebiggers@xxxxxxxxxx>
> 
> When an algorithm of the new "lskcipher" type is exposed through the
> "skcipher" API, calls to crypto_skcipher_setkey() don't pass on the
> CRYPTO_TFM_REQ_FORBID_WEAK_KEYS flag to the lskcipher.  This causes
> self-test failures for ecb(des), as weak keys are not rejected anymore.
> Fix this.
> 
> Fixes: 31865c4c4db2 ("crypto: skcipher - Add lskcipher")
> Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>
> ---
> 
> v2: remove prototype for crypto_lskcipher_setkey_sg()
> 
> crypto/lskcipher.c | 8 --------
> crypto/skcipher.c  | 8 +++++++-
> crypto/skcipher.h  | 2 --
> 3 files changed, 7 insertions(+), 11 deletions(-)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux