Searched refs:hmac_ctx (Results 1 – 3 of 3) sorted by relevance
/trusty/user/app/storage/ |
D | crypt.c | 63 static HMAC_CTX* hmac_ctx; variable 67 assert(!hmac_ctx); in crypt_init() 72 hmac_ctx = HMAC_CTX_new(); in crypt_init() 73 assert(hmac_ctx); in crypt_init() 80 HMAC_CTX_free(hmac_ctx); in crypt_shutdown() 81 hmac_ctx = NULL; in crypt_shutdown() 200 assert(hmac_ctx); in calculate_mac() 201 HMAC_CTX_reset(hmac_ctx); in calculate_mac() 203 hmac_ret = HMAC_Init_ex(hmac_ctx, key, sizeof(*key), EVP_sha256(), NULL); in calculate_mac() 209 hmac_ret = HMAC_Update(hmac_ctx, data, data_size); in calculate_mac() [all …]
|
D | rpmb.c | 119 HMAC_CTX hmac_ctx; in rpmb_mac() local 121 HMAC_CTX_init(&hmac_ctx); in rpmb_mac() 122 hmac_ret = HMAC_Init_ex(&hmac_ctx, &key, sizeof(key), EVP_sha256(), NULL); in rpmb_mac() 130 hmac_ret = HMAC_Update(&hmac_ctx, packet[i].data, 284); in rpmb_mac() 136 hmac_ret = HMAC_Final(&hmac_ctx, mac->byte, &md_len); in rpmb_mac() 147 HMAC_CTX_cleanup(&hmac_ctx); in rpmb_mac()
|
/trusty/user/app/storage/rpmb_dev/ |
D | rpmb_dev.c | 59 HMAC_CTX* hmac_ctx; in rpmb_mac() local 61 hmac_ctx = HMAC_CTX_new(); in rpmb_mac() 62 hmac_ret = HMAC_Init_ex(hmac_ctx, &key, sizeof(key), EVP_sha256(), NULL); in rpmb_mac() 68 hmac_ret = HMAC_Update(hmac_ctx, packet[i].data, 284); in rpmb_mac() 74 hmac_ret = HMAC_Final(hmac_ctx, mac->byte, &md_len); in rpmb_mac() 85 HMAC_CTX_free(hmac_ctx); in rpmb_mac()
|