From 1b68d7e53c4bc5e6b2938194b0f7eda78a72ce43 Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 5 Mar 2010 06:47:02 +0000 Subject: Remove the sign() operation from the public key objects, totally replaced by using the ops. Add real ECDSA test vectors (two found in ANSI X9.62) --- src/pubkey/rsa/rsa.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/pubkey/rsa/rsa.cpp') diff --git a/src/pubkey/rsa/rsa.cpp b/src/pubkey/rsa/rsa.cpp index 72a99b4f7..f21459f7b 100644 --- a/src/pubkey/rsa/rsa.cpp +++ b/src/pubkey/rsa/rsa.cpp @@ -95,15 +95,6 @@ SecureVector RSA_PrivateKey::decrypt(const byte in[], u32bit len) const return BigInt::encode(private_op(in, len)); } -/* -* RSA Signature Operation -*/ -SecureVector RSA_PrivateKey::sign(const byte in[], u32bit len, - RandomNumberGenerator&) const - { - return BigInt::encode_1363(private_op(in, len), n.bytes()); - } - /* * Check Private RSA Parameters */ @@ -150,7 +141,7 @@ RSA_Signature_Operation::RSA_Signature_Operation(const RSA_PrivateKey& rsa) : SecureVector RSA_Signature_Operation::sign(const byte msg[], u32bit msg_len, - RandomNumberGenerator& rng) + RandomNumberGenerator&) { const u32bit n_bytes = (n_bits + 7) / 8; -- cgit v1.2.3