Commit 5725c1bf authored by Niels Möller's avatar Niels Möller

(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
......@@ -35,7 +35,7 @@
#include <string.h>
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;
unsigned size = mpz_size(x);
......
......@@ -32,7 +32,7 @@
/* Writes an unsigned integer as length octets, using big endian byte
* order. */
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
nettle_mpz_set_str_256(mpz_t x,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment