Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\crypto\aes.h Create Date:2022-07-28 06:43:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:validate key length for AES algorithms

Proto:static inline int aes_check_keylen(unsigned int keylen)

Type:int

Parameter:

TypeParameterName
unsigned intkeylen
40  Case keylen == AES_KEYSIZE_128
41  Case keylen == AES_KEYSIZE_192
42  Case keylen == AES_KEYSIZE_256
43  Break
44  Default
45  Return -EINVAL
48  Return 0
Caller
NameDescribe
aes_expandkeyaes_expandkey - Expands the AES key as described in FIPS-197*@ctx: The location where the computed key will be stored.*@in_key: The supplied key.*@key_len: The length of the supplied key.* Returns 0 on success