Sha256: 0c19d6cc27f4218872cbd86aa15e33d7e87c77bfccbb38831af38c800ced972d

Contents?: true

Size: 859 Bytes

Versions: 35

Compression:

Stored size: 859 Bytes

Contents

#ifndef ED25519_REF10_H
#define ED25519_REF10_H

#include <stdint.h>

#define SECRETKEYBYTES 64
#define PUBLICKEYBYTES 32
#define SIGNATUREBYTES 64

#define ED25519_KEYSIZE_BYTES 32
typedef uint8_t ED25519_KEY[ED25519_KEYSIZE_BYTES];

/* Generate an Ed25519 keypair from a seed value */
int crypto_sign_ed25519_ref10_seed_keypair(uint8_t *pk, uint8_t *sk, const uint8_t *seed);

/* Compute an Ed25519 signature over the given message */
int crypto_sign_ed25519_ref10(
  uint8_t *sm, uint64_t *smlen,
  const uint8_t *m, uint64_t mlen,
  const uint8_t *sk
);

/* Verify the given signature is authentic */
int crypto_sign_open_ed25519_ref10(
  uint8_t *m, uint64_t *mlen,
  const uint8_t *sm, uint64_t smlen,
  const uint8_t *pk
);

/* Constant-time comparison function */
int crypto_verify_32(const uint8_t *x,const uint8_t *y);

#endif /* ED25519_REF10_H */

Version data entries

35 entries across 31 versions & 2 rubygems

Version Path
ed25519-1.3.0 ext/ed25519_ref10/ed25519_ref10.h
ed25519-1.3.0-java ext/ed25519_ref10/ed25519_ref10.h
vagrant-unbundled-2.2.19.0 vendor/bundle/ruby/3.0.0/gems/ed25519-1.2.4/ext/ed25519_ref10/ed25519_ref10.h
vagrant-unbundled-2.2.18.0 vendor/bundle/ruby/3.0.0/gems/ed25519-1.2.4/ext/ed25519_ref10/ed25519_ref10.h
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/3.0.0/gems/ed25519-1.2.4/ext/ed25519_ref10/ed25519_ref10.h
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/2.7.0/gems/ed25519-1.2.4/ext/ed25519_ref10/ed25519_ref10.h
vagrant-unbundled-2.2.14.0 vendor/bundle/ruby/2.7.0/gems/ed25519-1.2.4/ext/ed25519_ref10/ed25519_ref10.h
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.7.0/gems/ed25519-1.2.4/ext/ed25519_ref10/ed25519_ref10.h
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.7.0/gems/ed25519-1.2.4/ext/ed25519_ref10/ed25519_ref10.h
vagrant-unbundled-2.2.8.0 vendor/bundle/ruby/2.7.0/gems/ed25519-1.2.4/ext/ed25519_ref10/ed25519_ref10.h
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/ed25519-1.2.4/ext/ed25519_ref10/ed25519_ref10.h
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/ed25519-1.2.4/ext/ed25519_ref10/ed25519_ref10.h
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/ed25519-1.2.4/ext/ed25519_ref10/ed25519_ref10.h
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/ed25519-1.2.4/ext/ed25519_ref10/ed25519_ref10.h
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/ed25519-1.2.4/ext/ed25519_ref10/ed25519_ref10.h
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/ed25519-1.2.4/ext/ed25519_ref10/ed25519_ref10.h
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/ed25519-1.2.4/ext/ed25519_ref10/ed25519_ref10.h
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/ed25519-1.2.4/ext/ed25519_ref10/ed25519_ref10.h
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.6.0/gems/ed25519-1.2.4/ext/ed25519_ref10/ed25519_ref10.h
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/gems/ed25519-1.2.4/ext/ed25519_ref10/ed25519_ref10.h