From 39306575081f043d1c79ade43797d3595fd5aeec Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 12 Oct 2010 19:59:26 +0000 Subject: Use size_t instead of u32bit in all of pubkey --- src/pubkey/rw/rw.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/pubkey/rw/rw.h') diff --git a/src/pubkey/rw/rw.h b/src/pubkey/rw/rw.h index 24f4ffab6..b8d92eb3a 100644 --- a/src/pubkey/rw/rw.h +++ b/src/pubkey/rw/rw.h @@ -54,7 +54,7 @@ class BOTAN_DLL RW_PrivateKey : public RW_PublicKey, const BigInt& n = 0) : IF_Scheme_PrivateKey(rng, p, q, e, d, n) {} - RW_PrivateKey(RandomNumberGenerator& rng, u32bit bits, u32bit = 2); + RW_PrivateKey(RandomNumberGenerator& rng, size_t bits, size_t = 2); bool check_key(RandomNumberGenerator& rng, bool) const; }; @@ -67,9 +67,9 @@ class BOTAN_DLL RW_Signature_Operation : public PK_Ops::Signature public: RW_Signature_Operation(const RW_PrivateKey& rw); - u32bit max_input_bits() const { return (n.bits() - 1); } + size_t max_input_bits() const { return (n.bits() - 1); } - SecureVector sign(const byte msg[], u32bit msg_len, + SecureVector sign(const byte msg[], size_t msg_len, RandomNumberGenerator& rng); private: const BigInt& n; @@ -92,10 +92,10 @@ class BOTAN_DLL RW_Verification_Operation : public PK_Ops::Verification n(rw.get_n()), powermod_e_n(rw.get_e(), rw.get_n()) {} - u32bit max_input_bits() const { return (n.bits() - 1); } + size_t max_input_bits() const { return (n.bits() - 1); } bool with_recovery() const { return true; } - SecureVector verify_mr(const byte msg[], u32bit msg_len); + SecureVector verify_mr(const byte msg[], size_t msg_len); private: const BigInt& n; -- cgit v1.2.3