Skip to content

Commit 6f4952a

Browse files
committed
fix signature
1 parent 997ad5e commit 6f4952a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bn_mp_invmod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/* SPDX-License-Identifier: Unlicense */
55

66
/* hac 14.61, pp608 */
7-
int mp_invmod(const mp_int *a, const mp_int *b, mp_int *c)
7+
mp_err mp_invmod(const mp_int *a, const mp_int *b, mp_int *c)
88
{
99
/* b cannot be negative and has to be >1 */
1010
if ((b->sign == MP_NEG) || (mp_cmp_d(b, 1uL) != MP_GT)) {

tommath_private.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ mp_err s_mp_rand_platform(void *p, size_t n) MP_WUR;
134134
void s_mp_reverse(unsigned char *s, int len);
135135

136136
/* TODO: jenkins prng is not thread safe as of now */
137-
MP_WUR int s_mp_rand_jenkins(void *p, size_t n);
137+
MP_WUR mp_err s_mp_rand_jenkins(void *p, size_t n);
138138
void s_mp_rand_jenkins_init(uint64_t);
139139

140140
extern const char *const mp_s_rmap;
@@ -148,7 +148,7 @@ extern const size_t mp_s_rmap_reverse_sz;
148148
* b is the original value that should be set in the MPI.
149149
*/
150150
#define MP_SET_XLONG(func_name, type) \
151-
int func_name (mp_int * a, type b) \
151+
mp_err func_name (mp_int * a, type b) \
152152
{ \
153153
int x = 0; \
154154
mp_zero(a); \

0 commit comments

Comments
 (0)