diff --git a/auth-client.cc b/auth-client.cc index 24e7f03..87ea0df 100644 --- a/auth-client.cc +++ b/auth-client.cc @@ -46,6 +46,8 @@ int main(int argc, char *argv[]) { } } + sodium_init(); + SecretKey secret_key; secret_key.ReadFromFile(secret_key_filename); diff --git a/gen-key.cc b/gen-key.cc index ca4ceaa..4244430 100644 --- a/gen-key.cc +++ b/gen-key.cc @@ -10,6 +10,8 @@ int main(int argc, char *argv[]) { return 1; } + sodium_init(); + SharedKey key; CryptoUtil::GenKey(&key); diff --git a/gen-keypair.cc b/gen-keypair.cc index 4169ca6..cf11324 100644 --- a/gen-keypair.cc +++ b/gen-keypair.cc @@ -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);