Sha256: 2274ea02748ade547d39084c2f5b41cd7f068ec2b648d2bf7dd6a55b07299a96

Contents?: true

Size: 550 Bytes

Versions: 9

Compression:

Stored size: 550 Bytes

Contents

/*
   This file is adapted from ref10/fe.h:
   All the redundant functions are removed.
*/

#ifndef fe_H
#define fe_H

#include <stdint.h>
#include <stdlib.h>

typedef uint64_t fe[10];

/*
fe means field element.
Here the field is \Z/(2^255-19).
An element t, entries t[0]...t[9], represents the integer
t[0]+2^26 t[1]+2^51 t[2]+2^77 t[3]+2^102 t[4]+...+2^230 t[9].
Bounds on each t[i] vary depending on context.
*/

#define fe_frombytes crypto_scalarmult_curve25519_sandy2x_fe_frombytes

extern void fe_frombytes(fe, const unsigned char *);

#endif

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
laag-libsodium-1.0.16.2 vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe.h
laag-libsodium-1.0.16.0 vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe.h
rbnacl-libsodium-1.0.16 vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe.h
rbnacl-libsodium-1.0.15.1 vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe.h
rbnacl-libsodium-1.0.15 vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe.h
rbnacl-libsodium-1.0.13 vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe.h
rbnacl-libsodium-1.0.11 vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe.h
rbnacl-libsodium-1.0.10 vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe.h
rbnacl-libsodium-1.0.9 vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe.h