X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=doc%2Fcrypto%2FBN_set_bit.pod;h=b7c47b9b01583e2fd33a4a2e503c6e9f8e1d4cba;hp=75dc5e68e01d3856773290847e37ffafba6aa803;hb=d52c973498901e7cd6453ee1fcd75d7d770b0d3c;hpb=bb075f883356589425b7e57f788c7498a83b0219 diff --git a/doc/crypto/BN_set_bit.pod b/doc/crypto/BN_set_bit.pod index 75dc5e68e0..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,6 +44,8 @@ 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.