X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=doc%2Fcrypto%2FBN_set_bit.pod;h=b7c47b9b01583e2fd33a4a2e503c6e9f8e1d4cba;hb=bace21247493eb38870d2585f0e643bdc550f60a;hp=f75d0173ea702541933261ba5f3ae9730cbb31dd;hpb=dd8dec69b825c9fdafc26a200961702d850496b5;p=oweals%2Fopenssl.git diff --git a/doc/crypto/BN_set_bit.pod b/doc/crypto/BN_set_bit.pod index f75d0173ea..b7c47b9b01 100644 --- a/doc/crypto/BN_set_bit.pod +++ b/doc/crypto/BN_set_bit.pod @@ -3,7 +3,7 @@ =head1 NAME BN_set_bit, BN_clear_bit, BN_is_bit_set, BN_mask_bits, BN_lshift, -BN_lshift1, BN_rshift, BN_rshift1 - Bit operations on BIGNUMs +BN_lshift1, BN_rshift, BN_rshift1 - bit operations on BIGNUMs =head1 SYNOPSIS @@ -28,12 +28,12 @@ BN_set_bit() sets bit B in B to 1 (CEn)>). The number is expanded if necessary. BN_clear_bit() sets bit B in B to 0 (CEn)>). An -error occurs it B is shorter than B bits. +error occurs if B is shorter than B bits. BN_is_bit_set() tests if bit B in B is set. BN_mask_bits() truncates B to an B bit number -(CEn)>). An error occurs it B already is +(CEn)>). An error occurs if B already is shorter than B bits. BN_lshift() shifts B left by B bits and places the result in @@ -44,16 +44,18 @@ BN_rshift() shifts B right by B bits and places the result in B (C). BN_rshift1() shifts B right by one and places the result in B (C). +For the shift functions, B and B may be the same variable. + =head1 RETURN VALUES BN_is_bit_set() returns 1 if the bit is set, 0 otherwise. All other functions return 1 for success, 0 on error. The error codes -can be obtained by ERR_get_error(3). +can be obtained by L. =head1 SEE ALSO -bn(3), BN_num_bytes(3), BN_add(3) +L, L, L =head1 HISTORY