Function report |
Source Code:fs\crypto\hkdf.c |
Create Date:2022-07-28 20:23:43 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:HKDF-Expand (RFC 5869 section 2
Proto:int fscrypt_hkdf_expand(struct fscrypt_hkdf *hkdf, u8 context, const u8 *info, unsigned int infolen, u8 *okm, unsigned int okmlen)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
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 | If WARN_ON(okmlen > 255 * HKDF_HASHLEN) Then Return -EINVAL |
141 | If prev Then |
155 | BUILD_BUG_ON - break compile if a condition is true( size of counter != 1) |
156 | If okmlen - i < HKDF_HASHLEN Then |
162 | Else |
167 | counter++ |
170 | err = 0 |
171 | out : |
172 | If Value for the false possibility is greater at compile time(err) Then memzero_explicit - Fill a region of memory (e |
174 | shash_desc_zero(desc) |
175 | Return err |
Name | Describe |
---|---|
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 |
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 |