aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/rw/rw.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-03-05 16:40:49 +0000
committerlloyd <[email protected]>2010-03-05 16:40:49 +0000
commit8df87a70435cae25e30f7045f7799537857e13d4 (patch)
treeea66d8941cf7c675dcac7e0944139f9b94eb8103 /src/pubkey/rw/rw.h
parentce88e2c6918bb012321e1d7599c2a13b9ba9301e (diff)
Constify sign and verify ops
Diffstat (limited to 'src/pubkey/rw/rw.h')
-rw-r--r--src/pubkey/rw/rw.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pubkey/rw/rw.h b/src/pubkey/rw/rw.h
index 232051862..059ba7d48 100644
--- a/src/pubkey/rw/rw.h
+++ b/src/pubkey/rw/rw.h
@@ -70,7 +70,7 @@ class BOTAN_DLL RW_Signature_Operation : public PK_Ops::Signature
u32bit max_input_bits() const { return (n.bits() - 1); }
SecureVector<byte> sign(const byte msg[], u32bit msg_len,
- RandomNumberGenerator& rng);
+ RandomNumberGenerator& rng) const;
private:
const BigInt& q;
const BigInt& c;
@@ -90,7 +90,7 @@ class BOTAN_DLL RW_Verification_Operation : public PK_Ops::Verification
u32bit 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[], u32bit msg_len) const;
private:
const BigInt& n;