]> git.ipfire.org Git - thirdparty/openssl.git/blame - doc/crypto/BN_num_bytes.pod
Minor (+12% on P4) performance tweak for sha512_block_sse2.
[thirdparty/openssl.git] / doc / crypto / BN_num_bytes.pod
CommitLineData
dd8dec69
UM
1=pod
2
3=head1 NAME
4
4d524e10 5BN_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
19These functions return the size of a B<BIGNUM> in bytes or bits,
20and the size of an unsigned integer in bits.
21
22BN_num_bytes() is a macro.
23
24=head1 RETURN VALUES
25
26The size.
27
28=head1 SEE ALSO
29
bb075f88 30L<bn(3)|bn(3)>
dd8dec69
UM
31
32=head1 HISTORY
33
34BN_num_bytes(), BN_num_bits() and BN_num_bits_word() are available in
35all versions of SSLeay and OpenSSL.
36
37=cut