Lines Matching refs:target
129 b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize) {
152 target[datalength++] = Base64[output[0]];
153 target[datalength++] = Base64[output[1]];
154 target[datalength++] = Base64[output[2]];
155 target[datalength++] = Base64[output[3]];
174 target[datalength++] = Base64[output[0]];
175 target[datalength++] = Base64[output[1]];
177 target[datalength++] = Pad64;
179 target[datalength++] = Base64[output[2]];
180 target[datalength++] = Pad64;
184 target[datalength] = '\0'; /* Returned value doesn't count \0. */
190 src from base - 64 numbers into three 8 bit bytes in the target area.
191 it returns the number of data bytes stored at the target, or -1 on error.
195 b64_pton(const char *src, u_char *target, size_t targsize)
217 if (target) {
220 target[tarindex] = (pos - Base64) << 2;
225 if (target) {
228 target[tarindex] |= (pos - Base64) >> 4;
231 target[tarindex + 1] = nextbyte;
239 if (target) {
242 target[tarindex] |= (pos - Base64) >> 2;
245 target[tarindex + 1] = nextbyte;
253 if (target) {
256 target[tarindex] |= (pos - Base64);
305 if (target && (size_t)tarindex < targsize &&
306 target[tarindex] != 0)