Lines Matching +full:- +full:127
5 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
6 * SPDX-License-Identifier: Apache-2.0
12 * http://www.apache.org/licenses/LICENSE-2.0
21 * - Removed mbedtls_ prefixes
22 * - Reworked coding style
40 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
41 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
42 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
43 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
44 127, 127, 127, 62, 127, 127, 127, 63, 52, 53,
45 54, 55, 56, 57, 58, 59, 60, 61, 127, 127,
46 127, 64, 127, 127, 127, 0, 1, 2, 3, 4,
49 25, 127, 127, 127, 127, 127, 127, 26, 27, 28,
52 49, 50, 51, 127, 127, 127, 127, 127
55 #define BASE64_SIZE_T_MAX ((size_t) -1) /* SIZE_T_MAX is not standard */
74 if (n > (BASE64_SIZE_T_MAX - 1) / 4) { in base64_encode()
76 return -ENOMEM; in base64_encode()
83 return -ENOMEM; in base64_encode()
115 *olen = p - dst; in base64_encode()
122 * Decode a base64-formatted buffer
145 if ((slen - i) >= 2 && src[i] == '\r' && src[i + 1] == '\n') { in base64_decode()
155 return -EINVAL; in base64_decode()
159 return -EINVAL; in base64_decode()
162 if (src[i] > 127 || base64_dec_map[src[i]] == 127U) { in base64_decode()
163 return -EINVAL; in base64_decode()
167 return -EINVAL; in base64_decode()
183 n -= j; in base64_decode()
187 return -ENOMEM; in base64_decode()
190 for (j = 3U, n = x = 0U, p = dst; i > 0; i--, src++) { in base64_decode()
196 j -= (base64_dec_map[*src] == 64U); in base64_decode()
213 *olen = p - dst; in base64_decode()