projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix typo.
[oweals/openssl.git]
/
doc
/
crypto
/
BN_set_bit.pod
diff --git
a/doc/crypto/BN_set_bit.pod
b/doc/crypto/BN_set_bit.pod
index f75d0173ea702541933261ba5f3ae9730cbb31dd..b7c47b9b01583e2fd33a4a2e503c6e9f8e1d4cba 100644
(file)
--- 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,
=head1 NAME
BN_set_bit, BN_clear_bit, BN_is_bit_set, BN_mask_bits, BN_lshift,
-BN_lshift1, BN_rshift, BN_rshift1 -
B
it operations on BIGNUMs
+BN_lshift1, BN_rshift, BN_rshift1 -
b
it operations on BIGNUMs
=head1 SYNOPSIS
=head1 SYNOPSIS
@@
-28,12
+28,12
@@
BN_set_bit() sets bit B<n> in B<a> to 1 (C<a|=(1E<lt>E<lt>n)>). The
number is expanded if necessary.
BN_clear_bit() sets bit B<n> in B<a> to 0 (C<a&=~(1E<lt>E<lt>n)>). An
number is expanded if necessary.
BN_clear_bit() sets bit B<n> in B<a> to 0 (C<a&=~(1E<lt>E<lt>n)>). An
-error occurs i
t
B<a> is shorter than B<n> bits.
+error occurs i
f
B<a> is shorter than B<n> bits.
BN_is_bit_set() tests if bit B<n> in B<a> is set.
BN_mask_bits() truncates B<a> to an B<n> bit number
BN_is_bit_set() tests if bit B<n> in B<a> is set.
BN_mask_bits() truncates B<a> to an B<n> bit number
-(C<
q&=~((~0)E<gt>E<gt>n)>). An error occurs it
B<a> already is
+(C<
a&=~((~0)E<gt>E<gt>n)>). An error occurs if
B<a> already is
shorter than B<n> bits.
BN_lshift() shifts B<a> left by B<n> bits and places the result in
shorter than B<n> bits.
BN_lshift() shifts B<a> left by B<n> bits and places the result in
@@
-44,16
+44,18
@@
BN_rshift() shifts B<a> right by B<n> bits and places the result in
B<r> (C<r=a/2^n>). BN_rshift1() shifts B<a> right by one and places
the result in B<r> (C<r=a/2>).
B<r> (C<r=a/2^n>). BN_rshift1() shifts B<a> right by one and places
the result in B<r> (C<r=a/2>).
+For the shift functions, B<r> and B<a> 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
=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<ERR_get_error(3)|ERR_get_error(3)>
.
=head1 SEE ALSO
=head1 SEE ALSO
-bn(3), BN_num_bytes(3), BN_add(3)
+L<bn(3)|bn(3)>, L<BN_num_bytes(3)|BN_num_bytes(3)>, L<BN_add(3)|BN_add(3)>
=head1 HISTORY
=head1 HISTORY