replaced 8 by BITS_PER_BYTE
authorAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 12 Sep 2007 09:19:59 +0000 (09:19 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 12 Sep 2007 09:19:59 +0000 (09:19 -0000)
src/libstrongswan/crypto/rsa/rsa_private_key.c

index 23aa51c..a705181 100644 (file)
@@ -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 */
        {