Lionel Debieve | 7bd96f4 | 2019-09-03 12:22:23 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2019, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef STM32MP_AUTH_H |
| 8 | #define STM32MP_AUTH_H |
| 9 | |
| 10 | struct stm32mp_auth_ops { |
| 11 | uint32_t (*check_key)(uint8_t *pubkey_in, uint8_t *pubkey_out); |
| 12 | uint32_t (*verify_signature)(uint8_t *hash_in, uint8_t *pubkey_in, |
| 13 | uint8_t *signature, uint32_t ecc_algo); |
| 14 | }; |
| 15 | |
| 16 | void stm32mp_init_auth(struct stm32mp_auth_ops *init_ptr); |
| 17 | int stm32mp_auth_image(boot_api_image_header_t *header, uintptr_t buffer); |
| 18 | |
| 19 | #endif /* STM32MP_AUTH_H */ |