Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nettle
nettle
Commits
5725c1bf
Commit
5725c1bf
authored
Jan 09, 2002
by
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
bignum.c
View file @
5725c1bf
...
...
@@ -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
);
...
...
bignum.h
View file @
5725c1bf
...
...
@@ -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
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment