]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
crypto: aes - helper function to validate key length for AES algorithms
authorIuliana Prodan <iuliana.prodan@nxp.com>
Wed, 31 Jul 2019 13:05:55 +0000 (16:05 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 9 Aug 2019 05:11:43 +0000 (15:11 +1000)
commitbc67d04e75260942fb534fb91673103dcad7ca96
tree7a32f21ca3a91c5eddf22fa8a06ac13f1ecad681
parent65526f638efc6435b9658d45a3ddd07e6fdbbb7d
crypto: aes - helper function to validate key length for AES algorithms

Add inline helper function to check key length for AES algorithms.
The key can be 128, 192 or 256 bits size.
This function is used in the generic aes implementation.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/aes.h
lib/crypto/aes.c