diff options
author | Niels Möller <nisse@lysator.liu.se> | 2016-01-10 11:37:01 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2016-01-10 11:37:01 +0100 |
commit | 071f93c86fe9999443c0b5acf050642d0a1bbc94 (patch) | |
tree | 405757da9e20b21860c4dc3f4ecf96dcc7bec735 | |
parent | 4ebc67a7a29748bcdd3983e8e75e0b0c770b3515 (diff) | |
download | nettle-071f93c86fe9999443c0b5acf050642d0a1bbc94.tar.gz |
Fix argument signedness for encode_raw.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | base64-encode.c | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -1,5 +1,8 @@ 2016-01-10 Niels Möller <nisse@lysator.liu.se> + * base64-encode.c (encode_raw): Use const uint8_t * for the + alphabet argument. + * nettle.texinfo (RSA): Document the rsa_pkcs1_verify and rsa_pkcs1_sign functions, and the new rsa_*_tr functions. diff --git a/base64-encode.c b/base64-encode.c index 0e81b3f5..f23115a9 100644 --- a/base64-encode.c +++ b/base64-encode.c @@ -41,7 +41,7 @@ #define ENCODE(alphabet,x) ((alphabet)[0x3F & (x)]) static void -encode_raw(const char *alphabet, +encode_raw(const uint8_t *alphabet, uint8_t *dst, size_t length, const uint8_t *src) { const uint8_t *in = src + length; |