Sha256: 145d40be5ae52f745192bfcd58fd6745e0555d74417386de49abc73ccceb5b54

Contents?: true

Size: 618 Bytes

Versions: 3

Compression:

Stored size: 618 Bytes

Contents

#include "crypto_box.h"

int crypto_box(
  unsigned char *c,
  const unsigned char *m,unsigned long long mlen,
  const unsigned char *n,
  const unsigned char *pk,
  const unsigned char *sk
)
{
  unsigned char k[crypto_box_BEFORENMBYTES];
  crypto_box_beforenm(k,pk,sk);
  return crypto_box_afternm(c,m,mlen,n,k);
}

int crypto_box_open(
  unsigned char *m,
  const unsigned char *c,unsigned long long clen,
  const unsigned char *n,
  const unsigned char *pk,
  const unsigned char *sk
)
{
  unsigned char k[crypto_box_BEFORENMBYTES];
  crypto_box_beforenm(k,pk,sk);
  return crypto_box_open_afternm(m,c,clen,n,k);
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby_nacl-0.1.2 ext/ruby_nacl/NaCl/crypto_box/curve25519xsalsa20poly1305/ref/box.c
ruby_nacl-0.1.1 ext/ruby_nacl/NaCl/crypto_box/curve25519xsalsa20poly1305/ref/box.c
ruby_nacl-0.1.0 ext/ruby_nacl/NaCl/crypto_box/curve25519xsalsa20poly1305/ref/box.c