| * Copyright (c) 2020, Linaro Limited. All rights reserved. |
| * Author: Sumit Garg <sumit.garg@linaro.org> |
| * SPDX-License-Identifier: BSD-3-Clause |
| #ifndef FIRMWARE_ENCRYPTED_H |
| #define FIRMWARE_ENCRYPTED_H |
| /* This is used as a signature to validate the encryption header */ |
| #define ENC_HEADER_MAGIC 0xAA640001U |
| /* Firmware encryption status flag mask */ |
| #define FW_ENC_STATUS_FLAG_MASK 0x1 |
| * SSK: Secret Symmetric Key |
| * BSSK: Binding Secret Symmetric Key |
| #define ENC_MAX_IV_SIZE 16U |
| #define ENC_MAX_TAG_SIZE 16U |
| #define ENC_MAX_KEY_SIZE 32U |
| uint8_t iv[ENC_MAX_IV_SIZE]; |
| uint8_t tag[ENC_MAX_TAG_SIZE]; |
| #endif /* FIRMWARE_ENCRYPTED_H */ |