Function report | 
Source Code:security\keys\dh.c | 
Create Date:2022-07-28 18:27:06 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Implementation of the KDF in counter mode according to SP800-108 section 5
Proto:static int kdf_ctr(struct kdf_sdesc *sdesc, const u8 *src, unsigned int slen, u8 *dst, unsigned int dlen, unsigned int zlen)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| 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, size of tmpbuffer ) | 
| 166 | Do | 
| 189 | counter = cpu_to_be32(be32_to_cpu(counter) + 1) | 
| 192 | Return 0 | 
| 194 | err : | 
| 196 | Return err | 
| Name | Describe | 
|---|---|
| keyctl_dh_compute_kdf | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |