2013-01-20 18:41:17 -05:00
|
|
|
|
2013-01-20 18:55:10 -05:00
|
|
|
#define TEST_NAME "scalarmult2"
|
|
|
|
#include "cmptest.h"
|
|
|
|
|
2017-02-23 05:22:00 -05:00
|
|
|
static 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 };
|
2013-01-20 18:41:17 -05:00
|
|
|
|
2017-02-23 05:22:00 -05:00
|
|
|
int
|
|
|
|
main(void)
|
2013-01-20 18:41:17 -05:00
|
|
|
{
|
2020-04-26 14:06:51 -04:00
|
|
|
unsigned char bobpk[32];
|
|
|
|
char hex[65];
|
|
|
|
int i;
|
2014-09-14 13:34:16 -04:00
|
|
|
|
2014-09-14 14:32:55 -04:00
|
|
|
crypto_scalarmult_base(bobpk, bobsk);
|
2020-04-26 14:06:51 -04:00
|
|
|
sodium_bin2hex(hex, sizeof hex, bobpk, sizeof bobpk);
|
|
|
|
printf("%s\n", hex);
|
2014-09-14 13:34:16 -04:00
|
|
|
|
|
|
|
return 0;
|
2013-01-20 18:41:17 -05:00
|
|
|
}
|