Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Wim Lewis
nettle
Commits
c15a79d4
Commit
c15a79d4
authored
Apr 26, 2013
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use size_t for _nettle_write functions.
parent
a7826587
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
nettle-write.h
nettle-write.h
+3
-3
write-be32.c
write-be32.c
+3
-3
write-le32.c
write-le32.c
+3
-3
write-le64.c
write-le64.c
+3
-3
No files found.
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
Markdown
is supported
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