File: xeddsa.h

package info (click to toggle)
python-axolotl-curve25519 0.4.1.post2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 664 kB
  • sloc: ansic: 5,207; python: 34; makefile: 4
file content (16 lines) | stat: -rw-r--r-- 636 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

#ifndef __XEDDSA_H__
#define __XEDDSA_H__

/* returns 0 on success */
int xed25519_sign(unsigned char* signature_out, /* 64 bytes */
                  const unsigned char* curve25519_privkey, /* 32 bytes */
                  const unsigned char* msg, const unsigned long msg_len, /* <= 256 bytes */
                  const unsigned char* random); /* 64 bytes */

/* returns 0 on success */
int xed25519_verify(const unsigned char* signature, /* 64 bytes */
                    const unsigned char* curve25519_pubkey, /* 32 bytes */
                    const unsigned char* msg, const unsigned long msg_len); /* <= 256 bytes */

#endif