Lines Matching refs:target
130 b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize) {
153 target[datalength++] = Base64[output[0]];
154 target[datalength++] = Base64[output[1]];
155 target[datalength++] = Base64[output[2]];
156 target[datalength++] = Base64[output[3]];
175 target[datalength++] = Base64[output[0]];
176 target[datalength++] = Base64[output[1]];
178 target[datalength++] = Pad64;
180 target[datalength++] = Base64[output[2]];
181 target[datalength++] = Pad64;
185 target[datalength] = '\0'; /* Returned value doesn't count \0. */
191 src from base - 64 numbers into three 8 bit bytes in the target area.
192 it returns the number of data bytes stored at the target, or -1 on error.
196 b64_pton(src, target, targsize)
198 u_char *target;
220 if (target) {
223 target[tarindex] = (pos - Base64) << 2;
228 if (target) {
231 target[tarindex] |= (pos - Base64) >> 4;
232 target[tarindex+1] = ((pos - Base64) & 0x0f)
239 if (target) {
242 target[tarindex] |= (pos - Base64) >> 2;
243 target[tarindex+1] = ((pos - Base64) & 0x03)
250 if (target) {
253 target[tarindex] |= (pos - Base64);
302 if (target && target[tarindex] != 0)