Added calculation for encoded output size based on input size. Calculated size is never more than a byte larger than the actual size.

This commit is contained in:
Jordan Cristiano
2015-06-21 02:21:33 -04:00
parent 3acc56055c
commit 8b73c4041b
2 changed files with 14 additions and 0 deletions

View File

@ -28,6 +28,7 @@ typedef struct
void base64_init_encodestate(base64_encodestate* state_in);
int base64_calc_buffer_length(int length_in, const base64_encodestate* state_in);
int base64_encode_block(const char* plaintext_in, int length_in, char* code_out, base64_encodestate* state_in);