Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:RFC2451:* For DES-EDE3, there is no known need to reject weak or* complementation keys

Proto:static inline int des3_ede_verify_key(const u8 *key, unsigned int key_len, bool check_weak)

Type:int

Parameter:

TypeParameterName
const u8 *key
unsigned intkey_len
boolcheck_weak
62  ret = If fips_enabled Then -EINVAL Else -ENOKEY
65  No 3D Now!(K, key, DES3_EDE_KEY_SIZE)
67  If ( Not ( K[0] ^ K[2] | K[1] ^ K[3] ) || Not ( K[2] ^ K[4] | K[3] ^ K[5] ) ) && (fips_enabled || check_weak) Then Go to bad
72  If Not ( K[0] ^ K[4] | K[1] ^ K[5] ) && fips_enabled Then Go to bad
75  ret = 0
76  bad :
77  memzero_explicit - Fill a region of memory (e
79  Return ret
Caller
NameDescribe
des3_ede_expand_key