Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\crypto\des.c Create Date:2022-07-28 06:47:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:des_expand_key

Proto:int des_expand_key(struct des_ctx *ctx, const u8 *key, unsigned int keylen)

Type:int

Parameter:

TypeParameterName
struct des_ctx *ctx
const u8 *key
unsigned intkeylen
701  If keylen != DES_KEY_SIZE Then Return -EINVAL
704  Return If Encryption key expansion* RFC2451: Weak key checks SHOULD be performed.* FIPS 74:* Keys having duals are keys which produce all zeros, all ones, or* alternating zero-one patterns in the C and D registers after Permuted* Choice 1 has operated on the key. Then 0 Else -ENOKEY