Function report |
Source Code:security\integrity\evm\evm_crypto.c |
Create Date:2022-07-28 20:00:08 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:init_desc
Proto:static struct shash_desc *init_desc(char type, uint8_t hash_algo)
Type:struct shash_desc
Parameter:
Type | Parameter | Name |
---|---|---|
char | type | |
uint8_t | hash_algo |
81 | If type == EVM_XATTR_HMAC Then |
82 | If Not (evm_initialized & EVM_INIT_HMAC) Then |
83 | pr_err_once("HMAC key is not set\n") |
88 | Else |
89 | If hash_algo >= HASH_ALGO__LAST Then Return ERR_PTR( - EINVAL) |
93 | algo = hash_algo_name[hash_algo] |
96 | If ( * tfm == NULL) Then |
97 | mutex_lock( & mutex) |
100 | tfm = crypto_alloc_shash(algo, 0, Don't trigger module loading) |
104 | * tfm = NULL |
108 | If type == EVM_XATTR_HMAC Then |
110 | If rc Then |
112 | * tfm = NULL |
117 | out : |
121 | desc = Allocation memory |
129 | If rc Then |
133 | Return desc |
Name | Describe |
---|---|
evm_calc_hmac_or_hash | Calculate the HMAC value across the set of protected security xattrs.* Instead of retrieving the requested xattr, for performance, calculate* the hmac using the requested xattr value. Don't alloc/free memory for |
evm_init_hmac |
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 |