summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorjsing <>2023-04-19 11:14:04 +0000
committerjsing <>2023-04-19 11:14:04 +0000
commite541ad1d74cfb27fd027747e3204b4800491ad44 (patch)
tree680b6f09939abd58c91e6440435f9eb67d2e1722 /src/lib
parent5a95f15643e5a185fdbb26cc7ba82e4d4cd81a2c (diff)
downloadopenbsd-e541ad1d74cfb27fd027747e3204b4800491ad44.tar.gz
openbsd-e541ad1d74cfb27fd027747e3204b4800491ad44.tar.bz2
openbsd-e541ad1d74cfb27fd027747e3204b4800491ad44.zip
Rename Hex array to hex_digits.
ok tb@
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/bn/bn_convert.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/bn/bn_convert.c b/src/lib/libcrypto/bn/bn_convert.c
index 5df79fded6..bfb5a566a6 100644
--- a/src/lib/libcrypto/bn/bn_convert.c
+++ b/src/lib/libcrypto/bn/bn_convert.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_convert.c,v 1.5 2023/04/19 11:12:43 jsing Exp $ */ 1/* $OpenBSD: bn_convert.c,v 1.6 2023/04/19 11:14:04 jsing 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 *
@@ -69,7 +69,7 @@
69 69
70#include "bn_local.h" 70#include "bn_local.h"
71 71
72static const char Hex[]="0123456789ABCDEF"; 72static const char hex_digits[] = "0123456789ABCDEF";
73 73
74typedef enum { 74typedef enum {
75 big, 75 big,
@@ -443,8 +443,8 @@ BN_bn2hex(const BIGNUM *a)
443 /* strip leading zeros */ 443 /* strip leading zeros */
444 v = ((int)(a->d[i] >> (long)j)) & 0xff; 444 v = ((int)(a->d[i] >> (long)j)) & 0xff;
445 if (z || (v != 0)) { 445 if (z || (v != 0)) {
446 *p++ = Hex[v >> 4]; 446 *p++ = hex_digits[v >> 4];
447 *p++ = Hex[v & 0x0f]; 447 *p++ = hex_digits[v & 0x0f];
448 z = 1; 448 z = 1;
449 } 449 }
450 } 450 }
@@ -634,7 +634,7 @@ BN_print(BIO *bp, const BIGNUM *a)
634 /* strip leading zeros */ 634 /* strip leading zeros */
635 v = ((int)(a->d[i] >> (long)j)) & 0x0f; 635 v = ((int)(a->d[i] >> (long)j)) & 0x0f;
636 if (z || (v != 0)) { 636 if (z || (v != 0)) {
637 if (BIO_write(bp, &(Hex[v]), 1) != 1) 637 if (BIO_write(bp, &hex_digits[v], 1) != 1)
638 goto end; 638 goto end;
639 z = 1; 639 z = 1;
640 } 640 }