2014-11-15 15:28:10 +00:00
|
|
|
/**********************************************************************
|
|
|
|
* Copyright (c) 2013, 2014 Pieter Wuille *
|
|
|
|
* Distributed under the MIT software license, see the accompanying *
|
|
|
|
* file COPYING or http://www.opensource.org/licenses/mit-license.php.*
|
|
|
|
**********************************************************************/
|
2013-05-09 15:24:32 +02:00
|
|
|
|
2013-03-10 05:34:04 +01:00
|
|
|
#ifndef _SECP256K1_ECDSA_
|
|
|
|
#define _SECP256K1_ECDSA_
|
|
|
|
|
2015-09-01 04:35:10 +00:00
|
|
|
#include <stddef.h>
|
|
|
|
|
2014-11-26 17:26:39 +01:00
|
|
|
#include "scalar.h"
|
|
|
|
#include "group.h"
|
2015-02-03 17:27:00 -08:00
|
|
|
#include "ecmult.h"
|
2014-11-26 17:26:39 +01:00
|
|
|
|
2015-09-21 20:57:54 +02:00
|
|
|
static int secp256k1_ecdsa_sig_parse(secp256k1_scalar *r, secp256k1_scalar *s, const unsigned char *sig, size_t size);
|
|
|
|
static int secp256k1_ecdsa_sig_serialize(unsigned char *sig, size_t *size, const secp256k1_scalar *r, const secp256k1_scalar *s);
|
|
|
|
static int secp256k1_ecdsa_sig_verify(const secp256k1_ecmult_context *ctx, const secp256k1_scalar* r, const secp256k1_scalar* s, const secp256k1_ge *pubkey, const secp256k1_scalar *message);
|
|
|
|
static int secp256k1_ecdsa_sig_sign(const secp256k1_ecmult_gen_context *ctx, secp256k1_scalar* r, secp256k1_scalar* s, const secp256k1_scalar *seckey, const secp256k1_scalar *message, const secp256k1_scalar *nonce, int *recid);
|
2013-03-10 05:34:04 +01:00
|
|
|
|
|
|
|
#endif
|