Skip to content

Commit db349d3

Browse files
committed
removed deprecation for mp_radix_size
1 parent f817319 commit db349d3

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

tommath.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ EXPORTS
9999
mp_prime_rand
100100
mp_prime_strong_lucas_selfridge
101101
mp_radix_size
102+
mp_radix_sizeinbase
102103
mp_rand
103104
mp_read_radix
104105
mp_read_signed_bin

tommath.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ MP_DEPRECATED(mp_to_radix) mp_err mp_toradix_n(const mp_int *a, char *str, int r
704704
mp_err mp_to_radix(const mp_int *a, char *str, size_t maxlen, int radix) MP_WUR;
705705

706706
/* exact but slow O(n^2)*/
707-
MP_DEPRECATED(mp_radix_sizeinbase) mp_err mp_radix_size(const mp_int *a, int radix, int *size) MP_WUR;
707+
mp_err mp_radix_size(const mp_int *a, int radix, int *size) MP_WUR;
708708
/* can overshoot by one or two characters but is O(1) (table based with a very small overhead) */
709709
mp_err mp_radix_sizeinbase(const mp_int *a, const int base, int *size) MP_WUR;
710710
#ifndef MP_NO_FILE

tommath_class.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@
435435
#endif
436436

437437
#if defined(BN_MP_FWRITE_C)
438-
# define BN_MP_RADIX_SIZE_C
438+
# define BN_MP_RADIX_SIZEINBASE_C
439439
# define BN_MP_TO_RADIX_C
440440
#endif
441441

@@ -817,7 +817,9 @@
817817
#if defined(BN_MP_RADIX_SIZE_C)
818818
# define BN_MP_CLEAR_C
819819
# define BN_MP_COUNT_BITS_C
820+
# define BN_MP_GET_L_C
820821
# define BN_MP_ILOGB_C
822+
# define BN_MP_INIT_C
821823
#endif
822824

823825
#if defined(BN_MP_RADIX_SIZEINBASE_C)

0 commit comments

Comments
 (0)