Initialize libsodium in all apps
This commit is contained in:
@@ -46,6 +46,8 @@ int main(int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sodium_init();
|
||||||
|
|
||||||
SecretKey secret_key;
|
SecretKey secret_key;
|
||||||
secret_key.ReadFromFile(secret_key_filename);
|
secret_key.ReadFromFile(secret_key_filename);
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ int main(int argc, char *argv[]) {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sodium_init();
|
||||||
|
|
||||||
SharedKey key;
|
SharedKey key;
|
||||||
CryptoUtil::GenKey(&key);
|
CryptoUtil::GenKey(&key);
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ int main(int argc, char *argv[]) {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sodium_init();
|
||||||
|
|
||||||
SecretKey secret_key;
|
SecretKey secret_key;
|
||||||
PublicKey public_key;
|
PublicKey public_key;
|
||||||
CryptoUtil::GenKeyPair(&secret_key, &public_key);
|
CryptoUtil::GenKeyPair(&secret_key, &public_key);
|
||||||
|
|||||||
Reference in New Issue
Block a user