summaryrefslogtreecommitdiff
path: root/nacl/tests/scalarmult2.c
diff options
context:
space:
mode:
Diffstat (limited to 'nacl/tests/scalarmult2.c')
-rw-r--r--nacl/tests/scalarmult2.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/nacl/tests/scalarmult2.c b/nacl/tests/scalarmult2.c
deleted file mode 100644
index 90e6360d..00000000
--- a/nacl/tests/scalarmult2.c
+++ /dev/null
@@ -1,23 +0,0 @@
1#include <stdio.h>
2#include "crypto_scalarmult_curve25519.h"
3
4unsigned char bobsk[32] = {
5 0x5d,0xab,0x08,0x7e,0x62,0x4a,0x8a,0x4b
6,0x79,0xe1,0x7f,0x8b,0x83,0x80,0x0e,0xe6
7,0x6f,0x3b,0xb1,0x29,0x26,0x18,0xb6,0xfd
8,0x1c,0x2f,0x8b,0x27,0xff,0x88,0xe0,0xeb
9} ;
10
11unsigned char bobpk[32];
12
13main()
14{
15 int i;
16 crypto_scalarmult_curve25519_base(bobpk,bobsk);
17 for (i = 0;i < 32;++i) {
18 if (i > 0) printf(","); else printf(" ");
19 printf("0x%02x",(unsigned int) bobpk[i]);
20 if (i % 8 == 7) printf("\n");
21 }
22 return 0;
23}