Initialize libsodium in all apps

This commit is contained in:
Ian Gulliver
2015-02-08 19:16:11 +00:00
parent 9a0449be5d
commit 7807df9575
3 changed files with 6 additions and 0 deletions

View File

@@ -46,6 +46,8 @@ int main(int argc, char *argv[]) {
}
}
sodium_init();
SecretKey secret_key;
secret_key.ReadFromFile(secret_key_filename);

View File

@@ -10,6 +10,8 @@ int main(int argc, char *argv[]) {
return 1;
}
sodium_init();
SharedKey key;
CryptoUtil::GenKey(&key);

View File

@@ -10,6 +10,8 @@ int main(int argc, char *argv[]) {
return 1;
}
sodium_init();
SecretKey secret_key;
PublicKey public_key;
CryptoUtil::GenKeyPair(&secret_key, &public_key);