Lines Matching defs:target
136 b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize)
160 target[datalength++] = Base64[output[0]];
161 target[datalength++] = Base64[output[1]];
162 target[datalength++] = Base64[output[2]];
163 target[datalength++] = Base64[output[3]];
182 target[datalength++] = Base64[output[0]];
183 target[datalength++] = Base64[output[1]];
185 target[datalength++] = Pad64;
187 target[datalength++] = Base64[output[2]];
188 target[datalength++] = Pad64;
192 target[datalength] = '\0'; /* Returned value doesn't count \0. */
198 src from base - 64 numbers into three 8 bit bytes in the target area.
199 it returns the number of data bytes stored at the target, or -1 on error.
203 b64_pton(u_char const *src, u_char *target, size_t targsize)
224 if (target) {
227 target[tarindex] = (pos - Base64) << 2;
232 if (target) {
235 target[tarindex] |= (pos - Base64) >> 4;
236 target[tarindex+1] = ((pos - Base64) & 0x0f)
243 if (target) {
246 target[tarindex] |= (pos - Base64) >> 2;
247 target[tarindex+1] = ((pos - Base64) & 0x03)
254 if (target) {
257 target[tarindex] |= (pos - Base64);
304 if (target && target[tarindex] != 0)