]> git.baikalelectronics.ru Git - 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)
commit492214bb4311320a10d2421c5d9a9d063fd79d8d
tree7a32f21ca3a91c5eddf22fa8a06ac13f1ecad681
parent1cf11b7359126d1bda9157793d1e027f10b62105
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