函数逻辑报告 |
Source Code:fs\crypto\hkdf.c |
Create Date:2022-07-29 10:57:07 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:HKDF-Expand (RFC 5869 section 2
函数原型:int fscrypt_hkdf_expand(struct fscrypt_hkdf *hkdf, u8 context, const u8 *info, unsigned int infolen, u8 *okm, unsigned int okmlen)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct fscrypt_hkdf * | hkdf | |
u8 | context | |
const u8 * | info | |
unsigned int | infolen | |
u8 * | okm | |
unsigned int | okmlen |
119 | SHASH_DESC_ON_STACK(desc, hmac_tfm) |
124 | counter等于1 |
127 | 如果WARN_ON(okmlen > 255 * HKDF_HASHLEN)则返回:负EINVAL |
141 | 如果prev则 |
156 | 如果okmlen减i小于HKDF_HASHLEN则 |
162 | 否则 |
167 | counter自加 |
170 | err等于0 |
171 | out : |
174 | shash_desc_zero(desc) |
175 | 返回:err |
名称 | 描述 |
---|---|
fscrypt_ioctl_add_key | Add a master encryption key to the filesystem, causing all files which were* encrypted with it to appear "unlocked" (decrypted) when accessed.* When adding a key for use by v1 encryption policies, this ioctl is |
setup_per_mode_key | |
fscrypt_setup_v2_file_key |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |