函数逻辑报告

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

函数名称:rypto_des_verify_key - Check whether a DES 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

函数原型:static inline int crypto_des_verify_key(struct crypto_tfm *tfm, const u8 *key)

返回类型:int

参数:

类型参数名称
struct crypto_tfm *tfm
const u8 *key
31  err等于des_expand_key - Expand a DES input key into a key schedule*@ctx: the key schedule*@key: buffer containing the input key*@len: size of the buffer contents* Returns 0 on success, -EINVAL if the input key is rejected and -ENOKEY if
32  如果err恒等于负ENOKEY
33  如果crypto_tfm_get_flags(tfm)按位与CRYPTO_TFM_REQ_FORBID_WEAK_KEYSerr等于负EINVAL
35  否则err等于0
39  如果errcrypto_tfm_set_flags(tfm, CRYPTO_TFM_RES_WEAK_KEY)
42  memzero_explicit - Fill a region of memory (e
43  返回:err
调用者
名称描述
verify_skcipher_des_key
verify_aead_des_key