aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/gost_3410/gost_3410.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pubkey/gost_3410/gost_3410.h')
-rw-r--r--src/pubkey/gost_3410/gost_3410.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/pubkey/gost_3410/gost_3410.h b/src/pubkey/gost_3410/gost_3410.h
index 9d6a15386..4fb7b42c3 100644
--- a/src/pubkey/gost_3410/gost_3410.h
+++ b/src/pubkey/gost_3410/gost_3410.h
@@ -53,11 +53,11 @@ class BOTAN_DLL GOST_3410_PublicKey : public virtual EC_PublicKey
* @result the maximum number of input bits
*/
- u32bit max_input_bits() const { return domain().get_order().bits(); }
+ size_t max_input_bits() const { return domain().get_order().bits(); }
- u32bit message_parts() const { return 2; }
+ size_t message_parts() const { return 2; }
- u32bit message_part_size() const
+ size_t message_part_size() const
{ return domain().get_order().bytes(); }
protected:
@@ -105,11 +105,11 @@ class BOTAN_DLL GOST_3410_Signature_Operation : public PK_Ops::Signature
public:
GOST_3410_Signature_Operation(const GOST_3410_PrivateKey& gost_3410);
- u32bit message_parts() const { return 2; }
- u32bit message_part_size() const { return order.bytes(); }
- u32bit max_input_bits() const { return order.bits(); }
+ size_t message_parts() const { return 2; }
+ size_t message_part_size() const { return order.bytes(); }
+ size_t max_input_bits() const { return order.bits(); }
- SecureVector<byte> sign(const byte msg[], u32bit msg_len,
+ SecureVector<byte> sign(const byte msg[], size_t msg_len,
RandomNumberGenerator& rng);
private:
@@ -126,14 +126,14 @@ class BOTAN_DLL GOST_3410_Verification_Operation : public PK_Ops::Verification
public:
GOST_3410_Verification_Operation(const GOST_3410_PublicKey& gost);
- u32bit message_parts() const { return 2; }
- u32bit message_part_size() const { return order.bytes(); }
- u32bit max_input_bits() const { return order.bits(); }
+ size_t message_parts() const { return 2; }
+ size_t message_part_size() const { return order.bytes(); }
+ size_t max_input_bits() const { return order.bits(); }
bool with_recovery() const { return false; }
- bool verify(const byte msg[], u32bit msg_len,
- const byte sig[], u32bit sig_len);
+ bool verify(const byte msg[], size_t msg_len,
+ const byte sig[], size_t sig_len);
private:
const PointGFp& base_point;
const PointGFp& public_point;