summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorT.Yanagisawa <52776010+mogisawa@users.noreply.github.com>2020-08-27 04:11:23 +0200
committerPauli <paul.dale@oracle.com>2020-08-28 11:25:08 +0200
commitb6ef3c7089e887427cde8c550e28211dc0c22dd1 (patch)
tree25b3420a671cbd39288851b0a5584bf0c6898cfa /doc
parentconf: add diagnostic option (diff)
downloadopenssl-b6ef3c7089e887427cde8c550e28211dc0c22dd1.tar.xz
openssl-b6ef3c7089e887427cde8c550e28211dc0c22dd1.zip
Correct description of BN_mask_bits
CLA: trivial Correct right shift to left shift. Pseudo code `a&=~((~0)>>n)` means "get higher n-bits of a", but actually crypto lib gives lower n-bits. Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/12727)
Diffstat (limited to 'doc')
-rw-r--r--doc/man3/BN_set_bit.pod2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/man3/BN_set_bit.pod b/doc/man3/BN_set_bit.pod
index c2bed68d91..349ef9e056 100644
--- a/doc/man3/BN_set_bit.pod
+++ b/doc/man3/BN_set_bit.pod
@@ -33,7 +33,7 @@ error occurs if 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
-(C<a&=~((~0)E<gt>E<gt>n)>). An error occurs if B<a> already is
+(C<a&=~((~0)E<lt>E<lt>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