函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:verify_aead_des3_key

函数原型:static inline int verify_aead_des3_key(struct crypto_aead *tfm, const u8 *key, int keylen)

返回类型:int

参数:

类型参数名称
struct crypto_aead *tfm
const u8 *key
intkeylen
133  如果keylen不等于DES3_EDE_KEY_SIZE
134  crypto_aead_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN)
135  返回:负EINVAL
137  返回: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