blob: af04df11e8865001dc8a08158efd0b844a4bae68 [file] [log] [blame]
Gabor Tothab7db212023-08-18 16:08:12 +02001/*
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 Tothaf77b472024-04-05 11:19:37 +020010#include <stddef.h>
Gabor Tothab7db212023-08-18 16:08:12 +020011#include <stdint.h>
12
13int 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 Tothaf77b472024-04-05 11:19:37 +020017int get_uefi_priv_auth_var_fingerprint_handler(const uint8_t *signature_cert,
18 uint64_t signature_cert_len,
19 uint8_t *output);
20
Gabor Tothab7db212023-08-18 16:08:12 +020021#endif /* CRYPTO_CLIENT_H */