Debian Codegraph @

curve/ed25519/additions/xeddsa.h

raw
1
2 #ifndef __XEDDSA_H__
3 #define __XEDDSA_H__
4
5 /* returns 0 on success */
6 int xed25519_sign(unsigned char* signature_out, /* 64 bytes */
7 const unsigned char* curve25519_privkey, /* 32 bytes */
8 const unsigned char* msg, const unsigned long msg_len, /* <= 256 bytes */
9 const unsigned char* random); /* 64 bytes */
10
11 /* returns 0 on success */
12 int xed25519_verify(const unsigned char* signature, /* 64 bytes */
13 const unsigned char* curve25519_pubkey, /* 32 bytes */
14 const unsigned char* msg, const unsigned long msg_len); /* <= 256 bytes */
15
16 #endif