Key handling cleanup, now using libsodium's secure memory allocation

This commit is contained in:
Ian Gulliver
2015-02-08 19:02:37 +00:00
parent bcfe496fb1
commit 52ee93708d
6 changed files with 182 additions and 96 deletions

View File

@@ -10,10 +10,10 @@ int main(int argc, char *argv[]) {
return 1;
}
std::string key;
SharedKey key;
CryptoUtil::GenKey(&key);
CryptoUtil::WriteKeyToFile(argv[1], key);
key.WriteToFile(argv[1]);
return 0;
}