diff options
author | Jack Lloyd <[email protected]> | 2018-07-04 10:42:27 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-07-04 10:42:27 -0400 |
commit | 131ede272c69f949a67f3a483afbd7c4a0104dc5 (patch) | |
tree | dc0afa933c7bf00e9653ad6950f04bc609d0f0f7 /src/cli | |
parent | a2ce8a8ebd5abc25b97a5bc7312c47fcceba9fd1 (diff) |
Need to bypass OpenSSL-based RSA keygen
Diffstat (limited to 'src/cli')
-rw-r--r-- | src/cli/pubkey.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cli/pubkey.cpp b/src/cli/pubkey.cpp index e90e0aa73..c28a9fa42 100644 --- a/src/cli/pubkey.cpp +++ b/src/cli/pubkey.cpp @@ -33,7 +33,7 @@ namespace Botan_CLI { class PK_Keygen final : public Command { public: - PK_Keygen() : Command("keygen --algo=RSA --params= --passphrase= --pbe= --pbe-millis=300 --der-out") {} + PK_Keygen() : Command("keygen --algo=RSA --params= --passphrase= --pbe= --pbe-millis=300 --provider= --der-out") {} std::string group() const override { @@ -49,9 +49,10 @@ class PK_Keygen final : public Command { const std::string algo = get_arg("algo"); const std::string params = get_arg("params"); + const std::string provider = get_arg("provider"); - std::unique_ptr<Botan::Private_Key> - key(Botan::create_private_key(algo, rng(), params)); + std::unique_ptr<Botan::Private_Key> key = + Botan::create_private_key(algo, rng(), params, provider); if(!key) { |