2014-10-01 15:57:44 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
// Copyright (C) 2014 Hykem <hykem@hotmail.com>
|
2021-05-02 10:26:32 +02:00
|
|
|
// Licensed under the terms of the GNU GPL, version 2.0 or later versions.
|
|
|
|
|
// http://www.gnu.org/licenses/gpl-2.0.txt
|
2014-10-01 15:57:44 +02:00
|
|
|
|
2021-01-14 11:27:24 +01:00
|
|
|
#include "util/types.hpp"
|
2014-10-01 15:57:44 +02:00
|
|
|
|
2023-07-12 23:04:14 +02:00
|
|
|
void ecdsa_set_curve(const u8* p, const u8* a, const u8* b, const u8* N, const u8* Gx, const u8* Gy);
|
2021-01-14 11:27:24 +01:00
|
|
|
void ecdsa_set_pub(const u8* Q);
|
|
|
|
|
void ecdsa_set_priv(const u8* k);
|
2025-03-04 19:38:16 +01:00
|
|
|
bool ecdsa_verify(const u8* hash, u8* R, u8* S);
|