From b6ef3c7089e887427cde8c550e28211dc0c22dd1 Mon Sep 17 00:00:00 2001 From: "T.Yanagisawa" <52776010+mogisawa@users.noreply.github.com> Date: Thu, 27 Aug 2020 11:11:23 +0900 Subject: [PATCH] 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) --- doc/man3/BN_set_bit.pod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/man3/BN_set_bit.pod b/doc/man3/BN_set_bit.pod index c2bed68d91e..349ef9e0562 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 -- 2.47.3