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