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

Name:verify_aead_des_key

Proto:static inline int verify_aead_des_key(struct crypto_aead *tfm, const u8 *key, int keylen)

Type:int

Parameter:

TypeParameterName
struct crypto_aead *tfm
const u8 *key
intkeylen
123  If keylen != DES_KEY_SIZE Then
124  crypto_aead_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN)
125  Return -EINVAL
127  Return 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