cosmetics

This commit is contained in:
Andreas Steffen 2007-10-12 19:20:59 +00:00
parent 26c49478f3
commit 466c5439e5
1 changed files with 2 additions and 1 deletions

View File

@ -759,9 +759,10 @@ chunk_t asn1_integer_from_mpz(const mpz_t value)
{
size_t bits = mpz_sizeinbase(value, 2); /* size in bits */
chunk_t n;
n.len = 1 + bits / 8; /* size in bytes */
n.ptr = mpz_export(NULL, NULL, 1, n.len, 1, 0, value);
return asn1_wrap(ASN1_INTEGER, "m", n);
}