Implementations for scalar without data-dependent branches.
This commit is contained in:
15
src/scalar_4x64.h
Normal file
15
src/scalar_4x64.h
Normal 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
|
||||
Reference in New Issue
Block a user