diff options
author | Jack Lloyd <[email protected]> | 2016-11-08 10:33:45 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-11-08 10:33:45 -0500 |
commit | fc44288f56588fdafb54aedb00458fd75472d6aa (patch) | |
tree | 9f9aa771c1b29cd64189bce210e4428d8c0c750e /src/lib/prov | |
parent | 181777189eceab70ec6ff19104902ab3ac8255c5 (diff) |
Remove Key_Type typedefs
Also part of Algo_Registry and not needed after #668
Diffstat (limited to 'src/lib/prov')
-rw-r--r-- | src/lib/prov/openssl/openssl_ec.cpp | 1 | ||||
-rw-r--r-- | src/lib/prov/openssl/openssl_rsa.cpp | 4 | ||||
-rw-r--r-- | src/lib/prov/pkcs11/p11_rsa.cpp | 4 |
3 files changed, 0 insertions, 9 deletions
diff --git a/src/lib/prov/openssl/openssl_ec.cpp b/src/lib/prov/openssl/openssl_ec.cpp index fe795fcde..ca4352370 100644 --- a/src/lib/prov/openssl/openssl_ec.cpp +++ b/src/lib/prov/openssl/openssl_ec.cpp @@ -223,7 +223,6 @@ namespace { class OpenSSL_ECDH_KA_Operation : public PK_Ops::Key_Agreement_with_KDF { public: - typedef ECDH_PrivateKey Key_Type; OpenSSL_ECDH_KA_Operation(const ECDH_PrivateKey& ecdh, const std::string& kdf) : PK_Ops::Key_Agreement_with_KDF(kdf), m_ossl_ec(::EC_KEY_new(), ::EC_KEY_free) diff --git a/src/lib/prov/openssl/openssl_rsa.cpp b/src/lib/prov/openssl/openssl_rsa.cpp index ae3f1cce2..b03b747aa 100644 --- a/src/lib/prov/openssl/openssl_rsa.cpp +++ b/src/lib/prov/openssl/openssl_rsa.cpp @@ -40,7 +40,6 @@ std::pair<int, size_t> get_openssl_enc_pad(const std::string& eme) class OpenSSL_RSA_Encryption_Operation : public PK_Ops::Encryption { public: - typedef RSA_PublicKey Key_Type; OpenSSL_RSA_Encryption_Operation(const RSA_PublicKey& rsa, int pad, size_t pad_overhead) : m_openssl_rsa(nullptr, ::RSA_free), m_padding(pad) @@ -96,7 +95,6 @@ class OpenSSL_RSA_Encryption_Operation : public PK_Ops::Encryption class OpenSSL_RSA_Decryption_Operation : public PK_Ops::Decryption { public: - typedef RSA_PrivateKey Key_Type; OpenSSL_RSA_Decryption_Operation(const RSA_PrivateKey& rsa, int pad) : m_openssl_rsa(nullptr, ::RSA_free), m_padding(pad) @@ -142,7 +140,6 @@ class OpenSSL_RSA_Decryption_Operation : public PK_Ops::Decryption class OpenSSL_RSA_Verification_Operation : public PK_Ops::Verification_with_EMSA { public: - typedef RSA_PublicKey Key_Type; OpenSSL_RSA_Verification_Operation(const RSA_PublicKey& rsa, const std::string& emsa) : PK_Ops::Verification_with_EMSA(emsa), @@ -183,7 +180,6 @@ class OpenSSL_RSA_Verification_Operation : public PK_Ops::Verification_with_EMSA class OpenSSL_RSA_Signing_Operation : public PK_Ops::Signature_with_EMSA { public: - typedef RSA_PrivateKey Key_Type; OpenSSL_RSA_Signing_Operation(const RSA_PrivateKey& rsa, const std::string& emsa) : PK_Ops::Signature_with_EMSA(emsa), diff --git a/src/lib/prov/pkcs11/p11_rsa.cpp b/src/lib/prov/pkcs11/p11_rsa.cpp index 014419233..1e5f3341f 100644 --- a/src/lib/prov/pkcs11/p11_rsa.cpp +++ b/src/lib/prov/pkcs11/p11_rsa.cpp @@ -114,7 +114,6 @@ namespace { class PKCS11_RSA_Decryption_Operation final : public PK_Ops::Decryption { public: - typedef PKCS11_RSA_PrivateKey Key_Type; PKCS11_RSA_Decryption_Operation(const PKCS11_RSA_PrivateKey& key, const std::string& padding, @@ -173,7 +172,6 @@ class PKCS11_RSA_Decryption_Operation final : public PK_Ops::Decryption class PKCS11_RSA_Encryption_Operation : public PK_Ops::Encryption { public: - typedef PKCS11_RSA_PublicKey Key_Type; PKCS11_RSA_Encryption_Operation(const PKCS11_RSA_PublicKey& key, const std::string& padding) : m_key(key), m_mechanism(MechanismWrapper::create_rsa_crypt_mechanism(padding)) @@ -205,7 +203,6 @@ class PKCS11_RSA_Encryption_Operation : public PK_Ops::Encryption class PKCS11_RSA_Signature_Operation : public PK_Ops::Signature { public: - typedef PKCS11_RSA_PrivateKey Key_Type; PKCS11_RSA_Signature_Operation(const PKCS11_RSA_PrivateKey& key, const std::string& padding) : m_key(key), m_mechanism(MechanismWrapper::create_rsa_sign_mechanism(padding)) @@ -266,7 +263,6 @@ class PKCS11_RSA_Signature_Operation : public PK_Ops::Signature class PKCS11_RSA_Verification_Operation : public PK_Ops::Verification { public: - typedef PKCS11_RSA_PublicKey Key_Type; PKCS11_RSA_Verification_Operation(const PKCS11_RSA_PublicKey& key, const std::string& padding) : m_key(key), m_mechanism(MechanismWrapper::create_rsa_sign_mechanism(padding)) |