Bob Bradley wrote:
On 4/1/05 8:20 AM, "Nils Larsch" <[EMAIL PROTECTED]> wrote:
this of course reduces the key space for the private key, but if you
really need a fixed size public key you need to do it.
Would it reduce security or be unsafe to simply prepend zero bytes after
calling BN_bn2bin to make it fill 128 bytes?
it's ok as ...
I've tried this and it seems to
work: BN_bin2bn on that zero-prepended buffer detects the unnecessary zeros
and returns the 127 byte BIGNUM.
... BN_bin2bn should correctly handle leading zeros in binary input
Nils
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager [EMAIL PROTECTED]