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:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:rypto_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

Proto:static inline int crypto_des3_ede_verify_key(struct crypto_tfm *tfm, const u8 *key)

Type:int

Parameter:

TypeParameterName
struct crypto_tfm *tfm
const u8 *key
100  err = RFC2451:* For DES-EDE3, there is no known need to reject weak or* complementation keys
103  If err Then crypto_tfm_set_flags(tfm, CRYPTO_TFM_RES_WEAK_KEY)
105  Return err