Use high-level APIs in tests

This commit is contained in:
Frank Denis
2014-09-13 13:56:41 -07:00
parent 21a5e5accb
commit 3b680e0a52
18 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ int main(void)
int i;
unsigned char sk[32];
unsigned char pk[32];
crypto_box_curve25519xsalsa20poly1305_seed_keypair(pk, sk, seed);
crypto_box_seed_keypair(pk, sk, seed);
for (i = 0;i < 32;++i) {
printf(",0x%02x",(unsigned int) pk[i]);
if (i % 8 == 7) printf("\n");