函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\crypto\aes.h Create Date:2022-07-27 07:41:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:validate key length for AES algorithms

函数原型:static inline int aes_check_keylen(unsigned int keylen)

返回类型:int

参数:

类型参数名称
unsigned intkeylen
40  :keylen恒等于AES_KEYSIZE_128
41  :keylen恒等于AES_KEYSIZE_192
42  :keylen恒等于AES_KEYSIZE_256
43  退出
44  默认
45  返回:负EINVAL
48  返回:0
调用者
名称描述
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