函数逻辑报告 |
Source Code:security\keys\dh.c |
Create Date:2022-07-27 20:01:25 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Implementation of the KDF in counter mode according to SP800-108 section 5
函数原型:static int kdf_ctr(struct kdf_sdesc *sdesc, const u8 *src, unsigned int slen, u8 *dst, unsigned int dlen, unsigned int zlen)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct kdf_sdesc * | sdesc | |
const u8 * | src | |
unsigned int | slen | |
u8 * | dst | |
unsigned int | dlen | |
unsigned int | zlen |
148 | err等于0 |
150 | counter等于cpu_to_be32(1) |
163 | chunk等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(size_t, zlen, tmpbuffer的长度) |
166 | 循环 |
189 | counter等于cpu_to_be32(be32_to_cpu(counter) + 1) |
192 | 返回:0 |
194 | err : |
196 | 返回:err |
名称 | 描述 |
---|---|
keyctl_dh_compute_kdf |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |