Sha256: 4645ecc204b35ee633fb0e8d07902249bf40926058b02e995af36052c2ba591e

Contents?: true

Size: 325 Bytes

Versions: 3

Compression:

Stored size: 325 Bytes

Contents

#include <string>
using std::string;
#include "crypto_sign.h"

string crypto_sign_keypair(string *sk_string)
{
  unsigned char pk[crypto_sign_PUBLICKEYBYTES];
  unsigned char sk[crypto_sign_SECRETKEYBYTES];
  crypto_sign_keypair(pk,sk);
  *sk_string = string((char *) sk,sizeof sk);
  return string((char *) pk,sizeof pk);
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby_nacl-0.1.2 ext/ruby_nacl/NaCl/crypto_sign/wrapper-keypair.cpp
ruby_nacl-0.1.1 ext/ruby_nacl/NaCl/crypto_sign/wrapper-keypair.cpp
ruby_nacl-0.1.0 ext/ruby_nacl/NaCl/crypto_sign/wrapper-keypair.cpp