Debian Codegraph @

curve/ed25519/additions/keygen.h

raw
1
2 #ifndef __KEYGEN_H__
3 #define __KEYGEN_H__
4
5 /* Sets and clears bits to make a random 32 bytes into a private key */
6 void sc_clamp(unsigned char* a);
7
8 /* The private key should be 32 random bytes "clamped" by sc_clamp() */
9 void curve25519_keygen(unsigned char* curve25519_pubkey_out, /* 32 bytes */
10 const unsigned char* curve25519_privkey_in); /* 32 bytes */
11
12 #endif