BN_bn2bin.pod (68651) | BN_bn2bin.pod (100928) |
---|---|
1=pod 2 3=head1 NAME 4 5BN_bn2bin, BN_bin2bn, BN_bn2hex, BN_bn2dec, BN_hex2bn, BN_dec2bn, 6BN_print, BN_print_fp, BN_bn2mpi, BN_mpi2bn - format conversions 7 8=head1 SYNOPSIS --- 35 unchanged lines hidden (view full) --- 44length in hexadecimal digits. If the string starts with '-', the 45number is negative. BN_dec2bn() is the same using the decimal system. 46 47BN_print() and BN_print_fp() write the hexadecimal encoding of B<a>, 48with a leading '-' for negative numbers, to the B<BIO> or B<FILE> 49B<fp>. 50 51BN_bn2mpi() and BN_mpi2bn() convert B<BIGNUM>s from and to a format | 1=pod 2 3=head1 NAME 4 5BN_bn2bin, BN_bin2bn, BN_bn2hex, BN_bn2dec, BN_hex2bn, BN_dec2bn, 6BN_print, BN_print_fp, BN_bn2mpi, BN_mpi2bn - format conversions 7 8=head1 SYNOPSIS --- 35 unchanged lines hidden (view full) --- 44length in hexadecimal digits. If the string starts with '-', the 45number is negative. BN_dec2bn() is the same using the decimal system. 46 47BN_print() and BN_print_fp() write the hexadecimal encoding of B<a>, 48with a leading '-' for negative numbers, to the B<BIO> or B<FILE> 49B<fp>. 50 51BN_bn2mpi() and BN_mpi2bn() convert B<BIGNUM>s from and to a format |
52that consists of the number's length in bytes represented as a 3-byte | 52that consists of the number's length in bytes represented as a 4-byte |
53big-endian number, and the number itself in big-endian format, where 54the most significant bit signals a negative number (the representation 55of numbers with the MSB set is prefixed with null byte). 56 57BN_bn2mpi() stores the representation of B<a> at B<to>, where B<to> 58must be large enough to hold the result. The size can be determined by 59calling BN_bn2mpi(B<a>, NULL). 60 --- 35 unchanged lines hidden --- | 53big-endian number, and the number itself in big-endian format, where 54the most significant bit signals a negative number (the representation 55of numbers with the MSB set is prefixed with null byte). 56 57BN_bn2mpi() stores the representation of B<a> at B<to>, where B<to> 58must be large enough to hold the result. The size can be determined by 59calling BN_bn2mpi(B<a>, NULL). 60 --- 35 unchanged lines hidden --- |