Skip to content
Snippets Groups Projects
Commit 5725c1bf authored by Niels Möller's avatar Niels Möller
Browse files

(nettle_mpz_get_str_256): Declare the input argument

const.

Rev: src/nettle/bignum.c:1.3
Rev: src/nettle/bignum.h:1.2
parent 4774d9d9
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#include <string.h> #include <string.h>
void void
nettle_mpz_get_str_256(unsigned length, uint8_t *s, mpz_t x) nettle_mpz_get_str_256(unsigned length, uint8_t *s, const mpz_t x)
{ {
uint8_t *dst = s + length - 1; uint8_t *dst = s + length - 1;
unsigned size = mpz_size(x); unsigned size = mpz_size(x);
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
/* Writes an unsigned integer as length octets, using big endian byte /* Writes an unsigned integer as length octets, using big endian byte
* order. */ * order. */
void void
nettle_mpz_get_str_256(unsigned length, uint8_t *s, mpz_t x); nettle_mpz_get_str_256(unsigned length, uint8_t *s, const mpz_t x);
void void
nettle_mpz_set_str_256(mpz_t x, nettle_mpz_set_str_256(mpz_t x,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment