Lines Matching refs:target
132 b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize) {
155 target[datalength++] = Base64[output[0]];
156 target[datalength++] = Base64[output[1]];
157 target[datalength++] = Base64[output[2]];
158 target[datalength++] = Base64[output[3]];
177 target[datalength++] = Base64[output[0]];
178 target[datalength++] = Base64[output[1]];
180 target[datalength++] = Pad64;
182 target[datalength++] = Base64[output[2]];
183 target[datalength++] = Pad64;
187 target[datalength] = '\0'; /* Returned value doesn't count \0. */
193 src from base - 64 numbers into three 8 bit bytes in the target area.
194 it returns the number of data bytes stored at the target, or -1 on error.
198 b64_pton(src, target, targsize)
200 u_char *target;
222 if (target) {
225 target[tarindex] = (pos - Base64) << 2;
230 if (target) {
233 target[tarindex] |= (pos - Base64) >> 4;
234 target[tarindex+1] = ((pos - Base64) & 0x0f)
241 if (target) {
244 target[tarindex] |= (pos - Base64) >> 2;
245 target[tarindex+1] = ((pos - Base64) & 0x03)
252 if (target) {
255 target[tarindex] |= (pos - Base64);
304 if (target && target[tarindex] != 0)