Function report |
Source Code:security\keys\encrypted-keys\encrypted.c |
Create Date:2022-07-28 18:33:22 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:verify HMAC before decrypting encrypted key
Proto:static int datablob_hmac_verify(struct encrypted_key_payload *epayload, const u8 *format, const u8 *master_key, size_t master_keylen)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct encrypted_key_payload * | epayload | |
const u8 * | format | |
const u8 * | master_key | |
size_t | master_keylen |
536 | len = length of datablob |
537 | If Not format Then |
538 | p = datablob: master key name |
540 | Else p = datablob: format |
543 | ret = calc_hmac(digest, derived_key, sizeofderived_key, p, len) |
548 | If ret Then |
550 | dump_hmac("datablob", datablob: format + length of datablob , HASH_SIZE) |
555 | out : |
557 | Return ret |
Name | Describe |
---|---|
encrypted_key_decrypt |
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 |