The branch master has been updated
via c9b820aa3c447df991c9146f07ca1f6faafe0437 (commit)
from 9d951a7872e5fa2b2a83fe8cfda3af5c52581172 (commit)
- Log -----------------------------------------------------------------
commit c9b820aa3c447df991c9146f07ca1f6faafe0437
Author: Kazuki Yamaguchi <[email protected]>
Date: Thu Aug 24 01:28:05 2017 +0900
Fix BN_print()
Fix a typo made in commit 27c6d63dad08 (#4202).
Reviewed-by: Rich Salz <[email protected]>
Reviewed-by: Richard Levitte <[email protected]>
(Merged from https://github.com/openssl/openssl/pull/4235)
-----------------------------------------------------------------------
Summary of changes:
crypto/bn/bn_print.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/bn/bn_print.c b/crypto/bn/bn_print.c
index 0aaa9d5..1853269 100644
--- a/crypto/bn/bn_print.c
+++ b/crypto/bn/bn_print.c
@@ -313,7 +313,7 @@ int BN_print(BIO *bp, const BIGNUM *a)
for (i = a->top - 1; i >= 0; i--) {
for (j = BN_BITS2 - 4; j >= 0; j -= 4) {
/* strip leading zeros */
- v = (int)((a->d[i] >> j) & 0xff);
+ v = (int)((a->d[i] >> j) & 0x0f);
if (z || v != 0) {
if (BIO_write(bp, &Hex[v], 1) != 1)
goto end;
_____
openssl-commits mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits