Hello, I am new to openssl and I have tried to use the bignumber library like below,
------------------ unsigned char* hex = "000000000000000000000000000000"; BIGNUM* bn; unsigned char* bytes; int i; bn = BN_new(); BN_hex2bn(&bn, hex); bytes = (unsigned char*) malloc(16); BN_bn2bin(bn, bytes); for(i=0; i<16; i++) printf("%02x", bytes[i]); ----------------- I believe I have found a bug because the above should print 32 '0' characters but it doesn't. I also found that the code above works for other hexadecimal strings and it's only for the above case that it fails. Thanks. ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager [EMAIL PROTECTED]