aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/ecdsa/ecdsa_op.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-09 17:24:06 +0000
committerlloyd <[email protected]>2008-11-09 17:24:06 +0000
commit2dada64d07767d7794d0f325b2df99b090ecc758 (patch)
treed16396c84f62372784988562a14be1d98662b96d /src/pubkey/ecdsa/ecdsa_op.cpp
parentdb172f9347a15d14ea016bab2f1419eba9a9eac9 (diff)
Macro cleanup
Diffstat (limited to 'src/pubkey/ecdsa/ecdsa_op.cpp')
-rw-r--r--src/pubkey/ecdsa/ecdsa_op.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pubkey/ecdsa/ecdsa_op.cpp b/src/pubkey/ecdsa/ecdsa_op.cpp
index 2dc946d4d..a7db3f237 100644
--- a/src/pubkey/ecdsa/ecdsa_op.cpp
+++ b/src/pubkey/ecdsa/ecdsa_op.cpp
@@ -79,7 +79,7 @@ SecureVector<byte> Default_ECDSA_Op::sign(const byte message[],
// s = a - b mod n
// where x is a random integer
-#ifdef CMS_RAND
+#if defined(CMS_RAND)
BigInt x = BigInt::random_integer(0, n);
BigInt s = m_priv_key + x; // obscure the secret from the beginning
// all following operations thus are randomized