函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:RFC2451:* For DES-EDE3, there is no known need to reject weak or* complementation keys

函数原型:static inline int des3_ede_verify_key(const u8 *key, unsigned int key_len, bool check_weak)

返回类型:int

参数:

类型参数名称
const u8 *key
unsigned intkey_len
boolcheck_weak
62  ret等于如果fips_enabled则负EINVAL否则负ENOKEY
65  内存复制(K, key, DES3_EDE_KEY_SIZE)
67  如果非K[0]按位异或K[2]按位或K[1]按位异或K[3]的值或非K[2]按位异或K[4]按位或K[3]按位异或K[5]的值的值且fips_enabledcheck_weak的值则转到:bad
72  如果非K[0]按位异或K[4]按位或K[1]按位异或K[5]的值且fips_enabled则转到:bad
75  ret等于0
76  bad :
77  memzero_explicit - Fill a region of memory (e
79  返回:ret
调用者
名称描述
des3_ede_expand_key
crypto_des3_ede_verify_keyrypto_des3_ede_verify_key - Check whether a DES3-EDE key is weak*@tfm: the crypto algo*@key: the key buffer* Returns -EINVAL if the key is weak and the crypto TFM does not permit weak* keys or when running in FIPS mode