Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/src/ecmult_impl.h
/********************************************************************** | /********************************************************************** | ||||
* Copyright (c) 2013, 2014 Pieter Wuille * | * Copyright (c) 2013, 2014 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_ECMULT_IMPL_H_ | #ifndef SECP256K1_ECMULT_IMPL_H | ||||
#define _SECP256K1_ECMULT_IMPL_H_ | #define SECP256K1_ECMULT_IMPL_H | ||||
#include <string.h> | #include <string.h> | ||||
#include "group.h" | #include "group.h" | ||||
#include "scalar.h" | #include "scalar.h" | ||||
#include "ecmult.h" | #include "ecmult.h" | ||||
#if defined(EXHAUSTIVE_TEST_ORDER) | #if defined(EXHAUSTIVE_TEST_ORDER) | ||||
▲ Show 20 Lines • Show All 381 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
} | } | ||||
if (!r->infinity) { | if (!r->infinity) { | ||||
secp256k1_fe_mul(&r->z, &r->z, &Z); | secp256k1_fe_mul(&r->z, &r->z, &Z); | ||||
} | } | ||||
} | } | ||||
#endif | #endif /* SECP256K1_ECMULT_IMPL_H */ |