| 16 | } |
| 17 | |
| 18 | char base64_encode_value(char value_in) { |
| 19 | static const char *encoding = |
| 20 | "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; |
| 21 | if (value_in > 63) |
| 22 | return '='; |
| 23 | return encoding[(int)value_in]; |
| 24 | } |
| 25 | |
| 26 | int base64_encode_block(const char *plaintext_in, int length_in, char *code_out, |
| 27 | base64_encodestate *state_in) { |
no outgoing calls
no test coverage detected