mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Add headers as needed to make ed25519_ref10 compile.
This commit is contained in:
parent
8594e97c03
commit
8b36bb9299
4
src/ext/ed25519/ref10/crypto_hash_sha512.h
Normal file
4
src/ext/ed25519/ref10/crypto_hash_sha512.h
Normal file
@ -0,0 +1,4 @@
|
||||
/* Added for Tor. */
|
||||
#include <openssl/sha.h>
|
||||
#define crypto_hash_sha512(out, inp, len) \
|
||||
SHA512((inp), (len), (out))
|
3
src/ext/ed25519/ref10/crypto_int32.h
Normal file
3
src/ext/ed25519/ref10/crypto_int32.h
Normal file
@ -0,0 +1,3 @@
|
||||
/* Added for Tor. */
|
||||
#include "torint.h"
|
||||
#define crypto_int32 int32_t
|
3
src/ext/ed25519/ref10/crypto_int64.h
Normal file
3
src/ext/ed25519/ref10/crypto_int64.h
Normal file
@ -0,0 +1,3 @@
|
||||
/* Added for Tor. */
|
||||
#include "torint.h"
|
||||
#define crypto_int64 int64_t
|
6
src/ext/ed25519/ref10/crypto_sign.h
Normal file
6
src/ext/ed25519/ref10/crypto_sign.h
Normal file
@ -0,0 +1,6 @@
|
||||
/* Added for Tor */
|
||||
#define crypto_sign ed25519_ref10_sign
|
||||
#define crypto_sign_keypair ed25519_ref10_keygen
|
||||
#define crypto_sign_open ed25519_ref10_open
|
||||
|
||||
#include "ed25519_ref10.h"
|
3
src/ext/ed25519/ref10/crypto_uint32.h
Normal file
3
src/ext/ed25519/ref10/crypto_uint32.h
Normal file
@ -0,0 +1,3 @@
|
||||
/* Added for Tor. */
|
||||
#include "torint.h"
|
||||
#define crypto_uint32 uint32_t
|
3
src/ext/ed25519/ref10/crypto_uint64.h
Normal file
3
src/ext/ed25519/ref10/crypto_uint64.h
Normal file
@ -0,0 +1,3 @@
|
||||
/* Added for Tor. */
|
||||
#include "torint.h"
|
||||
#define crypto_uint64 uint64_t
|
5
src/ext/ed25519/ref10/crypto_verify_32.h
Normal file
5
src/ext/ed25519/ref10/crypto_verify_32.h
Normal file
@ -0,0 +1,5 @@
|
||||
/* Added for Tor. */
|
||||
#include "di_ops.h"
|
||||
#define crypto_verify_32(a,b) \
|
||||
(! tor_memeq((a), (b), 32))
|
||||
|
16
src/ext/ed25519/ref10/ed25519_ref10.h
Normal file
16
src/ext/ed25519/ref10/ed25519_ref10.h
Normal file
@ -0,0 +1,16 @@
|
||||
/* Added for Tor */
|
||||
#ifndef SRC_EXT_ED25519_REF10_H_INCLUDED_
|
||||
#define SRC_EXT_ED25519_REF10_H_INCLUDED_
|
||||
#include <torint.h>
|
||||
|
||||
int ed25519_ref10_keygen(unsigned char *pk,unsigned char *sk);
|
||||
int ed25519_ref10_open(
|
||||
unsigned char *m,uint64_t *mlen,
|
||||
const unsigned char *sm,uint64_t smlen,
|
||||
const unsigned char *pk);
|
||||
int ed25519_ref10_sign(
|
||||
unsigned char *sm,uint64_t *smlen,
|
||||
const unsigned char *m,uint64_t mlen,
|
||||
const unsigned char *sk);
|
||||
|
||||
#endif
|
4
src/ext/ed25519/ref10/randombytes.h
Normal file
4
src/ext/ed25519/ref10/randombytes.h
Normal file
@ -0,0 +1,4 @@
|
||||
/* Added for Tor. */
|
||||
#include "crypto.h"
|
||||
#define randombytes(b, n) \
|
||||
(crypto_strongest_rand((b), (n)))
|
Loading…
Reference in New Issue
Block a user