Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/src/ecdsa_impl.h
/********************************************************************** | /********************************************************************** | ||||
* Copyright (c) 2013-2015 Pieter Wuille * | * Copyright (c) 2013-2015 Pieter Wuille * | ||||
* Distributed under the MIT software license, see the accompanying * | * Distributed under the MIT software license, see the accompanying * | ||||
* file COPYING or http://www.opensource.org/licenses/mit-license.php.* | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* | ||||
**********************************************************************/ | **********************************************************************/ | ||||
#ifndef _SECP256K1_ECDSA_IMPL_H_ | #ifndef SECP256K1_ECDSA_IMPL_H | ||||
#define _SECP256K1_ECDSA_IMPL_H_ | #define SECP256K1_ECDSA_IMPL_H | ||||
#include "scalar.h" | #include "scalar.h" | ||||
#include "field.h" | #include "field.h" | ||||
#include "group.h" | #include "group.h" | ||||
#include "ecmult.h" | #include "ecmult.h" | ||||
#include "ecmult_gen.h" | #include "ecmult_gen.h" | ||||
#include "ecdsa.h" | #include "ecdsa.h" | ||||
▲ Show 20 Lines • Show All 289 Lines • ▼ Show 20 Lines | if (secp256k1_scalar_is_high(sigs)) { | ||||
secp256k1_scalar_negate(sigs, sigs); | secp256k1_scalar_negate(sigs, sigs); | ||||
if (recid) { | if (recid) { | ||||
*recid ^= 1; | *recid ^= 1; | ||||
} | } | ||||
} | } | ||||
return 1; | return 1; | ||||
} | } | ||||
#endif | #endif /* SECP256K1_ECDSA_IMPL_H */ |