diff options
-rw-r--r-- | src/engine/def_engine/def_pk_ops.cpp | 6 | ||||
-rw-r--r-- | src/pubkey/gost_3410/gost_3410.cpp | 4 | ||||
-rw-r--r-- | src/pubkey/gost_3410/gost_3410.h | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/engine/def_engine/def_pk_ops.cpp b/src/engine/def_engine/def_pk_ops.cpp index d3264e67e..878d7d35c 100644 --- a/src/engine/def_engine/def_pk_ops.cpp +++ b/src/engine/def_engine/def_pk_ops.cpp @@ -27,7 +27,7 @@ #include <botan/elgamal.h> #endif -#if defined(BOTAN_HAS_GOST_3410_2001) +#if defined(BOTAN_HAS_GOST_34_10_2001) #include <botan/gost_3410.h> #endif @@ -116,7 +116,7 @@ Default_Engine::get_signature_op(const Private_Key& key) const return new ECDSA_Signature_Operation(*s); #endif -#if defined(BOTAN_HAS_GOST_3410_2001) +#if defined(BOTAN_HAS_GOST_34_10_2001) if(const GOST_3410_PrivateKey* s = dynamic_cast<const GOST_3410_PrivateKey*>(&key)) return new GOST_3410_Signature_Operation(*s); @@ -153,7 +153,7 @@ Default_Engine::get_verify_op(const Public_Key& key) const return new ECDSA_Verification_Operation(*s); #endif -#if defined(BOTAN_HAS_GOST_3410_2001) +#if defined(BOTAN_HAS_GOST_34_10_2001) if(const GOST_3410_PublicKey* s = dynamic_cast<const GOST_3410_PublicKey*>(&key)) return new GOST_3410_Verification_Operation(*s); diff --git a/src/pubkey/gost_3410/gost_3410.cpp b/src/pubkey/gost_3410/gost_3410.cpp index c5cc1ddbd..0ba55cdd9 100644 --- a/src/pubkey/gost_3410/gost_3410.cpp +++ b/src/pubkey/gost_3410/gost_3410.cpp @@ -79,7 +79,7 @@ GOST_3410_Signature_Operation::GOST_3410_Signature_Operation( SecureVector<byte> GOST_3410_Signature_Operation::sign(const byte msg[], u32bit msg_len, - RandomNumberGenerator& rng) const + RandomNumberGenerator& rng) { BigInt k; do @@ -117,7 +117,7 @@ GOST_3410_Verification_Operation::GOST_3410_Verification_Operation(const GOST_34 } bool GOST_3410_Verification_Operation::verify(const byte msg[], u32bit msg_len, - const byte sig[], u32bit sig_len) const + const byte sig[], u32bit sig_len) { if(sig_len != order.bytes()*2) return false; diff --git a/src/pubkey/gost_3410/gost_3410.h b/src/pubkey/gost_3410/gost_3410.h index ffdbc6e19..36fa2912d 100644 --- a/src/pubkey/gost_3410/gost_3410.h +++ b/src/pubkey/gost_3410/gost_3410.h @@ -106,7 +106,7 @@ class BOTAN_DLL GOST_3410_Signature_Operation : public PK_Ops::Signature u32bit max_input_bits() const { return order.bits(); } SecureVector<byte> sign(const byte msg[], u32bit msg_len, - RandomNumberGenerator& rng) const; + RandomNumberGenerator& rng); private: const PointGFp& base_point; @@ -126,7 +126,7 @@ class BOTAN_DLL GOST_3410_Verification_Operation : public PK_Ops::Verification bool with_recovery() const { return false; } bool verify(const byte msg[], u32bit msg_len, - const byte sig[], u32bit sig_len) const; + const byte sig[], u32bit sig_len); private: const PointGFp& base_point; const PointGFp& public_point; |