diff options
Diffstat (limited to 'src/lib/pubkey')
-rw-r--r-- | src/lib/pubkey/curve25519/curve25519.cpp | 1 | ||||
-rw-r--r-- | src/lib/pubkey/dh/dh.cpp | 1 | ||||
-rw-r--r-- | src/lib/pubkey/dsa/dsa.cpp | 2 | ||||
-rw-r--r-- | src/lib/pubkey/ecdh/ecdh.cpp | 1 | ||||
-rw-r--r-- | src/lib/pubkey/ecdsa/ecdsa.cpp | 2 | ||||
-rw-r--r-- | src/lib/pubkey/ecgdsa/ecgdsa.cpp | 2 | ||||
-rw-r--r-- | src/lib/pubkey/eckcdsa/eckcdsa.cpp | 2 | ||||
-rw-r--r-- | src/lib/pubkey/elgamal/elgamal.cpp | 2 | ||||
-rw-r--r-- | src/lib/pubkey/gost_3410/gost_3410.cpp | 2 | ||||
-rw-r--r-- | src/lib/pubkey/mce/mceliece_key.cpp | 2 | ||||
-rw-r--r-- | src/lib/pubkey/rsa/rsa.cpp | 6 |
11 files changed, 0 insertions, 23 deletions
diff --git a/src/lib/pubkey/curve25519/curve25519.cpp b/src/lib/pubkey/curve25519/curve25519.cpp index fc2fcea0b..216d02600 100644 --- a/src/lib/pubkey/curve25519/curve25519.cpp +++ b/src/lib/pubkey/curve25519/curve25519.cpp @@ -120,7 +120,6 @@ namespace { class Curve25519_KA_Operation : public PK_Ops::Key_Agreement_with_KDF { public: - typedef Curve25519_PrivateKey Key_Type; Curve25519_KA_Operation(const Curve25519_PrivateKey& key, const std::string& kdf) : PK_Ops::Key_Agreement_with_KDF(kdf), diff --git a/src/lib/pubkey/dh/dh.cpp b/src/lib/pubkey/dh/dh.cpp index 41922c3db..8c7fdd289 100644 --- a/src/lib/pubkey/dh/dh.cpp +++ b/src/lib/pubkey/dh/dh.cpp @@ -82,7 +82,6 @@ namespace { class DH_KA_Operation : public PK_Ops::Key_Agreement_with_KDF { public: - typedef DH_PrivateKey Key_Type; DH_KA_Operation(const DH_PrivateKey& key, const std::string& kdf, RandomNumberGenerator& rng) : PK_Ops::Key_Agreement_with_KDF(kdf), diff --git a/src/lib/pubkey/dsa/dsa.cpp b/src/lib/pubkey/dsa/dsa.cpp index 1dde7eeb4..6ee633a45 100644 --- a/src/lib/pubkey/dsa/dsa.cpp +++ b/src/lib/pubkey/dsa/dsa.cpp @@ -78,7 +78,6 @@ namespace { class DSA_Signature_Operation : public PK_Ops::Signature_with_EMSA { public: - typedef DSA_PrivateKey Key_Type; DSA_Signature_Operation(const DSA_PrivateKey& dsa, const std::string& emsa) : PK_Ops::Signature_with_EMSA(emsa), m_q(dsa.group_q()), @@ -145,7 +144,6 @@ DSA_Signature_Operation::raw_sign(const byte msg[], size_t msg_len, class DSA_Verification_Operation : public PK_Ops::Verification_with_EMSA { public: - typedef DSA_PublicKey Key_Type; DSA_Verification_Operation(const DSA_PublicKey& dsa, const std::string& emsa) : PK_Ops::Verification_with_EMSA(emsa), diff --git a/src/lib/pubkey/ecdh/ecdh.cpp b/src/lib/pubkey/ecdh/ecdh.cpp index f3da737bb..1bdf2c209 100644 --- a/src/lib/pubkey/ecdh/ecdh.cpp +++ b/src/lib/pubkey/ecdh/ecdh.cpp @@ -26,7 +26,6 @@ namespace { class ECDH_KA_Operation : public PK_Ops::Key_Agreement_with_KDF { public: - typedef ECDH_PrivateKey Key_Type; ECDH_KA_Operation(const ECDH_PrivateKey& key, const std::string& kdf) : PK_Ops::Key_Agreement_with_KDF(kdf), diff --git a/src/lib/pubkey/ecdsa/ecdsa.cpp b/src/lib/pubkey/ecdsa/ecdsa.cpp index 48d16caca..0ee66c628 100644 --- a/src/lib/pubkey/ecdsa/ecdsa.cpp +++ b/src/lib/pubkey/ecdsa/ecdsa.cpp @@ -44,7 +44,6 @@ namespace { class ECDSA_Signature_Operation : public PK_Ops::Signature_with_EMSA { public: - typedef ECDSA_PrivateKey Key_Type; ECDSA_Signature_Operation(const ECDSA_PrivateKey& ecdsa, const std::string& emsa) : @@ -101,7 +100,6 @@ ECDSA_Signature_Operation::raw_sign(const byte msg[], size_t msg_len, class ECDSA_Verification_Operation : public PK_Ops::Verification_with_EMSA { public: - typedef ECDSA_PublicKey Key_Type; ECDSA_Verification_Operation(const ECDSA_PublicKey& ecdsa, const std::string& emsa) : PK_Ops::Verification_with_EMSA(emsa), diff --git a/src/lib/pubkey/ecgdsa/ecgdsa.cpp b/src/lib/pubkey/ecgdsa/ecgdsa.cpp index 136f2159a..f21f1bb27 100644 --- a/src/lib/pubkey/ecgdsa/ecgdsa.cpp +++ b/src/lib/pubkey/ecgdsa/ecgdsa.cpp @@ -32,7 +32,6 @@ namespace { class ECGDSA_Signature_Operation : public PK_Ops::Signature_with_EMSA { public: - typedef ECGDSA_PrivateKey Key_Type; ECGDSA_Signature_Operation(const ECGDSA_PrivateKey& ecgdsa, const std::string& emsa) : @@ -83,7 +82,6 @@ ECGDSA_Signature_Operation::raw_sign(const byte msg[], size_t msg_len, class ECGDSA_Verification_Operation : public PK_Ops::Verification_with_EMSA { public: - typedef ECGDSA_PublicKey Key_Type; ECGDSA_Verification_Operation(const ECGDSA_PublicKey& ecgdsa, const std::string& emsa) : diff --git a/src/lib/pubkey/eckcdsa/eckcdsa.cpp b/src/lib/pubkey/eckcdsa/eckcdsa.cpp index f3beeeb73..5e2b3394e 100644 --- a/src/lib/pubkey/eckcdsa/eckcdsa.cpp +++ b/src/lib/pubkey/eckcdsa/eckcdsa.cpp @@ -38,7 +38,6 @@ namespace { class ECKCDSA_Signature_Operation : public PK_Ops::Signature_with_EMSA { public: - typedef ECKCDSA_PrivateKey Key_Type; ECKCDSA_Signature_Operation(const ECKCDSA_PrivateKey& eckcdsa, const std::string& emsa) : @@ -112,7 +111,6 @@ ECKCDSA_Signature_Operation::raw_sign(const byte msg[], size_t, class ECKCDSA_Verification_Operation : public PK_Ops::Verification_with_EMSA { public: - typedef ECKCDSA_PublicKey Key_Type; ECKCDSA_Verification_Operation(const ECKCDSA_PublicKey& eckcdsa, const std::string& emsa) : diff --git a/src/lib/pubkey/elgamal/elgamal.cpp b/src/lib/pubkey/elgamal/elgamal.cpp index f0ae594ec..90534a430 100644 --- a/src/lib/pubkey/elgamal/elgamal.cpp +++ b/src/lib/pubkey/elgamal/elgamal.cpp @@ -69,7 +69,6 @@ namespace { class ElGamal_Encryption_Operation : public PK_Ops::Encryption_with_EME { public: - typedef ElGamal_PublicKey Key_Type; size_t max_raw_input_bits() const override { return m_mod_p.get_modulus().bits() - 1; } @@ -122,7 +121,6 @@ ElGamal_Encryption_Operation::raw_encrypt(const byte msg[], size_t msg_len, class ElGamal_Decryption_Operation : public PK_Ops::Decryption_with_EME { public: - typedef ElGamal_PrivateKey Key_Type; size_t max_raw_input_bits() const override { return m_mod_p.get_modulus().bits() - 1; } diff --git a/src/lib/pubkey/gost_3410/gost_3410.cpp b/src/lib/pubkey/gost_3410/gost_3410.cpp index 7fde29bc5..f483540d4 100644 --- a/src/lib/pubkey/gost_3410/gost_3410.cpp +++ b/src/lib/pubkey/gost_3410/gost_3410.cpp @@ -97,7 +97,6 @@ BigInt decode_le(const byte msg[], size_t msg_len) class GOST_3410_Signature_Operation : public PK_Ops::Signature_with_EMSA { public: - typedef GOST_3410_PrivateKey Key_Type; GOST_3410_Signature_Operation(const GOST_3410_PrivateKey& gost_3410, const std::string& emsa) : PK_Ops::Signature_with_EMSA(emsa), @@ -156,7 +155,6 @@ GOST_3410_Signature_Operation::raw_sign(const byte msg[], size_t msg_len, class GOST_3410_Verification_Operation : public PK_Ops::Verification_with_EMSA { public: - typedef GOST_3410_PublicKey Key_Type; GOST_3410_Verification_Operation(const GOST_3410_PublicKey& gost, const std::string& emsa) : diff --git a/src/lib/pubkey/mce/mceliece_key.cpp b/src/lib/pubkey/mce/mceliece_key.cpp index c65322348..be34cd746 100644 --- a/src/lib/pubkey/mce/mceliece_key.cpp +++ b/src/lib/pubkey/mce/mceliece_key.cpp @@ -299,7 +299,6 @@ namespace { class MCE_KEM_Encryptor : public PK_Ops::KEM_Encryption_with_KDF { public: - typedef McEliece_PublicKey Key_Type; MCE_KEM_Encryptor(const McEliece_PublicKey& key, const std::string& kdf) : @@ -328,7 +327,6 @@ class MCE_KEM_Encryptor : public PK_Ops::KEM_Encryption_with_KDF class MCE_KEM_Decryptor : public PK_Ops::KEM_Decryption_with_KDF { public: - typedef McEliece_PrivateKey Key_Type; MCE_KEM_Decryptor(const McEliece_PrivateKey& key, const std::string& kdf) : diff --git a/src/lib/pubkey/rsa/rsa.cpp b/src/lib/pubkey/rsa/rsa.cpp index f0418cf53..eae95fe02 100644 --- a/src/lib/pubkey/rsa/rsa.cpp +++ b/src/lib/pubkey/rsa/rsa.cpp @@ -239,7 +239,6 @@ class RSA_Signature_Operation : public PK_Ops::Signature_with_EMSA, private RSA_Private_Operation { public: - typedef RSA_PrivateKey Key_Type; size_t max_input_bits() const override { return get_max_input_bits(); }; @@ -264,7 +263,6 @@ class RSA_Decryption_Operation : public PK_Ops::Decryption_with_EME, private RSA_Private_Operation { public: - typedef RSA_PrivateKey Key_Type; size_t max_raw_input_bits() const override { return get_max_input_bits(); }; @@ -288,7 +286,6 @@ class RSA_KEM_Decryption_Operation : public PK_Ops::KEM_Decryption_with_KDF, private RSA_Private_Operation { public: - typedef RSA_PrivateKey Key_Type; RSA_KEM_Decryption_Operation(const RSA_PrivateKey& key, const std::string& kdf, @@ -338,7 +335,6 @@ class RSA_Encryption_Operation : public PK_Ops::Encryption_with_EME, private RSA_Public_Operation { public: - typedef RSA_PublicKey Key_Type; RSA_Encryption_Operation(const RSA_PublicKey& rsa, const std::string& eme) : PK_Ops::Encryption_with_EME(eme), @@ -360,7 +356,6 @@ class RSA_Verify_Operation : public PK_Ops::Verification_with_EMSA, private RSA_Public_Operation { public: - typedef RSA_PublicKey Key_Type; size_t max_input_bits() const override { return get_max_input_bits(); }; @@ -383,7 +378,6 @@ class RSA_KEM_Encryption_Operation : public PK_Ops::KEM_Encryption_with_KDF, private RSA_Public_Operation { public: - typedef RSA_PublicKey Key_Type; RSA_KEM_Encryption_Operation(const RSA_PublicKey& key, const std::string& kdf) : |