Implementations for scalar without data-dependent branches.

This commit is contained in:
Pieter Wuille
2014-10-29 00:35:49 -07:00
parent 0ce80ef47e
commit 1d52a8b155
10 changed files with 1194 additions and 57 deletions

15
src/scalar_4x64.h Normal file
View File

@@ -0,0 +1,15 @@
// Copyright (c) 2014 Pieter Wuille
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef _SECP256K1_SCALAR_REPR_
#define _SECP256K1_SCALAR_REPR_
#include <stdint.h>
/** A scalar modulo the group order of the secp256k1 curve. */
typedef struct {
uint64_t d[4];
} secp256k1_scalar_t;
#endif