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