Sha256: 36481cfd1034b2b3dc5e8a91e1f4cc8a1ac8a4a973e3927f46b1ed942aa1c28f

Contents?: true

Size: 273 Bytes

Versions: 3

Compression:

Stored size: 273 Bytes

Contents

#include <stdio.h>
#include "crypto_hash.h"

unsigned char x[8] = "testing\n";
unsigned char h[crypto_hash_BYTES];

int main()
{
  int i;
  crypto_hash(h,x,sizeof x);
  for (i = 0;i < crypto_hash_BYTES;++i) printf("%02x",(unsigned int) h[i]);
  printf("\n");
  return 0;
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby_nacl-0.1.2 ext/ruby_nacl/NaCl/tests/hash.c
ruby_nacl-0.1.1 ext/ruby_nacl/NaCl/tests/hash.c
ruby_nacl-0.1.0 ext/ruby_nacl/NaCl/tests/hash.c