From: T.Yanagisawa <52776010+mogisawa@users.noreply.github.com> Date: Thu, 27 Aug 2020 02:11:23 +0000 (+0900) Subject: Correct description of BN_mask_bits X-Git-Tag: OpenSSL_1_1_1i~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e933b35492a4dc3370b9f49890646dadca82cd8;p=thirdparty%2Fopenssl.git 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 Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/12727) (cherry picked from commit b6ef3c7089e887427cde8c550e28211dc0c22dd1) --- diff --git a/doc/man3/BN_set_bit.pod b/doc/man3/BN_set_bit.pod index 67c2bac2410..6e0a11a24b8 100644 --- a/doc/man3/BN_set_bit.pod +++ b/doc/man3/BN_set_bit.pod @@ -33,7 +33,7 @@ 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 if 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