RetroArch
base64.h
Go to the documentation of this file.
1 
23 #ifndef MBEDTLS_BASE64_H
24 #define MBEDTLS_BASE64_H
25 
26 #include <stddef.h>
27 
28 #define MBEDTLS_ERR_BASE64_BUFFER_TOO_SMALL -0x002A
29 #define MBEDTLS_ERR_BASE64_INVALID_CHARACTER -0x002C
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
54 int mbedtls_base64_encode( unsigned char *dst, size_t dlen, size_t *olen,
55  const unsigned char *src, size_t slen );
56 
74 int mbedtls_base64_decode( unsigned char *dst, size_t dlen, size_t *olen,
75  const unsigned char *src, size_t slen );
76 
82 int mbedtls_base64_self_test( int verbose );
83 
84 #ifdef __cplusplus
85 }
86 #endif
87 
88 #endif /* base64.h */
GLenum src
Definition: glext.h:6980
static const size_t slen[MAX_TESTS]
Definition: pkcs5.c:314
int mbedtls_base64_encode(unsigned char *dst, size_t dlen, size_t *olen, const unsigned char *src, size_t slen)
Encode a buffer into base64 format.
Definition: base64.c:77
int mbedtls_base64_self_test(int verbose)
Checkup routine.
Definition: base64.c:251
GLenum GLenum dst
Definition: glext.h:6980
int mbedtls_base64_decode(unsigned char *dst, size_t dlen, size_t *olen, const unsigned char *src, size_t slen)
Decode a base64-formatted buffer.
Definition: base64.c:144