函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:des_expand_key

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

返回类型:int

参数:

类型参数名称
struct des_ctx *ctx
const u8 *key
unsigned intkeylen
701  如果keylen不等于DES_KEY_SIZE则返回:负EINVAL
704  返回:如果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.则0否则负ENOKEY