Home
last modified time | relevance | path

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

/devicemodel/hw/pci/virtio/
A Dvirtio_rpmb.c101 if (!key || !frames) { in rpmb_check_mac()
111 rc = rpmb_mac(key, frames, frame_cnt, mac); in rpmb_check_mac()
134 if (swap16(frames[i].req_resp) != response_type) { in rpmb_check_response()
140 if (swap16(frames[i].result) != RPMB_RES_OK) { in rpmb_check_response()
149 if (nonce && memcmp(frames[i].nonce, nonce, sizeof(frames[i].nonce))) { in rpmb_check_response()
154 if (addr && *addr != swap16(frames[i].addr)) { in rpmb_check_response()
156 cmd_str, swap16(frames[i].addr), *addr)); in rpmb_check_response()
162 if (rpmb_mac(key, frames, frame_cnt, mac)) { in rpmb_check_response()
562 struct rpmb_frame *frames; in virtio_rpmb_seq_handler() local
597 if (!frames) { in virtio_rpmb_seq_handler()
[all …]
/devicemodel/hw/platform/rpmb/
A Drpmb_backend.c154 memcpy(frames[i].nonce, nonce, sizeof(frames[i].nonce)); in rpmb_replace_frame()
156 frames[i].write_counter = swap32(*write_counter); in rpmb_replace_frame()
158 frames[i].addr = swap16(*addr); in rpmb_replace_frame()
160 frames[i].block_count = swap16(*block_count); in rpmb_replace_frame()
162 frames[i].result = swap16(*result); in rpmb_replace_frame()
164 frames[i].req_resp = swap16(*req_resp); in rpmb_replace_frame()
168 if (rpmb_mac(key, frames, frame_cnt, frames[frame_cnt - 1].key_mac)) { in rpmb_replace_frame()
178 const struct rpmb_frame *frames, uint32_t frame_cnt, in rpmb_check_frame() argument
197 cmd_str, swap16(frames[i].addr), *addr)); in rpmb_check_frame()
221 if (rpmb_mac(key, frames, frame_cnt, mac)) { in rpmb_check_frame()
[all …]
A Drpmb_sim.c71 int rpmb_mac(const uint8_t *key, const struct rpmb_frame *frames, in rpmb_mac() argument
87 hmac_ret = HMAC_Update(&hmac_ctx, frames[i].data, 284); in rpmb_mac()
111 int rpmb_mac(const uint8_t *key, const struct rpmb_frame *frames, in rpmb_mac() argument
134 hmac_ret = EVP_MAC_update(hmac_ctx, frames[i].data, 284); in rpmb_mac()
159 int rpmb_mac(const uint8_t *key, const struct rpmb_frame *frames, in rpmb_mac() argument
180 hmac_ret = HMAC_Update(hmac_ctx, frames[i].data, 284); in rpmb_mac()
/devicemodel/include/
A Drpmb_sim.h44 int rpmb_mac(const uint8_t *key, const struct rpmb_frame *frames,
A Drpmb.h87 struct rpmb_frame *frames; member

Completed in 9 milliseconds