Lines Matching defs:key
94 /* Parse the public key */
363 * expects aligned public key.
484 static int derive_key(uint8_t *key, size_t *key_len, size_t len,
494 * We expect a 32 bytes key, if OTP is only 16 bytes
499 memcpy(key + j, key + i, sizeof(uint32_t));
503 /* Variable 'key' store a real key */
509 int plat_get_enc_key_info(enum fw_enc_status_t fw_enc_status, uint8_t *key,
541 zeromem(key, *key_len);
547 memcpy(key + i * sizeof(uint32_t), &tmp, sizeof(tmp));
550 /* Now we have the OTP values in key till read_len */
552 if (derive_key(key, key_len, read_len, flags, img_id,
554 zeromem(key, *key_len);
567 /* Use the provided key buffer */
572 const void *key, unsigned int key_len,
586 ret = stm32_saes_init(&ctx, true, STM32_SAES_MODE_GCM, key_mode, key,
624 const void *key, unsigned int key_len, unsigned int key_flags,
642 rc = stm32_decrypt_aes_gcm(data_ptr, len, key, key_len, key_flags,