函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:des3_ede_expand_key

函数原型:int des3_ede_expand_key(struct des3_ede_ctx *ctx, const u8 *key, unsigned int keylen)

返回类型:int

参数:

类型参数名称
struct des3_ede_ctx *ctx
const u8 *key
unsigned intkeylen
826  pe等于expkey
829  如果keylen不等于DES3_EDE_KEY_SIZE则返回:负EINVAL
832  err等于RFC2451:* For DES-EDE3, there is no known need to reject weak or* complementation keys
833  如果errerr不等于负ENOKEY则返回:err
836  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.
836  pe加等于DES_EXPKEY_WORDS
836  key加等于DES_KEY_SIZE
837  Decryption key expansion* No weak key checking is performed, as this is only used by triple DES
837  pe加等于DES_EXPKEY_WORDS
837  key加等于DES_KEY_SIZE
838  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.
840  返回:err