diff options
author | lloyd <[email protected]> | 2008-11-09 17:24:06 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-09 17:24:06 +0000 |
commit | 2dada64d07767d7794d0f325b2df99b090ecc758 (patch) | |
tree | d16396c84f62372784988562a14be1d98662b96d /src/pubkey | |
parent | db172f9347a15d14ea016bab2f1419eba9a9eac9 (diff) |
Macro cleanup
Diffstat (limited to 'src/pubkey')
-rw-r--r-- | src/pubkey/ecdsa/ecdsa_op.cpp | 2 | ||||
-rw-r--r-- | src/pubkey/pk_lookup/pk_algs.cpp | 14 |
2 files changed, 8 insertions, 8 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 diff --git a/src/pubkey/pk_lookup/pk_algs.cpp b/src/pubkey/pk_lookup/pk_algs.cpp index 44a750c83..3d33d8f35 100644 --- a/src/pubkey/pk_lookup/pk_algs.cpp +++ b/src/pubkey/pk_lookup/pk_algs.cpp @@ -5,31 +5,31 @@ #include <botan/pk_algs.h> -#ifdef BOTAN_HAS_RSA +#if defined(BOTAN_HAS_RSA) #include <botan/rsa.h> #endif -#ifdef BOTAN_HAS_DSA +#if defined(BOTAN_HAS_DSA) #include <botan/dsa.h> #endif -#ifdef BOTAN_HAS_DIFFIE_HELLMAN +#if defined(BOTAN_HAS_DIFFIE_HELLMAN) #include <botan/dh.h> #endif -#ifdef BOTAN_HAS_ECDSA +#if defined(BOTAN_HAS_ECDSA) #include <botan/ecdsa.h> #endif -#ifdef BOTAN_HAS_NYBERG_RUEPPEL +#if defined(BOTAN_HAS_NYBERG_RUEPPEL) #include <botan/nr.h> #endif -#ifdef BOTAN_HAS_RW +#if defined(BOTAN_HAS_RW) #include <botan/rw.h> #endif -#ifdef BOTAN_HAS_ELGAMAL +#if defined(BOTAN_HAS_ELGAMAL) #include <botan/elgamal.h> #endif |