2014-02-28 11:41:10 +00:00
|
|
|
// Copyright 2007,2008 Segher Boessenkool <segher@kernel.crashing.org>
|
|
|
|
// Licensed under the terms of the GNU GPL, version 2
|
|
|
|
// http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-05-15 19:24:45 +00:00
|
|
|
#include <array>
|
|
|
|
|
2014-02-28 11:41:10 +00:00
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
|
2016-01-21 20:16:51 +00:00
|
|
|
void generate_ecdsa(u8* R, u8* S, const u8* k, const u8* hash);
|
2014-02-28 11:41:10 +00:00
|
|
|
|
2016-01-21 20:16:51 +00:00
|
|
|
void ec_priv_to_pub(const u8* k, u8* Q);
|
2017-03-08 11:40:50 +00:00
|
|
|
|
2018-05-15 19:24:45 +00:00
|
|
|
std::array<u8, 60> ComputeSharedSecret(const u8* private_key, const u8* public_key);
|