X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=lib%2Fsilcmath%2Fmpbin.c;h=29d80f7711e71e007b2ddb8d20dde27fd766cd9d;hp=8074f2bc706429416fd087563a8ac187bdfb0d35;hb=a818c5b5411bbc4436d1c5f011236985c96bb787;hpb=7910ce2a5c55211a4ea09a52832c6ed32c0b64fd diff --git a/lib/silcmath/mpbin.c b/lib/silcmath/mpbin.c index 8074f2bc..29d80f77 100644 --- a/lib/silcmath/mpbin.c +++ b/lib/silcmath/mpbin.c @@ -25,11 +25,11 @@ must be free'd by the caller. If `len' is provided the destination buffer is allocated that large. If zero then the size is approximated. */ -unsigned char *silc_mp_mp2bin(SilcMPInt *val, uint32 len, - uint32 *ret_len) +unsigned char *silc_mp_mp2bin(SilcMPInt *val, SilcUInt32 len, + SilcUInt32 *ret_len) { int i; - uint32 size; + SilcUInt32 size; unsigned char *ret; SilcMPInt tmp; @@ -56,10 +56,10 @@ unsigned char *silc_mp_mp2bin(SilcMPInt *val, uint32 len, returned into `dst' and it's length to the `ret_len'. */ void silc_mp_mp2bin_noalloc(SilcMPInt *val, unsigned char *dst, - uint32 dst_len) + SilcUInt32 dst_len) { int i; - uint32 size = dst_len; + SilcUInt32 size = dst_len; SilcMPInt tmp; silc_mp_init(&tmp); @@ -76,7 +76,7 @@ void silc_mp_mp2bin_noalloc(SilcMPInt *val, unsigned char *dst, /* Decodes binary data into MP integer. The integer sent as argument must be initialized. */ -void silc_mp_bin2mp(unsigned char *data, uint32 len, SilcMPInt *ret) +void silc_mp_bin2mp(unsigned char *data, SilcUInt32 len, SilcMPInt *ret) { int i;