• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching refs:mac

115                     struct rpmb_key* mac) {  in rpmb_mac()  argument
136 hmac_ret = HMAC_Final(&hmac_ctx, mac->byte, &md_len); in rpmb_mac()
137 if (md_len != sizeof(mac->byte)) { in rpmb_mac()
138 fprintf(stderr, "bad md_len %d != %zd\n", md_len, sizeof(mac->byte)); in rpmb_mac()
155 struct rpmb_key* mac, in rpmb_check_response() argument
178 if (i == res_count - 1 && mac && in rpmb_check_response()
179 CRYPTO_memcmp(res[i].key_mac.byte, mac->byte, sizeof(mac->byte))) { in rpmb_check_response()
242 struct rpmb_key mac; in rpmb_read_counter() local
255 ret = rpmb_mac(state->key, &res, 1, &mac); in rpmb_read_counter()
260 rpmb_dprint_key(" key/mac ", res.key_mac, " expected mac ", mac); in rpmb_read_counter()
267 &mac, &nonce, NULL, 0); in rpmb_read_counter()
298 struct rpmb_key* mac) { in rpmb_read_data() argument
326 if (mac) { in rpmb_read_data()
327 ret = rpmb_mac(state->key, res, count, mac); in rpmb_read_data()
336 if (i == count - 1 && mac) in rpmb_read_data()
338 " expected mac ", *mac); in rpmb_read_data()
348 ret = rpmb_check_response("read data", RPMB_RESP_DATA_READ, res, count, mac, in rpmb_read_data()
377 struct rpmb_key mac; in rpmb_read() local
378 return rpmb_read_data(state, NULL, buf, addr, count, &mac); in rpmb_read()
392 struct rpmb_key mac; in rpmb_verify() local
393 return rpmb_read_data(state, buf, NULL, addr, count, &mac); in rpmb_verify()
439 struct rpmb_key mac; in rpmb_write_data() local
472 ret = rpmb_mac(state->key, &res, 1, &mac); in rpmb_write_data()
481 rpmb_dprint_key(" key/mac ", res.key_mac, " expected mac ", mac); in rpmb_write_data()
488 ret = rpmb_check_response("write data", RPMB_RESP_DATA_WRITE, &res, 1, &mac, in rpmb_write_data()