Home
last modified time | relevance | path

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

/trusty/hardware/nxp/app/hwcrypto/
Dhwkey_srv_provider.c126 struct keyslot_package* kbox = caam_get_keybox(); in unpack_kbox() local
128 if (strncmp(kbox->magic, KEYPACK_MAGIC, 4)) { in unpack_kbox()
135 if (kbox->rpmb_keyblob_len != sizeof(rpmb_keyblob)) { in unpack_kbox()
136 TLOGE("Unexpected RPMB key len: %u\n", kbox->rpmb_keyblob_len); in unpack_kbox()
138 memcpy(rpmb_keyblob, kbox->rpmb_keyblob, kbox->rpmb_keyblob_len); in unpack_kbox()
139 rpmb_keyblob_len = kbox->rpmb_keyblob_len; in unpack_kbox()
149 memset(kbox, 0, sizeof(*kbox)); in unpack_kbox()