Function report |
Source Code:fs\crypto\policy.c |
Create Date:2022-07-28 20:24:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:scrypt_new_context_from_policy - create a new fscrypt_context from a policy* Create an fscrypt_context for an inode that is being assigned the given* encryption policy. A new nonce is randomly generated.* Return: the size of the new context in bytes.
Proto:static int fscrypt_new_context_from_policy(union fscrypt_context *ctx_u, const union fscrypt_policy *policy_u)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
union fscrypt_context * | ctx_u | |
const union fscrypt_policy * | policy_u |
162 | memcpy(master_key_descriptor, master_key_descriptor, size of master_key_descriptor ) |
165 | get_random_bytes(nonce, size of nonce ) |
166 | Return size of ctx |
178 | memcpy(master_key_identifier, master_key_identifier, size of master_key_identifier ) |
181 | get_random_bytes(nonce, size of nonce ) |
182 | Return size of ctx |
185 | BUG() |
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 |