diff options
Diffstat (limited to 'base16.h')
-rw-r--r-- | base16.h | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -81,13 +81,9 @@ base16_decode_single(struct base16_decode_ctx *ctx, uint8_t src); /* Returns 1 on success, 0 on error. DST should point to an area of - * size at least BASE16_DECODE_LENGTH(length), and for sanity - * checking, *DST_LENGTH should be initialized to the size of that - * area before the call. *DST_LENGTH is updated to the amount of - * decoded output. */ + * size at least BASE16_DECODE_LENGTH(length). The amount of data + * generated is returned in *DST_LENGTH. */ -/* Currently results in an assertion failure if *DST_LENGTH is - * too small. FIXME: Return some error instead? */ int base16_decode_update(struct base16_decode_ctx *ctx, size_t *dst_length, |