Home
last modified time | relevance | path

Searched refs:hmac_ret (Results 1 – 1 of 1) sorted by relevance

/system/core/trusty/utils/rpmb_dev/
Drpmb_dev.c92 int hmac_ret; in rpmb_mac() local
97 hmac_ret = HMAC_Init_ex(hmac_ctx, &key, sizeof(key), EVP_sha256(), NULL); in rpmb_mac()
98 if (!hmac_ret) { in rpmb_mac()
103 hmac_ret = HMAC_Update(hmac_ctx, packet[i].data, 284); in rpmb_mac()
104 if (!hmac_ret) { in rpmb_mac()
109 hmac_ret = HMAC_Final(hmac_ctx, mac->byte, &md_len); in rpmb_mac()
114 if (!hmac_ret) { in rpmb_mac()
121 return hmac_ret ? 0 : -1; in rpmb_mac()