Go to the source code of this file.
Defines | |
| #define | XYSSL_ERR_BASE64_BUFFER_TOO_SMALL -0x0010 |
| #define | XYSSL_ERR_BASE64_INVALID_CHARACTER -0x0012 |
Functions | |
| int | base64_encode (unsigned char *dst, int *dlen, unsigned char *src, int slen) |
| Encode a buffer into base64 format. | |
| int | base64_decode (unsigned char *dst, int *dlen, unsigned char *src, int slen) |
| Decode a base64-formatted buffer. | |
| int | base64_self_test (int verbose) |
| Checkup routine. | |
Definition in file base64.h.
| #define XYSSL_ERR_BASE64_BUFFER_TOO_SMALL -0x0010 |
Definition at line 7 of file base64.h.
Referenced by base64_decode(), and base64_encode().
| #define XYSSL_ERR_BASE64_INVALID_CHARACTER -0x0012 |
Definition at line 8 of file base64.h.
Referenced by base64_decode(), x509parse_crt(), and x509parse_key().
Decode a base64-formatted buffer.
| dst | destination buffer | |
| dlen | size of the buffer | |
| src | source buffer | |
| slen | amount of data to be decoded |
Definition at line 121 of file base64.c.
References base64_dec_map, XYSSL_ERR_BASE64_BUFFER_TOO_SMALL, and XYSSL_ERR_BASE64_INVALID_CHARACTER.
Referenced by base64_self_test(), x509parse_crt(), and x509parse_key().
Encode a buffer into base64 format.
| dst | destination buffer | |
| dlen | size of the buffer | |
| src | source buffer | |
| slen | amount of data to be encoded |
Definition at line 58 of file base64.c.
References base64_enc_map, and XYSSL_ERR_BASE64_BUFFER_TOO_SMALL.
Referenced by base64_self_test().
Checkup routine.
Definition at line 206 of file base64.c.
References base64_decode(), base64_encode(), base64_test_dec, and base64_test_enc.
Referenced by main().
1.6.1