1*0ac341f1SConrad Meyer
2*0ac341f1SConrad Meyer #define TEST_NAME "scalarmult2"
3*0ac341f1SConrad Meyer #include "cmptest.h"
4*0ac341f1SConrad Meyer
5*0ac341f1SConrad Meyer static unsigned char bobsk[32] = { 0x5d, 0xab, 0x08, 0x7e, 0x62, 0x4a, 0x8a,
6*0ac341f1SConrad Meyer 0x4b, 0x79, 0xe1, 0x7f, 0x8b, 0x83, 0x80,
7*0ac341f1SConrad Meyer 0x0e, 0xe6, 0x6f, 0x3b, 0xb1, 0x29, 0x26,
8*0ac341f1SConrad Meyer 0x18, 0xb6, 0xfd, 0x1c, 0x2f, 0x8b, 0x27,
9*0ac341f1SConrad Meyer 0xff, 0x88, 0xe0, 0xeb };
10*0ac341f1SConrad Meyer
11*0ac341f1SConrad Meyer static unsigned char bobpk[32];
12*0ac341f1SConrad Meyer
13*0ac341f1SConrad Meyer int
main(void)14*0ac341f1SConrad Meyer main(void)
15*0ac341f1SConrad Meyer {
16*0ac341f1SConrad Meyer int i;
17*0ac341f1SConrad Meyer
18*0ac341f1SConrad Meyer crypto_scalarmult_base(bobpk, bobsk);
19*0ac341f1SConrad Meyer
20*0ac341f1SConrad Meyer for (i = 0; i < 32; ++i) {
21*0ac341f1SConrad Meyer if (i > 0) {
22*0ac341f1SConrad Meyer printf(",");
23*0ac341f1SConrad Meyer } else {
24*0ac341f1SConrad Meyer printf(" ");
25*0ac341f1SConrad Meyer }
26*0ac341f1SConrad Meyer printf("0x%02x", (unsigned int) bobpk[i]);
27*0ac341f1SConrad Meyer if (i % 8 == 7) {
28*0ac341f1SConrad Meyer printf("\n");
29*0ac341f1SConrad Meyer }
30*0ac341f1SConrad Meyer }
31*0ac341f1SConrad Meyer return 0;
32*0ac341f1SConrad Meyer }
33