summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn/bn_convert.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bn/bn_convert.c')
-rw-r--r--src/lib/libcrypto/bn/bn_convert.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bn/bn_convert.c b/src/lib/libcrypto/bn/bn_convert.c
index ca5c7d7865..ab5bc519c8 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.24 2025/05/10 05:54:38 tb Exp $ */ 1/* $OpenBSD: bn_convert.c,v 1.25 2025/12/05 14:12:32 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 *
@@ -71,6 +71,14 @@
71#include "crypto_internal.h" 71#include "crypto_internal.h"
72#include "err_local.h" 72#include "err_local.h"
73 73
74#if BN_BYTES == 8
75#define BN_DEC_CONV UINT64_C(10000000000000000000)
76#define BN_DEC_NUM 19
77#else
78#define BN_DEC_CONV UINT32_C(1000000000)
79#define BN_DEC_NUM 9
80#endif
81
74static int bn_dec2bn_cbs(BIGNUM **bnp, CBS *cbs); 82static int bn_dec2bn_cbs(BIGNUM **bnp, CBS *cbs);
75static int bn_hex2bn_cbs(BIGNUM **bnp, CBS *cbs); 83static int bn_hex2bn_cbs(BIGNUM **bnp, CBS *cbs);
76 84