aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/nr/nr.cpp
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/nr/nr.cpp
parentce88e2c6918bb012321e1d7599c2a13b9ba9301e (diff)
Constify sign and verify ops
Diffstat (limited to 'src/pubkey/nr/nr.cpp')
-rw-r--r--src/pubkey/nr/nr.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pubkey/nr/nr.cpp b/src/pubkey/nr/nr.cpp
index 540cfa281..1fc8630d7 100644
--- a/src/pubkey/nr/nr.cpp
+++ b/src/pubkey/nr/nr.cpp
@@ -92,9 +92,9 @@ NR_Signature_Operation::NR_Signature_Operation(const NR_PrivateKey& nr) :
{
}
-SecureVector<byte> NR_Signature_Operation::sign(const byte msg[],
- u32bit msg_len,
- RandomNumberGenerator& rng)
+SecureVector<byte>
+NR_Signature_Operation::sign(const byte msg[], u32bit msg_len,
+ RandomNumberGenerator& rng) const
{
rng.add_entropy(msg, msg_len);
@@ -129,7 +129,7 @@ NR_Verification_Operation::NR_Verification_Operation(const NR_PublicKey& nr) :
}
SecureVector<byte>
-NR_Verification_Operation::verify_mr(const byte msg[], u32bit msg_len)
+NR_Verification_Operation::verify_mr(const byte msg[], u32bit msg_len) const
{
const BigInt& q = mod_q.get_modulus();