Lines Matching refs:in
251 static void (*base_encode) (char const *restrict in, idx_t inlen,
286 char const *restrict in, idx_t inlen,
309 char const *restrict in, idx_t inlen, in base64_decode_ctx_wrapper() argument
312 bool b = base64_decode_ctx (&ctx->ctx.base64, in, inlen, out, outlen); in base64_decode_ctx_wrapper()
336 base64url_encode (char const *restrict in, idx_t inlen, in base64url_encode() argument
339 base64_encode (in, inlen, out, outlen); in base64url_encode()
369 char const *restrict in, idx_t inlen, in base64url_decode_ctx_wrapper() argument
373 memcpy (ctx->inbuf, in, inlen); in base64url_decode_ctx_wrapper()
415 char const *restrict in, idx_t inlen, in base32_decode_ctx_wrapper() argument
418 bool b = base32_decode_ctx (&ctx->ctx.base32, in, inlen, out, outlen); in base32_decode_ctx_wrapper()
473 base32hex_encode (char const *restrict in, idx_t inlen, in base32hex_encode() argument
476 base32_encode (in, inlen, out, outlen); in base32hex_encode()
496 char const *restrict in, idx_t inlen, in base32hex_decode_ctx_wrapper() argument
505 if (isubase32hex (*in)) in base32hex_decode_ctx_wrapper()
506 *p = base32_hex_to_norm[*in - 0x30]; in base32hex_decode_ctx_wrapper()
508 *p = *in; in base32hex_decode_ctx_wrapper()
510 ++in; in base32hex_decode_ctx_wrapper()
628 base16_encode (char const *restrict in, idx_t inlen, in base16_encode() argument
635 unsigned char c = *in; in base16_encode()
638 ++in; in base16_encode()
654 char const *restrict in, idx_t inlen, in base16_decode_ctx() argument
672 unsigned char c = *in++; in base16_decode_ctx()
721 z85_encode (char const *restrict in, idx_t inlen, in z85_encode() argument
742 quad[i++] = *in++; in z85_encode()
818 char const *restrict in, idx_t inlen, in z85_decode_ctx() argument
841 if (ignore_lines && *in == '\n') in z85_decode_ctx()
843 ++in; in z85_decode_ctx()
848 unsigned char c = *in; in z85_decode_ctx()
860 ++in; in z85_decode_ctx()
904 base2msbf_encode (char const *restrict in, idx_t inlen, in base2msbf_encode() argument
909 unsigned char c = *in; in base2msbf_encode()
916 ++in; in base2msbf_encode()
921 base2lsbf_encode (char const *restrict in, idx_t inlen, in base2lsbf_encode() argument
926 unsigned char c = *in; in base2lsbf_encode()
933 ++in; in base2lsbf_encode()
949 char const *restrict in, idx_t inlen, in base2lsbf_decode_ctx() argument
964 if (ignore_lines && *in == '\n') in base2lsbf_decode_ctx()
966 ++in; in base2lsbf_decode_ctx()
970 if (!isubase2 (*in)) in base2lsbf_decode_ctx()
973 bool bit = (*in == '1'); in base2lsbf_decode_ctx()
985 ++in; in base2lsbf_decode_ctx()
993 char const *restrict in, idx_t inlen, in base2msbf_decode_ctx() argument
1008 if (ignore_lines && *in == '\n') in base2msbf_decode_ctx()
1010 ++in; in base2msbf_decode_ctx()
1014 if (!isubase2 (*in)) in base2msbf_decode_ctx()
1017 bool bit = (*in == '1'); in base2msbf_decode_ctx()
1031 ++in; in base2msbf_decode_ctx()
1073 finish_and_exit (FILE *in, char const *infile) in finish_and_exit() argument
1075 if (fclose (in) != 0) in finish_and_exit()
1087 do_encode (FILE *in, char const *infile, FILE *out, idx_t wrap_column) in do_encode() argument
1103 n = fread (inbuf + sum, 1, ENC_BLOCKSIZE - sum, in); in do_encode()
1106 while (!feof (in) && !ferror (in) && sum < ENC_BLOCKSIZE); in do_encode()
1118 while (!feof (in) && !ferror (in) && sum == ENC_BLOCKSIZE); in do_encode()
1124 if (ferror (in)) in do_encode()
1127 finish_and_exit (in, infile); in do_encode()
1131 do_decode (FILE *in, char const *infile, FILE *out, bool ignore_garbage) in do_decode() argument
1154 1, BASE_LENGTH (DEC_BLOCKSIZE) - sum, in); in do_decode()
1169 if (ferror (in)) in do_decode()
1172 while (sum < BASE_LENGTH (DEC_BLOCKSIZE) && !feof (in)); in do_decode()
1178 for (int k = 0; k < 1 + !!feof (in); k++) in do_decode()
1207 while (!feof (in)); in do_decode()
1209 finish_and_exit (in, infile); in do_decode()