Lines Matching refs:target
134 b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize)
154 target[datalength++] = Base64[output[0]];
155 target[datalength++] = Base64[output[1]];
156 target[datalength++] = Base64[output[2]];
157 target[datalength++] = Base64[output[3]];
173 target[datalength++] = Base64[output[0]];
174 target[datalength++] = Base64[output[1]];
176 target[datalength++] = Pad64;
178 target[datalength++] = Base64[output[2]];
179 target[datalength++] = Pad64;
183 target[datalength] = '\0'; /* Returned value doesn't count \0. */
192 src from base - 64 numbers into three 8 bit bytes in the target area.
193 it returns the number of data bytes stored at the target, or -1 on error.
197 b64_pton(char const *src, u_char *target, size_t targsize)
219 if (target) {
222 target[tarindex] = (pos - Base64) << 2;
227 if (target) {
230 target[tarindex] |= (pos - Base64) >> 4;
231 target[tarindex+1] = ((pos - Base64) & 0x0f)
238 if (target) {
241 target[tarindex] |= (pos - Base64) >> 2;
242 target[tarindex+1] = ((pos - Base64) & 0x03)
249 if (target) {
252 target[tarindex] |= (pos - Base64);
299 if (target && target[tarindex] != 0)