Home
last modified time | relevance | path

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

/trusty/user/app/storage/
Drpmb.c179 CRYPTO_memcmp(res[i].key_mac.byte, mac->byte, sizeof(mac->byte))) { in rpmb_check_response()
220 memcpy(cmd.key_mac.byte, key->byte, sizeof(cmd.key_mac.byte)); in rpmb_program_key()
227 rpmb_dprint_key(" key/mac ", res.key_mac, " expected mac ", in rpmb_program_key()
228 res.key_mac); in rpmb_program_key()
260 rpmb_dprint_key(" key/mac ", res.key_mac, " expected mac ", mac); in rpmb_read_counter()
337 rpmb_dprint_key(" key/mac ", res[i].key_mac, in rpmb_read_data()
458 ret = rpmb_mac(state->key, cmd, count, &cmd[count - 1].key_mac); in rpmb_write_data()
481 rpmb_dprint_key(" key/mac ", res.key_mac, " expected mac ", mac); in rpmb_write_data()
Drpmb_protocol.h52 struct rpmb_key key_mac; member
/trusty/user/app/storage/rpmb_dev/
Drpmb_dev.c107 s->header.key = s->cmd[0].key_mac; in rpmb_dev_program_key()
334 mac = s->cmd[s->cmd_count - 1].key_mac; in rpmb_dev_process_cmd()
339 if (memcmp(&mac, s->cmd[s->cmd_count - 1].key_mac.byte, sizeof(mac))) { in rpmb_dev_process_cmd()
434 &s->res[s->res_count - 1].key_mac); in rpmb_dev_process_cmd()