source: git/src-ed25519/supercop-ref/crypto_sign.h

Last change on this file was 9598517, checked in by Brian Warner <warner@…>, at 2012-02-12T15:05:37Z

Add Ed25519 signatures, in pycryptopp.publickey.ed25519 . Closes #75.

This copies in version 1.0 of python-ed25519, from
https://github.com/warner/python-ed25519 (or pypi), with minor source-code
rearrangement to match pycryptopp's build process. It includes unit tests,
power-on self-tests, and full known-answer tests. The standard 'setup.py
test' target only exercises 10% of the test vectors, to let the suite run in
about 1.0s on my laptop. The API documentation is in README.ed25519 .

Tests have been run successfully on Linux, OS-X and windows.

  • Property mode set to 100644
File size: 593 bytes
Line 
1#ifndef crypto_sign_edwards25519sha512batch_H
2#define crypto_sign_edwards25519sha512batch_H
3
4#define SECRETKEYBYTES 64
5#define PUBLICKEYBYTES 32
6#define SIGNATUREBYTES 64
7
8extern int crypto_sign(unsigned char *,unsigned long long *,const unsigned char *,unsigned long long,const unsigned char *);
9extern int crypto_sign_open(unsigned char *,unsigned long long *,const unsigned char *,unsigned long long,const unsigned char *);
10extern int crypto_sign_keypair(unsigned char *,unsigned char *);
11extern int crypto_sign_publickey(unsigned char *pk, unsigned char *sk, unsigned char *seed);
12
13#endif
Note: See TracBrowser for help on using the repository browser.