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

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

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

Type:int

Parameter:

TypeParameterName
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  If err == -ENOKEY Then
33  If crypto_tfm_get_flags(tfm) & CRYPTO_TFM_REQ_FORBID_WEAK_KEYS Then err = -EINVAL
35  Else err = 0
39  If err Then crypto_tfm_set_flags(tfm, CRYPTO_TFM_RES_WEAK_KEY)
42  memzero_explicit - Fill a region of memory (e
43  Return err