Consolidate external libraries

This commit is contained in:
Pretty Printer
2024-03-21 21:29:31 -05:00
committed by John Freeman
parent dd312c3cc5
commit e2384885f5
184 changed files with 13 additions and 40 deletions

View File

@@ -0,0 +1,34 @@
#ifndef ED25519_H
#define ED25519_H
#include <stdlib.h>
typedef unsigned char ed25519_signature[64];
typedef unsigned char ed25519_public_key[32];
typedef unsigned char ed25519_secret_key[32];
typedef unsigned char curved25519_key[32];
void ed25519_publickey(const ed25519_secret_key sk, ed25519_public_key pk);
int ed25519_sign_open(const unsigned char *m, size_t mlen, const ed25519_public_key pk, const ed25519_signature RS);
void ed25519_sign(const unsigned char *m, size_t mlen, const ed25519_secret_key sk, const ed25519_public_key pk, ed25519_signature RS);
int ed25519_sign_open_batch(const unsigned char **m, size_t *mlen, const unsigned char **pk, const unsigned char **RS, size_t num, int *valid);
void ed25519_randombytes_unsafe(void *out, size_t count);
void curved25519_scalarmult_basepoint(curved25519_key pk, const curved25519_key e);
#if defined(ED25519_SSE2)
void ed25519_publickey_sse2(const ed25519_secret_key sk, ed25519_public_key pk);
int ed25519_sign_open_sse2(const unsigned char *m, size_t mlen, const ed25519_public_key pk, const ed25519_signature RS);
void ed25519_sign_sse2(const unsigned char *m, size_t mlen, const ed25519_secret_key sk, const ed25519_public_key pk, ed25519_signature RS);
int ed25519_sign_open_batch_sse2(const unsigned char **m, size_t *mlen, const unsigned char **pk, const unsigned char **RS, size_t num, int *valid);
void ed25519_randombytes_unsafe_sse2(void *out, size_t count);
void curved25519_scalarmult_basepoint_sse2(curved25519_key pk, const curved25519_key e);
#endif
#endif // ED25519_H