]>
Commit | Line | Data |
---|---|---|
dd8dec69 UM |
1 | =pod |
2 | ||
3 | =head1 NAME | |
4 | ||
4d524e10 | 5 | BN_num_bits, BN_num_bytes, BN_num_bits_word - get BIGNUM size |
dd8dec69 UM |
6 | |
7 | =head1 SYNOPSIS | |
8 | ||
9 | #include <openssl/bn.h> | |
10 | ||
11 | int BN_num_bytes(const BIGNUM *a); | |
12 | ||
13 | int BN_num_bits(const BIGNUM *a); | |
14 | ||
15 | int BN_num_bits_word(BN_ULONG w); | |
16 | ||
17 | =head1 DESCRIPTION | |
18 | ||
19 | These functions return the size of a B<BIGNUM> in bytes or bits, | |
20 | and the size of an unsigned integer in bits. | |
21 | ||
22 | BN_num_bytes() is a macro. | |
23 | ||
24 | =head1 RETURN VALUES | |
25 | ||
26 | The size. | |
27 | ||
28 | =head1 SEE ALSO | |
29 | ||
bb075f88 | 30 | L<bn(3)|bn(3)> |
dd8dec69 UM |
31 | |
32 | =head1 HISTORY | |
33 | ||
34 | BN_num_bytes(), BN_num_bits() and BN_num_bits_word() are available in | |
35 | all versions of SSLeay and OpenSSL. | |
36 | ||
37 | =cut |