Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/src/ecmult_const_impl.h
/********************************************************************** | /********************************************************************** | ||||
* Copyright (c) 2015 Pieter Wuille, Andrew Poelstra * | * Copyright (c) 2015 Pieter Wuille, Andrew Poelstra * | ||||
* 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_ECMULT_CONST_IMPL_ | #ifndef SECP256K1_ECMULT_CONST_IMPL_H | ||||
#define _SECP256K1_ECMULT_CONST_IMPL_ | #define SECP256K1_ECMULT_CONST_IMPL_H | ||||
#include "scalar.h" | #include "scalar.h" | ||||
#include "group.h" | #include "group.h" | ||||
#include "ecmult_const.h" | #include "ecmult_const.h" | ||||
#include "ecmult_impl.h" | #include "ecmult_impl.h" | ||||
#ifdef USE_ENDOMORPHISM | #ifdef USE_ENDOMORPHISM | ||||
#define WNAF_BITS 128 | #define WNAF_BITS 128 | ||||
▲ Show 20 Lines • Show All 214 Lines • ▼ Show 20 Lines | #ifdef USE_ENDOMORPHISM | ||||
secp256k1_ge_from_storage(&correction, &correction_lam_stor); | secp256k1_ge_from_storage(&correction, &correction_lam_stor); | ||||
secp256k1_ge_neg(&correction, &correction); | secp256k1_ge_neg(&correction, &correction); | ||||
secp256k1_ge_mul_lambda(&correction, &correction); | secp256k1_ge_mul_lambda(&correction, &correction); | ||||
secp256k1_gej_add_ge(r, r, &correction); | secp256k1_gej_add_ge(r, r, &correction); | ||||
#endif | #endif | ||||
} | } | ||||
} | } | ||||
#endif | #endif /* SECP256K1_ECMULT_CONST_IMPL_H */ |