Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/src/ecmult_gen_impl.h
/********************************************************************** | /********************************************************************** | ||||
* Copyright (c) 2013, 2014, 2015 Pieter Wuille, Gregory Maxwell * | * Copyright (c) 2013, 2014, 2015 Pieter Wuille, Gregory Maxwell * | ||||
* 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_GEN_IMPL_H_ | #ifndef SECP256K1_ECMULT_GEN_IMPL_H | ||||
#define _SECP256K1_ECMULT_GEN_IMPL_H_ | #define SECP256K1_ECMULT_GEN_IMPL_H | ||||
#include "scalar.h" | #include "scalar.h" | ||||
#include "group.h" | #include "group.h" | ||||
#include "ecmult_gen.h" | #include "ecmult_gen.h" | ||||
#include "hash_impl.h" | #include "hash_impl.h" | ||||
#ifdef USE_ECMULT_STATIC_PRECOMPUTATION | #ifdef USE_ECMULT_STATIC_PRECOMPUTATION | ||||
#include "ecmult_static_context.h" | #include "ecmult_static_context.h" | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 185 Lines • ▼ Show 20 Lines | static void secp256k1_ecmult_gen_blind(secp256k1_ecmult_gen_context *ctx, const unsigned char *seed32) { | ||||
secp256k1_ecmult_gen(ctx, &gb, &b); | secp256k1_ecmult_gen(ctx, &gb, &b); | ||||
secp256k1_scalar_negate(&b, &b); | secp256k1_scalar_negate(&b, &b); | ||||
ctx->blind = b; | ctx->blind = b; | ||||
ctx->initial = gb; | ctx->initial = gb; | ||||
secp256k1_scalar_clear(&b); | secp256k1_scalar_clear(&b); | ||||
secp256k1_gej_clear(&gb); | secp256k1_gej_clear(&gb); | ||||
} | } | ||||
#endif | #endif /* SECP256K1_ECMULT_GEN_IMPL_H */ |