cdecode_inc.h 648 B

12345678910111213141516171819202122232425262728
  1. /*
  2. cdecode.h - c header for a base64 decoding algorithm
  3. This is part of the libb64 project, and has been placed in the public domain.
  4. For details, see http://sourceforge.net/projects/libb64
  5. */
  6. #ifndef BASE64_CDECODE_H
  7. #define BASE64_CDECODE_H
  8. typedef enum
  9. {
  10. step_a, step_b, step_c, step_d
  11. } base64_decodestep;
  12. typedef struct
  13. {
  14. base64_decodestep step;
  15. char plainchar;
  16. } base64_decodestate;
  17. void base64_init_decodestate(base64_decodestate* state_in);
  18. int base64_decode_value(char value_in);
  19. int base64_decode_block(const char* code_in, const int length_in, char* plaintext_out, base64_decodestate* state_in);
  20. #endif /* BASE64_CDECODE_H */