Gabor Toth | ab7db21 | 2023-08-18 16:08:12 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2023, Arm Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef CRYPTO_CLIENT_H |
| 8 | #define CRYPTO_CLIENT_H |
| 9 | |
Gabor Toth | af77b47 | 2024-04-05 11:19:37 +0200 | [diff] [blame^] | 10 | #include <stddef.h> |
Gabor Toth | ab7db21 | 2023-08-18 16:08:12 +0200 | [diff] [blame] | 11 | #include <stdint.h> |
| 12 | |
| 13 | int verify_pkcs7_signature(const uint8_t *signature_cert, uint64_t signature_cert_len, |
| 14 | const uint8_t *hash, uint64_t hash_len, const uint8_t *public_key_cert, |
| 15 | uint64_t public_key_cert_len); |
| 16 | |
Gabor Toth | af77b47 | 2024-04-05 11:19:37 +0200 | [diff] [blame^] | 17 | int get_uefi_priv_auth_var_fingerprint_handler(const uint8_t *signature_cert, |
| 18 | uint64_t signature_cert_len, |
| 19 | uint8_t *output); |
| 20 | |
Gabor Toth | ab7db21 | 2023-08-18 16:08:12 +0200 | [diff] [blame] | 21 | #endif /* CRYPTO_CLIENT_H */ |