Sha256: 9af32227cb0afe6cdfe5567daee8d5aeafc5e594d51f2b0e34ac01936d927992

Contents?: true

Size: 524 Bytes

Versions: 3

Compression:

Stored size: 524 Bytes

Contents

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

unsigned char bobsk[32] = {
 0x5d,0xab,0x08,0x7e,0x62,0x4a,0x8a,0x4b
,0x79,0xe1,0x7f,0x8b,0x83,0x80,0x0e,0xe6
,0x6f,0x3b,0xb1,0x29,0x26,0x18,0xb6,0xfd
,0x1c,0x2f,0x8b,0x27,0xff,0x88,0xe0,0xeb
} ;

unsigned char bobpk[32];

main()
{
  int i;
  crypto_scalarmult_curve25519_base(bobpk,bobsk);
  for (i = 0;i < 32;++i) {
    if (i > 0) printf(","); else printf(" ");
    printf("0x%02x",(unsigned int) bobpk[i]);
    if (i % 8 == 7) 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/scalarmult2.c
ruby_nacl-0.1.1 ext/ruby_nacl/NaCl/tests/scalarmult2.c
ruby_nacl-0.1.0 ext/ruby_nacl/NaCl/tests/scalarmult2.c