diff options
author | lloyd <[email protected]> | 2010-10-12 19:59:26 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-10-12 19:59:26 +0000 |
commit | 39306575081f043d1c79ade43797d3595fd5aeec (patch) | |
tree | 926b8833f6cbde9f929b2b6156fd27b5d69f5266 /src/pubkey/rw/rw.h | |
parent | a85f136550c08fc878e3983866af0e6460e980da (diff) |
Use size_t instead of u32bit in all of pubkey
Diffstat (limited to 'src/pubkey/rw/rw.h')
-rw-r--r-- | src/pubkey/rw/rw.h | 10 |
1 files changed, 5 insertions, 5 deletions
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<byte> sign(const byte msg[], u32bit msg_len, + SecureVector<byte> 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<byte> verify_mr(const byte msg[], u32bit msg_len); + SecureVector<byte> verify_mr(const byte msg[], size_t msg_len); private: const BigInt& n; |