Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Wim Lewis
nettle
Commits
c15a79d4
Commit
c15a79d4
authored
Apr 26, 2013
by
Niels Möller
Browse files
Use size_t for _nettle_write functions.
parent
a7826587
Changes
4
Hide whitespace changes
Inline
Side-by-side
nettle-write.h
View file @
c15a79d4
...
...
@@ -34,14 +34,14 @@
/* FIXME: Use a macro shortcut to memcpy for native endianness. */
void
_nettle_write_be32
(
unsigned
length
,
uint8_t
*
dst
,
_nettle_write_be32
(
size_t
length
,
uint8_t
*
dst
,
uint32_t
*
src
);
void
_nettle_write_le32
(
unsigned
length
,
uint8_t
*
dst
,
_nettle_write_le32
(
size_t
length
,
uint8_t
*
dst
,
uint32_t
*
src
);
void
_nettle_write_le64
(
unsigned
length
,
uint8_t
*
dst
,
_nettle_write_le64
(
size_t
length
,
uint8_t
*
dst
,
uint64_t
*
src
);
#endif
/* NETTLE_WRITE_H_INCLUDED */
write-be32.c
View file @
c15a79d4
...
...
@@ -31,11 +31,11 @@
#include
"macros.h"
void
_nettle_write_be32
(
unsigned
length
,
uint8_t
*
dst
,
_nettle_write_be32
(
size_t
length
,
uint8_t
*
dst
,
uint32_t
*
src
)
{
unsigned
i
;
unsigned
words
;
size_t
i
;
size_t
words
;
unsigned
leftover
;
words
=
length
/
4
;
...
...
write-le32.c
View file @
c15a79d4
...
...
@@ -31,11 +31,11 @@
#include
"macros.h"
void
_nettle_write_le32
(
unsigned
length
,
uint8_t
*
dst
,
_nettle_write_le32
(
size_t
length
,
uint8_t
*
dst
,
uint32_t
*
src
)
{
unsigned
i
;
unsigned
words
;
size_t
i
;
size_t
words
;
unsigned
leftover
;
words
=
length
/
4
;
...
...
write-le64.c
View file @
c15a79d4
...
...
@@ -29,11 +29,11 @@
#include
"macros.h"
void
_nettle_write_le64
(
unsigned
length
,
uint8_t
*
dst
,
_nettle_write_le64
(
size_t
length
,
uint8_t
*
dst
,
uint64_t
*
src
)
{
unsigned
i
;
unsigned
words
;
size_t
i
;
size_t
words
;
unsigned
leftover
;
words
=
length
/
8
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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