Sha256: 28427619a848f87dac19e05213ca6732f7ee793ef323bc941ba07dabf5c2c29c

Contents?: true

Size: 366 Bytes

Versions: 3

Compression:

Stored size: 366 Bytes

Contents

#include "uint64_unpack.h"

crypto_uint64 uint64_unpack(const unsigned char *x)
{
  crypto_uint64 result;
  result = x[7];
  result <<= 8; result |= x[6];
  result <<= 8; result |= x[5];
  result <<= 8; result |= x[4];
  result <<= 8; result |= x[3];
  result <<= 8; result |= x[2];
  result <<= 8; result |= x[1];
  result <<= 8; result |= x[0];
  return result;
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby_nacl-0.1.2 ext/ruby_nacl/NaCl/curvecp/uint64_unpack.c
ruby_nacl-0.1.1 ext/ruby_nacl/NaCl/curvecp/uint64_unpack.c
ruby_nacl-0.1.0 ext/ruby_nacl/NaCl/curvecp/uint64_unpack.c