|
iPXE
|
Base64 encoding. More...
#include <stdint.h>#include <string.h>#include <ctype.h>#include <errno.h>#include <assert.h>#include <ipxe/base64.h>Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| size_t | base64_encode (const void *raw, size_t raw_len, char *data, size_t len) |
| Base64-encode data. More... | |
| int | base64_decode (const char *encoded, void *data, size_t len) |
| Base64-decode string. More... | |
Variables | |
| static const char | base64 [64+1] |
Base64 encoding.
Definition in file base64.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
Base64-encode data.
| raw | Raw data |
| raw_len | Length of raw data |
| data | Buffer |
| len | Length of buffer |
| len | Encoded length |
Definition at line 51 of file base64.c.
References base64, bit, data, len, raw, raw_len, and tmp.
Referenced by base64_encode_okx(), format_base64_setting(), http_format_basic_auth(), http_format_ntlm_auth(), icert_encode(), ocsp_uri_string(), and validator_start_download().
| int base64_decode | ( | const char * | encoded, |
| void * | data, | ||
| size_t | len | ||
| ) |
Base64-decode string.
| encoded | Encoded string |
| data | Buffer |
| len | Length of buffer |
| len | Length of data, or negative error |
Definition at line 91 of file base64.c.
References base64, bit, data, DBG, EINVAL, in, isspace(), len, memset(), offset, out, and strchr().
Referenced by base64_decode_okx(), http_parse_ntlm_auth(), ipair_rx_pubkey(), iscsi_large_binary_decode(), parse_base64_setting(), and pem_asn1().
|
static |
Definition at line 39 of file base64.c.
Referenced by base64_decode(), base64_encode(), and ocsp_uri_string().
1.8.15