Lines Matching defs:src
23 * @src: the binary data to encode
24 * @srclen: the length of @src in bytes
32 int base64_encode(const u8 *src, int srclen, char *dst)
40 ac = (ac << 8) | src[i];
61 * @src: the string to decode. Doesn't need to be NUL-terminated.
62 * @srclen: the length of @src in bytes
73 int base64_decode(const char *src, int srclen, u8 *dst)
81 const char *p = strchr(base64_table, src[i]);
83 if (src[i] == '=') {
90 if (p == NULL || src[i] == 0)