GNUnet  0.11.x
tweetnacl-gnunet.h
Go to the documentation of this file.
1 /*
2  This file has been placed in the public domain.
3 
4  Based on TweetNaCl version 20140427
5 
6  Originally obtained from:
7  https://tweetnacl.cr.yp.to/20140427/tweetnacl.h
8 
9  SPDX-License-Identifier: 0BSD
10  */
11 
12 
13 #ifndef TWEETNACL_H
14 #define TWEETNACL_H
15 #include <stdint.h>
16 
17 
18 #define GNUNET_TWEETNACL_SIGN_SECRETKEYBYTES 64
19 #define GNUNET_TWEETNACL_SIGN_PUBLICBYTES 32
20 #define GNUNET_TWEETNACL_SCALARMULT_BYTES 32
21 
22 int
24  const uint8_t *,
25  const uint8_t *);
26 extern int
28  const uint8_t *);
29 void
30 GNUNET_TWEETNACL_sign_pk_from_seed (uint8_t *pk, const uint8_t *seed);
31 
32 void
33 GNUNET_TWEETNACL_sign_sk_from_seed (uint8_t *sk, const uint8_t *seed);
34 
35 int
37  const uint8_t *ed25519_pk);
38 
39 int
40 GNUNET_TWEETNACL_sign_detached_verify (const uint8_t *sig,
41  const uint8_t *m,
42  uint64_t n,
43  const uint8_t *pk);
44 
45 int
46 GNUNET_TWEETNACL_sign_detached (uint8_t *sig,
47  const uint8_t *m,
48  uint64_t n,
49  const uint8_t *sk);
50 #endif
static struct GNUNET_CRYPTO_EddsaPrivateKey * pk
Private key of this peer.
int GNUNET_TWEETNACL_scalarmult_curve25519_base(uint8_t *, const uint8_t *)
int GNUNET_TWEETNACL_scalarmult_curve25519(uint8_t *, const uint8_t *, const uint8_t *)
void GNUNET_TWEETNACL_sign_pk_from_seed(uint8_t *pk, const uint8_t *seed)
void GNUNET_TWEETNACL_sign_sk_from_seed(uint8_t *sk, const uint8_t *seed)
static struct GNUNET_ARM_MonitorHandle * m
Monitor connection with ARM.
Definition: gnunet-arm.c:104
int GNUNET_TWEETNACL_sign_detached(uint8_t *sig, const uint8_t *m, uint64_t n, const uint8_t *sk)
int GNUNET_TWEETNACL_sign_ed25519_pk_to_curve25519(uint8_t *x25519_pk, const uint8_t *ed25519_pk)
int GNUNET_TWEETNACL_sign_detached_verify(const uint8_t *sig, const uint8_t *m, uint64_t n, const uint8_t *pk)