mbed TLS v1.3.11
base64.h
Go to the documentation of this file.
1 
24 #ifndef POLARSSL_BASE64_H
25 #define POLARSSL_BASE64_H
26 
27 #include <stddef.h>
28 
29 #define POLARSSL_ERR_BASE64_BUFFER_TOO_SMALL -0x002A
30 #define POLARSSL_ERR_BASE64_INVALID_CHARACTER -0x002C
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
51 int base64_encode( unsigned char *dst, size_t *dlen,
52  const unsigned char *src, size_t slen );
53 
70 int base64_decode( unsigned char *dst, size_t *dlen,
71  const unsigned char *src, size_t slen );
72 
78 int base64_self_test( int verbose );
79 
80 #ifdef __cplusplus
81 }
82 #endif
83 
84 #endif /* base64.h */
int base64_decode(unsigned char *dst, size_t *dlen, const unsigned char *src, size_t slen)
Decode a base64-formatted buffer.
int base64_self_test(int verbose)
Checkup routine.
int base64_encode(unsigned char *dst, size_t *dlen, const unsigned char *src, size_t slen)
Encode a buffer into base64 format.