added sodium_init()

This commit is contained in:
TLINDEN
2013-12-19 12:37:03 +01:00
parent 3a107841bb
commit 7fc71b67f7
4 changed files with 7 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
#include "static.h"
int main() {
sodium_init();
unsigned char *t = ucmalloc(12);
if(pcp_sodium_verify_box(&t, cipher, cipher_len, nonce, secret_b, public_a) == 0) {
if(memcmp(t, message, message_len) == 0) {