1 /*
2  * SPDX-FileCopyrightText: 2014, Kenneth MacKay
3  *
4  * SPDX-License-Identifier: BSD-2-Clause
5  *
6  * SPDX-FileContributor: 2020-2021 Espressif Systems (Shanghai) CO LTD
7  */
8 #pragma once
9 #include "uECC.h"
10 
11 /* Version uECC_verify() that also copies message_hash to verified_hash
12    if the signature is valid, and does it in a way that is harder to attack
13    with fault injection.
14 */
15 int uECC_verify_antifault(const uint8_t *public_key,
16                           const uint8_t *message_hash,
17                           unsigned hash_size,
18                           const uint8_t *signature,
19                           uECC_Curve curve,
20                           uint8_t *verified_hash);
21