libsignal-protocol-c  master
curve_sigs.h
1 
2 #ifndef __CURVE_SIGS_H__
3 #define __CURVE_SIGS_H__
4 
5 /* returns 0 on success */
6 int curve25519_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 curve25519_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 
17 #endif