Home
last modified time | relevance | path

Searched refs:b64 (Results 1 – 25 of 103) sorted by relevance

12345

/netbsd-src/regress/lib/libc/divrem/
H A Ddivremtest.c85 intmax_t a64, b64, sr64; in main() local
132 b64 = IM(1) << j; in main()
135 T64S( a64 + k, b64 + l, sr64); in main()
136 T64S( a64 + k, -b64 + l, sr64); in main()
137 T64S(-a64 + k, b64 + l, sr64); in main()
138 T64S(-a64 + k, -b64 + l, sr64); in main()
139 T64U(UIM(a64) + k, UIM(b64) + l, ur64); in main()
147 for(b64 = -(1 << KLE); b64 < 1 << KLE; ++b64) { in main()
148 TEST("64 ", a64, b64, sr64); in main()
149 if (a64 >= 0 && b64 >= 0) in main()
[all …]
/netbsd-src/sys/external/isc/libsodium/dist/test/default/
H A Dcodecs.c10 const char *b64; in main() local
120 b64 = "VGhpcyBpcyBhIGpvdXJu" "\n" "ZXkgaW50by" " " "Bzb3VuZA=="; in main()
122 assert(sodium_base642bin(buf4, sizeof buf4, b64, strlen(b64), "\n\r ", &bin_len, in main()
129 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), "\n\r ", &bin_len, in main()
136 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), NULL, &bin_len, in main()
142 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), NULL, NULL, in main()
144 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), NULL, NULL, in main()
146 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), " \r\n", NULL, in main()
148 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), NULL, NULL, in main()
150 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), " \r\n", NULL, in main()
[all …]
/netbsd-src/crypto/external/bsd/libsaslc/dist/src/
H A Dcrypto.c68 BIO *b64; in saslc__crypto_encode_base64() local
81 if ((b64 = BIO_new(BIO_f_base64())) == NULL) { in saslc__crypto_encode_base64()
85 BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL); in saslc__crypto_encode_base64()
86 b64 = BIO_push(b64, bio); in saslc__crypto_encode_base64()
87 if (BIO_write(b64, in, (int)inlen) != (int)inlen) { in saslc__crypto_encode_base64()
88 BIO_free_all(b64); in saslc__crypto_encode_base64()
92 (void)BIO_flush(b64); in saslc__crypto_encode_base64()
94 BIO_free_all(b64); in saslc__crypto_encode_base64()
120 BIO *b64; in saslc__crypto_decode_base64() local
133 if ((b64 = BIO_new(BIO_f_base64())) == NULL) { in saslc__crypto_decode_base64()
[all …]
/netbsd-src/external/bsd/openldap/dist/servers/slapd/back-sock/
H A Dextended.c38 struct berval b64; in sock_back_extended() local
58 b64.bv_len = LUTIL_BASE64_ENCODE_LEN( op->ore_reqdata->bv_len ) + 1; in sock_back_extended()
59 b64.bv_val = op->o_tmpalloc( b64.bv_len + 1, op->o_tmpmemctx ); in sock_back_extended()
63 b64.bv_val, b64.bv_len ); in sock_back_extended()
65 b64.bv_len = rc; in sock_back_extended()
66 assert( strlen(b64.bv_val) == b64.bv_len ); in sock_back_extended()
68 fprintf( fp, "value: %s\n", b64.bv_val ); in sock_back_extended()
70 op->o_tmpfree( b64.bv_val, op->o_tmpmemctx ); in sock_back_extended()
/netbsd-src/crypto/external/cpl/tpm-tools/dist/lib/
H A Dtpm_unseal.c90 BIO *bdata = NULL, *b64 = NULL, *bmem = NULL; in tpmUnsealFile() local
162 if ((b64 = BIO_new(BIO_f_base64())) == NULL) { in tpmUnsealFile()
169 bmem = BIO_push( b64, bmem ); in tpmUnsealFile()
184 bmem = BIO_pop(b64); in tpmUnsealFile()
185 BIO_free(b64); in tpmUnsealFile()
186 b64 = NULL; in tpmUnsealFile()
234 if ((b64 = BIO_new(BIO_f_base64())) == NULL) { in tpmUnsealFile()
241 bmem = BIO_push( b64, bmem ); in tpmUnsealFile()
256 bmem = BIO_pop(b64); in tpmUnsealFile()
257 BIO_free(b64); in tpmUnsealFile()
[all …]
/netbsd-src/sys/external/isc/libsodium/dist/src/libsodium/sodium/
H A Dcodecs.c179 sodium_bin2base64(char * const b64, const size_t b64_maxlen, in sodium_bin2base64() argument
211 b64[b64_pos++] = (char) b64_byte_to_urlsafe_char((acc >> acc_len) & 0x3F); in sodium_bin2base64()
215 b64[b64_pos++] = (char) b64_byte_to_urlsafe_char((acc << (6 - acc_len)) & 0x3F); in sodium_bin2base64()
223 b64[b64_pos++] = (char) b64_byte_to_char((acc >> acc_len) & 0x3F); in sodium_bin2base64()
227 b64[b64_pos++] = (char) b64_byte_to_char((acc << (6 - acc_len)) & 0x3F); in sodium_bin2base64()
232 b64[b64_pos++] = '='; in sodium_bin2base64()
235 b64[b64_pos++] = 0U; in sodium_bin2base64()
238 return b64; in sodium_bin2base64()
242 _sodium_base642bin_skip_padding(const char * const b64, const size_t b64_len, in _sodium_base642bin_skip_padding() argument
253 c = b64[*b64_pos_p]; in _sodium_base642bin_skip_padding()
[all …]
/netbsd-src/usr.bin/mail/
H A Dmime_codecs.c214 mime_b64tobin(char *bin, const char *b64, size_t cnt) in mime_b64tobin() argument
234 q = (const unsigned char *)b64; in mime_b64tobin()
276 mime_bintob64(char *b64, const char *bin, size_t cnt) in mime_bintob64() argument
288 b64[0] = b64table[a >> 2]; in mime_bintob64()
291 b64[1] = b64table[((a & 0x3) << 4)]; in mime_bintob64()
292 b64[2] = '='; in mime_bintob64()
293 b64[3] = '='; in mime_bintob64()
296 b64[1] = b64table[((a & 0x3) << 4) | ((b & 0xf0) >> 4)]; in mime_bintob64()
297 b64[2] = b64table[((b & 0xf) << 2)]; in mime_bintob64()
298 b64[3] = '='; in mime_bintob64()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/doc/man3/
H A DBIO_f_base64.pod58 BIO *bio, *b64;
61 b64 = BIO_new(BIO_f_base64());
63 BIO_push(b64, bio);
64 BIO_write(b64, message, strlen(message));
65 BIO_flush(b64);
67 BIO_free_all(b64);
72 BIO *bio, *b64, *bio_out;
76 b64 = BIO_new(BIO_f_base64());
79 BIO_push(b64, bio);
80 while ((inlen = BIO_read(b64, inbuf, 512)) > 0)
[all …]
H A DBIO_push.pod55 I<b64> is a base64 BIO and I<f> is a file BIO.
59 BIO_push(b64, f);
61 is made then the new chain will be I<b64-f>. After making the calls
63 BIO_push(md2, b64);
66 the new chain is I<md1-md2-b64-f>. Data written to I<md1> will be digested
77 will return I<b64> and the new chain will be I<md1-b64-f>.
/netbsd-src/crypto/external/bsd/openssh/dist/
H A Dsshbuf-misc.c92 sshbuf_dtob64(const struct sshbuf *d, struct sshbuf *b64, int wrap) in sshbuf_dtob64() argument
98 if (d == NULL || b64 == NULL || sshbuf_len(d) >= SIZE_MAX / 2) in sshbuf_dtob64()
111 if ((r = sshbuf_put_u8(b64, s[i])) != 0) in sshbuf_dtob64()
113 if (i % 70 == 69 && (r = sshbuf_put_u8(b64, '\n')) != 0) in sshbuf_dtob64()
116 if ((i - 1) % 70 != 69 && (r = sshbuf_put_u8(b64, '\n')) != 0) in sshbuf_dtob64()
119 if ((r = sshbuf_put(b64, s, strlen(s))) != 0) in sshbuf_dtob64()
147 sshbuf_b64tod(struct sshbuf *buf, const char *b64) in sshbuf_b64tod() argument
149 size_t plen = strlen(b64); in sshbuf_b64tod()
157 if ((nlen = b64_pton(b64, p, plen)) < 0) { in sshbuf_b64tod()
170 sshbuf_dtourlb64(const struct sshbuf *d, struct sshbuf *b64, int wrap) in sshbuf_dtourlb64() argument
[all …]
/netbsd-src/crypto/external/cpl/tpm-tools/dist/src/cmds/
H A Dtpm_sealdata.c122 BIO *bin = NULL, *bdata=NULL, *b64=NULL; in main() local
297 if ((b64 = BIO_new(BIO_f_base64())) == NULL) { in main()
322 bdata = BIO_push(b64, bdata); in main()
328 bdata = BIO_pop(b64); in main()
334 bdata = BIO_push(b64, bdata); in main()
340 bdata = BIO_pop(b64); in main()
344 bdata = BIO_push(b64, bdata); in main()
361 bdata = BIO_pop(b64); in main()
376 if (b64) in main()
377 BIO_free(b64); in main()
/netbsd-src/external/bsd/unbound/dist/sldns/
H A Dparseutil.c659 char* b64; in sldns_b64_ntop_base() local
663 b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123" in sldns_b64_ntop_base()
666 b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123" in sldns_b64_ntop_base()
673 target[o] = b64[src[i] >> 2]; in sldns_b64_ntop_base()
674 target[o+1] = b64[ ((src[i]&0x03)<<4) | (src[i+1]>>4) ]; in sldns_b64_ntop_base()
675 target[o+2] = b64[ ((src[i+1]&0x0f)<<2) | (src[i+2]>>6) ]; in sldns_b64_ntop_base()
676 target[o+3] = b64[ (src[i+2]&0x3f) ]; in sldns_b64_ntop_base()
684 target[o] = b64[src[i] >> 2]; in sldns_b64_ntop_base()
685 target[o+1] = b64[ ((src[i]&0x03)<<4) | (src[i+1]>>4) ]; in sldns_b64_ntop_base()
686 target[o+2] = b64[ ((src[i+1]&0x0f)<<2) ]; in sldns_b64_ntop_base()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/doc/man3/
H A DBIO_push.pod55 I<b64> is a base64 BIO and I<f> is a file BIO.
59 BIO_push(b64, f);
61 is made then the new chain will be I<b64-f>. After making the calls
63 BIO_push(md2, b64);
66 the new chain is I<md1-md2-b64-f>. Data written to I<md1> will be digested
77 will return I<b64> and the new chain will be I<md1-b64-f>.
/netbsd-src/crypto/external/bsd/openssl.old/dist/apps/
H A Dasn1pars.c59 BIO *in = NULL, *b64 = NULL, *derout = NULL; in asn1parse_main() local
198 if ((b64 = BIO_new(BIO_f_base64())) == NULL) in asn1parse_main()
200 BIO_push(b64, in); in asn1parse_main()
202 in = b64; in asn1parse_main()
203 b64 = tmp; in asn1parse_main()
300 BIO_free(b64); in asn1parse_main()
H A Denc.c97 BIO *in = NULL, *out = NULL, *b64 = NULL, *benc = NULL, *rbio = in enc_main() local
399 if ((b64 = BIO_new(BIO_f_base64())) == NULL) in enc_main()
402 BIO_set_callback(b64, BIO_debug_callback); in enc_main()
403 BIO_set_callback_arg(b64, (char *)bio_err); in enc_main()
406 BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL); in enc_main()
408 wbio = BIO_push(b64, wbio); in enc_main()
410 rbio = BIO_push(b64, rbio); in enc_main()
616 BIO_free(b64); in enc_main()
H A Drand.c94 BIO *b64 = BIO_new(BIO_f_base64()); in rand_main() local
95 if (b64 == NULL) in rand_main()
97 out = BIO_push(b64, out); in rand_main()
/netbsd-src/crypto/external/bsd/openssl/dist/apps/
H A Dasn1parse.c64 BIO *in = NULL, *b64 = NULL, *derout = NULL; in asn1parse_main() local
205 if ((b64 = BIO_new(BIO_f_base64())) == NULL) in asn1parse_main()
207 BIO_push(b64, in); in asn1parse_main()
209 in = b64; in asn1parse_main()
210 b64 = tmp; in asn1parse_main()
307 BIO_free(b64); in asn1parse_main()
H A Denc.c118 BIO *in = NULL, *out = NULL, *b64 = NULL, *benc = NULL, *rbio = in enc_main() local
418 if ((b64 = BIO_new(BIO_f_base64())) == NULL) in enc_main()
421 BIO_set_callback_ex(b64, BIO_debug_callback_ex); in enc_main()
422 BIO_set_callback_arg(b64, (char *)bio_err); in enc_main()
425 BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL); in enc_main()
427 wbio = BIO_push(b64, wbio); in enc_main()
429 rbio = BIO_push(b64, rbio); in enc_main()
646 BIO_free(b64); in enc_main()
H A Drand.c110 BIO *b64 = BIO_new(BIO_f_base64()); in rand_main() local
111 if (b64 == NULL) in rand_main()
113 out = BIO_push(b64, out); in rand_main()
/netbsd-src/external/bsd/openldap/dist/libraries/liblutil/
H A Dpasswd.c398 struct berval *b64, in lutil_passwd_string64() argument
425 b64->bv_len = b64len + sc->bv_len; in lutil_passwd_string64()
426 b64->bv_val = ber_memalloc( b64->bv_len + 1 ); in lutil_passwd_string64()
428 if( b64->bv_val == NULL ) { in lutil_passwd_string64()
433 AC_MEMCPY(b64->bv_val, sc->bv_val, sc->bv_len); in lutil_passwd_string64()
437 &b64->bv_val[sc->bv_len], b64len ); in lutil_passwd_string64()
446 b64->bv_len = sc->bv_len + rc; in lutil_passwd_string64()
447 assert( strlen(b64->bv_val) == b64->bv_len ); in lutil_passwd_string64()
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/recipes/
H A D90-test_store.t382 my $b64 = "";
385 $b64 .= $l unless $l =~ /:/;
388 my $der = decode_base64($b64);
389 unless (length($b64) / 4 * 3 - length($der) < 3) {
390 print STDERR "Length error, ",length($b64),
/netbsd-src/lib/libc/gen/
H A DLint_bswap64.c8 bswap64(u_int64_t b64) in bswap64() argument
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/base/
H A Djson.c182 char *b64 = NULL; in base2json() local
189 ret = rk_base64_encode(data->data, data->length, &b64); in base2json()
190 if (ret < 0 || b64 == NULL) in base2json()
196 j->out(j->ctx, b64); /* base64-encode; hope there's no aliasing */ in base2json()
198 free(b64); in base2json()
210 free(b64); in base2json()
213 v = heim_string_ref_create(b64, free); in base2json()
215 free(b64); in base2json()
/netbsd-src/external/ibm-public/postfix/dist/src/util/
H A Ddict_random.c95 VSTRING *b64 = 0; in dict_random_parse_name() local
100 if ((b64 = dict_file_to_b64(dict, arg)) != 0) { in dict_random_parse_name()
101 argv_add(argvp, vstring_str(b64), (char *) 0); in dict_random_parse_name()
/netbsd-src/external/bsd/openldap/dist/libraries/libldap/
H A Dldif.c103 int b64, url; in ldif_parse_line2() local
145 b64 = 0; in ldif_parse_line2()
154 b64 = 1; in ldif_parse_line2()
169 if ( b64 ) { in ldif_parse_line2()
576 int b64 = 0; in ldif_sput_wrap() local
582 b64 = 1; in ldif_sput_wrap()
593 if( !b64 ) { in ldif_sput_wrap()

12345