Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Wim Lewis
nettle
Commits
010935eb
Commit
010935eb
authored
Oct 01, 2002
by
Niels Möller
Browse files
(BASE64_DECODE_LENGTH): Comment fix.
Rev: src/nettle/base64.h:1.6
parent
3dea3168
Changes
1
Hide whitespace changes
Inline
Side-by-side
base64.h
View file @
010935eb
...
...
@@ -65,8 +65,14 @@ base64_decode_update(struct base64_ctx *ctx,
unsigned
src_length
,
const
uint8_t
*
src
);
/* FIXME: Does this always round correctly? */
/* Maximum length of decoded data */
/* Maximum length of decoded data.
*
* NOTE: This size should work even for improper base 64 data. For
* example, consider an (encoded) input string of two bytes. When
* we'll generate one byte of output before noticing that the input is
* truncated. And BASE64_DECODE_LENGTH(2) == 2*3/4 == 1, so that is
* just fine. */
#define BASE64_DECODE_LENGTH(src_length) \
((src_length) * BASE64_BINARY_BLOCK_SIZE / BASE64_TEXT_BLOCK_SIZE)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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