diff options
Diffstat (limited to 'src/lib/prov/pkcs11/p11_rsa.cpp')
-rw-r--r-- | src/lib/prov/pkcs11/p11_rsa.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/lib/prov/pkcs11/p11_rsa.cpp b/src/lib/prov/pkcs11/p11_rsa.cpp index 1e5f3341f..0312f76bf 100644 --- a/src/lib/prov/pkcs11/p11_rsa.cpp +++ b/src/lib/prov/pkcs11/p11_rsa.cpp @@ -128,11 +128,6 @@ class PKCS11_RSA_Decryption_Operation final : public PK_Ops::Decryption m_bits = m_key.get_n().bits() - 1; } - size_t max_input_bits() const override - { - return m_bits; - } - secure_vector<byte> decrypt(byte& valid_mask, const byte ciphertext[], size_t ciphertext_len) override { valid_mask = 0; @@ -208,11 +203,6 @@ class PKCS11_RSA_Signature_Operation : public PK_Ops::Signature : m_key(key), m_mechanism(MechanismWrapper::create_rsa_sign_mechanism(padding)) {} - size_t message_part_size() const override - { - return m_key.get_n().bytes(); - } - void update(const byte msg[], size_t msg_len) override { if(!m_initialized) @@ -268,16 +258,6 @@ class PKCS11_RSA_Verification_Operation : public PK_Ops::Verification : m_key(key), m_mechanism(MechanismWrapper::create_rsa_sign_mechanism(padding)) {} - size_t message_part_size() const override - { - return m_key.get_n().bytes(); - } - - size_t max_input_bits() const override - { - return m_key.get_n().bits() - 1; - } - void update(const byte msg[], size_t msg_len) override { if(!m_initialized) |