Commit c15a79d4 authored by Niels Möller's avatar Niels Möller

Use size_t for _nettle_write functions.

parent a7826587
...@@ -34,14 +34,14 @@ ...@@ -34,14 +34,14 @@
/* FIXME: Use a macro shortcut to memcpy for native endianness. */ /* FIXME: Use a macro shortcut to memcpy for native endianness. */
void void
_nettle_write_be32(unsigned length, uint8_t *dst, _nettle_write_be32(size_t length, uint8_t *dst,
uint32_t *src); uint32_t *src);
void void
_nettle_write_le32(unsigned length, uint8_t *dst, _nettle_write_le32(size_t length, uint8_t *dst,
uint32_t *src); uint32_t *src);
void void
_nettle_write_le64(unsigned length, uint8_t *dst, _nettle_write_le64(size_t length, uint8_t *dst,
uint64_t *src); uint64_t *src);
#endif /* NETTLE_WRITE_H_INCLUDED */ #endif /* NETTLE_WRITE_H_INCLUDED */
...@@ -31,11 +31,11 @@ ...@@ -31,11 +31,11 @@
#include "macros.h" #include "macros.h"
void void
_nettle_write_be32(unsigned length, uint8_t *dst, _nettle_write_be32(size_t length, uint8_t *dst,
uint32_t *src) uint32_t *src)
{ {
unsigned i; size_t i;
unsigned words; size_t words;
unsigned leftover; unsigned leftover;
words = length / 4; words = length / 4;
......
...@@ -31,11 +31,11 @@ ...@@ -31,11 +31,11 @@
#include "macros.h" #include "macros.h"
void void
_nettle_write_le32(unsigned length, uint8_t *dst, _nettle_write_le32(size_t length, uint8_t *dst,
uint32_t *src) uint32_t *src)
{ {
unsigned i; size_t i;
unsigned words; size_t words;
unsigned leftover; unsigned leftover;
words = length / 4; words = length / 4;
......
...@@ -29,11 +29,11 @@ ...@@ -29,11 +29,11 @@
#include "macros.h" #include "macros.h"
void void
_nettle_write_le64(unsigned length, uint8_t *dst, _nettle_write_le64(size_t length, uint8_t *dst,
uint64_t *src) uint64_t *src)
{ {
unsigned i; size_t i;
unsigned words; size_t words;
unsigned leftover; unsigned leftover;
words = length / 8; words = length / 8;
......
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