summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn/bn_print.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bn/bn_print.c')
-rw-r--r--src/lib/libcrypto/bn/bn_print.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bn/bn_print.c b/src/lib/libcrypto/bn/bn_print.c
index de67c03c14..d849b860f9 100644
--- a/src/lib/libcrypto/bn/bn_print.c
+++ b/src/lib/libcrypto/bn/bn_print.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_print.c,v 1.31 2017/01/29 17:49:22 beck Exp $ */ 1/* $OpenBSD: bn_print.c,v 1.32 2021/08/31 11:19:19 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -216,7 +216,7 @@ BN_hex2bn(BIGNUM **bn, const char *a)
216 if ((ret = BN_new()) == NULL) 216 if ((ret = BN_new()) == NULL)
217 return (0); 217 return (0);
218 } else { 218 } else {
219 ret= *bn; 219 ret = *bn;
220 BN_zero(ret); 220 BN_zero(ret);
221 } 221 }
222 222
@@ -228,7 +228,7 @@ BN_hex2bn(BIGNUM **bn, const char *a)
228 m = 0; 228 m = 0;
229 h = 0; 229 h = 0;
230 while (j > 0) { 230 while (j > 0) {
231 m = ((BN_BYTES*2) <= j) ? (BN_BYTES * 2) : j; 231 m = ((BN_BYTES * 2) <= j) ? (BN_BYTES * 2) : j;
232 l = 0; 232 l = 0;
233 for (;;) { 233 for (;;) {
234 c = a[j - m]; 234 c = a[j - m];