diff options
author | Niels Möller <nisse@lysator.liu.se> | 2002-09-30 21:32:42 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2002-09-30 21:32:42 +0200 |
commit | 0384fc6f702b1e53ecc6ad2df083b524436c0df0 (patch) | |
tree | b5a10f2c78524e6beab271310814a867c34f8f7a /base64.h | |
parent | d889111d17ad6acb4b97aff058643fb44fbd1e63 (diff) | |
download | nettle-0384fc6f702b1e53ecc6ad2df083b524436c0df0.tar.gz |
(base64_encode): Encode from the end of the data
towards the start, in order to support overlapping areas.
Rev: src/nettle/base64.c:1.3
Rev: src/nettle/base64.h:1.5
Diffstat (limited to 'base64.h')
-rw-r--r-- | base64.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -33,6 +33,9 @@ #define BASE64_BINARY_BLOCK_SIZE 3 #define BASE64_TEXT_BLOCK_SIZE 4 +/* Overlapping source and destination is allowed, as long as the start + * of the source area is not later than the start of the destination + * area. */ unsigned /* Returns the length of encoded data */ base64_encode(uint8_t *dst, unsigned src_length, @@ -53,6 +56,9 @@ struct base64_ctx /* Internal, do not modify */ void base64_decode_init(struct base64_ctx *ctx); +/* Overlapping source and destination is allowed, as long as the start + * of the source area is not before the start of the destination + * area. */ unsigned /* Returns the length of decoded data */ base64_decode_update(struct base64_ctx *ctx, uint8_t *dst, |