Sha256: 232f48e92a096e1a9c5c18ce2bc80583d42236740501bff7d57eb9b9cc6310f4

Contents?: true

Size: 228 Bytes

Versions: 26

Compression:

Stored size: 228 Bytes

Contents

#include "ge.h"

void ge_p3_tobytes(unsigned char *s,const ge_p3 *h)
{
  fe recip;
  fe x;
  fe y;

  fe_invert(recip,h->Z);
  fe_mul(x,h->X,recip);
  fe_mul(y,h->Y,recip);
  fe_tobytes(s,y);
  s[31] ^= fe_isnegative(x) << 7;
}

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
ed25519-1.2.2-jruby ext/ed25519_ref10/ge_p3_tobytes.c
ed25519-1.2.2 ext/ed25519_ref10/ge_p3_tobytes.c
ed25519-1.2.1-jruby ext/ed25519_ref10/ge_p3_tobytes.c
ed25519-1.2.1 ext/ed25519_ref10/ge_p3_tobytes.c
ed25519-1.2.0-jruby ext/ed25519_ref10/ge_p3_tobytes.c
ed25519-1.2.0 ext/ed25519_ref10/ge_p3_tobytes.c
ed25519-1.1.0-jruby ext/ed25519_ref10/ge_p3_tobytes.c
ed25519-1.1.0 ext/ed25519_ref10/ge_p3_tobytes.c
ed25519-1.0.0-jruby ext/ed25519_ref10/ge_p3_tobytes.c
ed25519-1.0.0 ext/ed25519_ref10/ge_p3_tobytes.c
rbnacl-libsodium-1.0.7 vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p3_tobytes.c
rbnacl-libsodium-1.0.6 vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p3_tobytes.c
rbnacl-libsodium-1.0.5 vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p3_tobytes.c
rbnacl-libsodium-1.0.4 vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p3_tobytes.c
rbnacl-libsodium-1.0.3 vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p3_tobytes.c
rbnacl-libsodium-1.0.2 vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p3_tobytes.c
rbnacl-libsodium-1.0.1 vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p3_tobytes.c
rbnacl-libsodium-1.0.0 vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p3_tobytes.c
rbnacl-libsodium-0.7.0 vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p3_tobytes.c
rbnacl-libsodium-0.6.1 vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/ge_p3_tobytes.c