Lines Matching refs:bootutil_enc_key
70 key_unwrap(const uint8_t *wrapped, uint8_t *enckey, struct bootutil_key *bootutil_enc_key) in key_unwrap() argument
76 rc = bootutil_aes_kw_set_unwrap_key(&aes_kw, bootutil_enc_key->key, *bootutil_enc_key->len); in key_unwrap()
340 extern const struct bootutil_key bootutil_enc_key;
348 *private_key = (struct bootutil_key *)&bootutil_enc_key; in boot_enc_retrieve_private_key()
459 struct bootutil_key *bootutil_enc_key = NULL; in boot_decrypt_key() local
462 rc = boot_enc_retrieve_private_key(&bootutil_enc_key); in boot_decrypt_key()
467 if (bootutil_enc_key == NULL) { in boot_decrypt_key()
474 cp = (uint8_t *)bootutil_enc_key->key; in boot_decrypt_key()
475 cpend = cp + *bootutil_enc_key->len; in boot_decrypt_key()
494 assert(*bootutil_enc_key->len == BOOT_ENC_KEY_SIZE); in boot_decrypt_key()
495 rc = key_unwrap(buf, enckey, bootutil_enc_key); in boot_decrypt_key()
501 cp = (uint8_t *)bootutil_enc_key->key; in boot_decrypt_key()
502 cpend = cp + *bootutil_enc_key->len; in boot_decrypt_key()
528 cp = (uint8_t *)bootutil_enc_key->key; in boot_decrypt_key()
529 cpend = cp + *bootutil_enc_key->len; in boot_decrypt_key()