aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2017-08-24 01:28:05 +0900
committerKazuki Yamaguchi <k@rhe.jp>2017-08-24 01:28:15 +0900
commit387c3d6eaf91aefcd36b28c45bfdd680fd67ade4 (patch)
tree96521c816ec9560b331ff61d299958e0859ae665
parent9d951a7872e5fa2b2a83fe8cfda3af5c52581172 (diff)
downloadopenssl-ky/bn-print-fix.tar.gz
Fix BN_print()ky/bn-print-fix
Fix a typo made in commit 27c6d63dad08 (#4202).
-rw-r--r--crypto/bn/bn_print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bn/bn_print.c b/crypto/bn/bn_print.c
index 0aaa9d5373..1853269d90 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;