Sha256: 034410eea5c360bdb5ed5e2258e4d260363cececf00bbdad78369ca0e4463561

Contents?: true

Size: 614 Bytes

Versions: 9

Compression:

Stored size: 614 Bytes

Contents

/*
   This file is adapted from amd64-51/fe25519.h:
   'fe25519' is renamed as 'fe51';
   All the redundant functions are removed;
   New function fe51_nsquare is introduced.
*/

#ifndef fe51_H
#define fe51_H

#ifdef __cplusplus
extern "C" {
#endif

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

#include "fe51_namespace.h"

typedef struct
{
    uint64_t v[5];
}
fe51;

extern void fe51_pack(unsigned char *, const fe51 *);
extern void fe51_mul(fe51 *, const fe51 *, const fe51 *);
extern void fe51_nsquare(fe51 *, const fe51 *, int);
extern void fe51_invert(fe51 *, const fe51 *);

#ifdef __cplusplus
}
#endif

#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/fe51.h
laag-libsodium-1.0.16.0 vendor/github.com/jedisct1/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51.h
rbnacl-libsodium-1.0.16 vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51.h
rbnacl-libsodium-1.0.15.1 vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51.h
rbnacl-libsodium-1.0.15 vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51.h
rbnacl-libsodium-1.0.13 vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51.h
rbnacl-libsodium-1.0.11 vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51.h
rbnacl-libsodium-1.0.10 vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51.h
rbnacl-libsodium-1.0.9 vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/sandy2x/fe51.h