aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2007-09-12 09:19:59 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2007-09-12 09:19:59 +0000
commitb5816842f98219be063297cd7bec10c5c1c854df (patch)
tree7c11bfb97e0190f4f41f3dca512068405d01f346 /src
parentba02f63eb1834a2929681e49a9eb597fda0058f8 (diff)
downloadstrongswan-b5816842f98219be063297cd7bec10c5c1c854df.tar.bz2
strongswan-b5816842f98219be063297cd7bec10c5c1c854df.tar.xz
replaced 8 by BITS_PER_BYTE
Diffstat (limited to 'src')
-rw-r--r--src/libstrongswan/crypto/rsa/rsa_private_key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/crypto/rsa/rsa_private_key.c b/src/libstrongswan/crypto/rsa/rsa_private_key.c
index 23aa51c83..a70518129 100644
--- a/src/libstrongswan/crypto/rsa/rsa_private_key.c
+++ b/src/libstrongswan/crypto/rsa/rsa_private_key.c
@@ -670,7 +670,7 @@ rsa_private_key_t *rsa_private_key_create_from_chunk(chunk_t blob)
objectID++;
}
- this->k = (mpz_sizeinbase(this->n, 2) + 7) / 8;
+ this->k = (mpz_sizeinbase(this->n, 2) + 7) / BITS_PER_BYTE;
/* form the keyid as a SHA-1 hash of a publicKeyInfo object */
{