| /freebsd-14.2/sys/contrib/libsodium/test/default/ |
| H A D | codecs.c | 10 const char *b64; in main() local 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() 153 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), NULL, NULL, in main() 155 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), NULL, NULL, in main() 157 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), " \r\n", NULL, in main() 159 assert(sodium_base642bin(buf1, sizeof buf1, b64, strlen(b64), NULL, NULL, in main() [all …]
|
| /freebsd-14.2/sys/contrib/libsodium/src/libsodium/sodium/ |
| H A D | codecs.c | 179 sodium_bin2base64(char * const b64, const size_t b64_maxlen, in sodium_bin2base64() argument 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() 267 const char * const b64, const size_t b64_len, in sodium_base642bin() argument 283 c = b64[b64_pos]; in sodium_base642bin() 313 ret = _sodium_base642bin_skip_padding(b64, b64_len, &b64_pos, ignore, in sodium_base642bin() 319 while (b64_pos < b64_len && strchr(ignore, b64[b64_pos]) != NULL) { in sodium_base642bin() [all …]
|
| /freebsd-14.2/crypto/openssl/doc/man3/ |
| H A D | BIO_f_base64.pod | 56 BIO *bio, *b64; 59 b64 = BIO_new(BIO_f_base64()); 61 BIO_push(b64, bio); 62 BIO_write(b64, message, strlen(message)); 63 BIO_flush(b64); 65 BIO_free_all(b64); 70 BIO *bio, *b64, *bio_out; 74 b64 = BIO_new(BIO_f_base64()); 77 BIO_push(b64, bio); 78 while ((inlen = BIO_read(b64, inbuf, 512)) > 0) [all …]
|
| H A D | BIO_push.pod | 55 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>.
|
| /freebsd-14.2/crypto/openssh/ |
| H A D | sshbuf-misc.c | 94 sshbuf_dtob64(const struct sshbuf *d, struct sshbuf *b64, int wrap) in sshbuf_dtob64() argument 100 if (d == NULL || b64 == NULL || sshbuf_len(d) >= SIZE_MAX / 2) in sshbuf_dtob64() 113 if ((r = sshbuf_put_u8(b64, s[i])) != 0) in sshbuf_dtob64() 115 if (i % 70 == 69 && (r = sshbuf_put_u8(b64, '\n')) != 0) in sshbuf_dtob64() 118 if ((i - 1) % 70 != 69 && (r = sshbuf_put_u8(b64, '\n')) != 0) in sshbuf_dtob64() 121 if ((r = sshbuf_put(b64, s, strlen(s))) != 0) in sshbuf_dtob64() 149 sshbuf_b64tod(struct sshbuf *buf, const char *b64) in sshbuf_b64tod() argument 151 size_t plen = strlen(b64); in sshbuf_b64tod() 159 if ((nlen = b64_pton(b64, p, plen)) < 0) { in sshbuf_b64tod() 172 sshbuf_dtourlb64(const struct sshbuf *d, struct sshbuf *b64, int wrap) in sshbuf_dtourlb64() argument [all …]
|
| H A D | sshbuf.h | 240 int sshbuf_dtob64(const struct sshbuf *d, struct sshbuf *b64, int wrap); 242 int sshbuf_dtourlb64(const struct sshbuf *d, struct sshbuf *b64, int wrap); 245 int sshbuf_b64tod(struct sshbuf *buf, const char *b64);
|
| /freebsd-14.2/lib/libiscsiutil/ |
| H A D | chap.c | 104 chap_b642bin(const char *b64, void **binp, size_t *bin_lenp) in chap_b642bin() argument 109 b64_len = strlen(b64); in chap_b642bin() 115 bin_len = b64_pton(b64, bin, bin_len); in chap_b642bin() 189 unsigned char *b64, *tmp; in chap_bin2hex() local 193 b64 = malloc(b64_len); in chap_bin2hex() 194 if (b64 == NULL) in chap_bin2hex() 197 tmp = b64; in chap_bin2hex() 201 return (b64); in chap_bin2hex()
|
| /freebsd-14.2/contrib/wpa/hostapd/ |
| H A D | sae_pk_gen.c | 25 char *b64 = NULL, *pw = NULL, *pos, *src; in main() local 134 b64 = base64_encode(der, der_len, NULL); in main() 135 if (!b64) in main() 137 src = pos = b64; in main() 175 printf("sae_password=%s|pk=%s:%s\n", pw, m_hex, b64); in main() 190 os_free(b64); in main()
|
| /freebsd-14.2/contrib/unbound/sldns/ |
| H A D | parseutil.c | 668 char* b64; in sldns_b64_ntop_base() local 672 b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123" in sldns_b64_ntop_base() 682 target[o] = b64[src[i] >> 2]; in sldns_b64_ntop_base() 683 target[o+1] = b64[ ((src[i]&0x03)<<4) | (src[i+1]>>4) ]; in sldns_b64_ntop_base() 684 target[o+2] = b64[ ((src[i+1]&0x0f)<<2) | (src[i+2]>>6) ]; in sldns_b64_ntop_base() 685 target[o+3] = b64[ (src[i+2]&0x3f) ]; in sldns_b64_ntop_base() 693 target[o] = b64[src[i] >> 2]; in sldns_b64_ntop_base() 694 target[o+1] = b64[ ((src[i]&0x03)<<4) | (src[i+1]>>4) ]; in sldns_b64_ntop_base() 695 target[o+2] = b64[ ((src[i+1]&0x0f)<<2) ]; in sldns_b64_ntop_base() 706 target[o] = b64[src[i] >> 2]; in sldns_b64_ntop_base() [all …]
|
| /freebsd-14.2/contrib/wpa/src/utils/ |
| H A D | json.c | 634 char *b64; in json_add_base64url() local 636 b64 = base64_url_encode(val, len, NULL); in json_add_base64url() 637 if (!b64) in json_add_base64url() 639 json_add_string(json, name, b64); in json_add_base64url() 640 os_free(b64); in json_add_base64url() 648 char *b64; in json_add_base64() local 650 b64 = base64_encode_no_lf(val, len, NULL); in json_add_base64() 651 if (!b64) in json_add_base64() 653 json_add_string(json, name, b64); in json_add_base64() 654 os_free(b64); in json_add_base64()
|
| /freebsd-14.2/sys/crypto/siphash/ |
| H A D | siphash.c | 63 ctx->buf.b64 = 0; in SipHash_InitX() 100 x = MIN(len, sizeof(ctx->buf.b64) - ctx->buflen); in SipBuf() 108 ctx->v[3] ^= le64toh(ctx->buf.b64); in SipBuf() 110 ctx->v[0] ^= le64toh(ctx->buf.b64); in SipBuf() 111 ctx->buf.b64 = 0; in SipBuf()
|
| H A D | siphash.h | 55 uint64_t b64; member
|
| /freebsd-14.2/crypto/openssl/apps/ |
| H A D | asn1parse.c | 64 BIO *in = NULL, *b64 = NULL, *derout = NULL; in asn1parse_main() local 206 if ((b64 = BIO_new(BIO_f_base64())) == NULL) in asn1parse_main() 208 BIO_push(b64, in); in asn1parse_main() 210 in = b64; in asn1parse_main() 211 b64 = tmp; in asn1parse_main() 308 BIO_free(b64); in asn1parse_main()
|
| H A D | rand.c | 110 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()
|
| H A D | enc.c | 118 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()
|
| /freebsd-14.2/crypto/openssl/test/recipes/ |
| H A D | 90-test_store.t | 492 my $b64 = ""; 495 $b64 .= $l unless $l =~ /:/; 498 my $der = decode_base64($b64); 499 unless (length($b64) / 4 * 3 - length($der) < 3) { 500 print STDERR "Length error, ",length($b64),
|
| /freebsd-14.2/contrib/file/magic/Magdir/ |
| H A D | ber | 30 >>>&64 search/b64 \x5f\x81\x49\x01\x03\x5f\x81\x3d\x01 38 >>&64 search/b64 \x5f\x81\x49\x01\x03\x5f\x81\x3d\x01 56 >>&64 search/b64 \x5f\x81\x49\x01\x03\x5f\x81\x3d\x01
|
| /freebsd-14.2/crypto/openssl/crypto/asn1/ |
| H A D | asn_mime.c | 108 BIO *b64; in B64_write_ASN1() local 110 b64 = BIO_new(BIO_f_base64()); in B64_write_ASN1() 111 if (b64 == NULL) { in B64_write_ASN1() 118 out = BIO_push(b64, out); in B64_write_ASN1() 122 BIO_free(b64); in B64_write_ASN1() 141 BIO *b64; in b64_read_asn1() local 144 if ((b64 = BIO_new(BIO_f_base64())) == NULL) { in b64_read_asn1() 148 bio = BIO_push(b64, bio); in b64_read_asn1() 154 BIO_free(b64); in b64_read_asn1()
|
| /freebsd-14.2/sys/contrib/libsodium/src/libsodium/include/sodium/ |
| H A D | utils.h | 85 char *sodium_bin2base64(char * const b64, const size_t b64_maxlen, 91 const char * const b64, const size_t b64_len,
|
| /freebsd-14.2/crypto/openssl/apps/lib/ |
| H A D | http_server.c | 292 BIO *cbio = *pcbio, *getbio = NULL, *b64 = NULL; in http_server_get_asn1_req() local 398 || (b64 = BIO_new(BIO_f_base64())) == NULL) { in http_server_get_asn1_req() 404 BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL); in http_server_get_asn1_req() 405 getbio = BIO_push(b64, getbio); in http_server_get_asn1_req()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXIntrinsics.td | 502 ".b64 $state, [$addr];"), 507 ".b64 $state, [$addr];"), 556 "mbarrier.pending_count.b64 $res, $state;", 1344 "mov.b64 \t{$dst, %temp}, $src0;\n\t", 1350 "mov.b64 \t{%temp, $dst}, $src0;\n\t", 2391 "{{ .reg .b64 %tmp;\n\t" 2406 "{{ .reg .b64 %tmp;\n\t" 2447 "mov.b64 \t$r, $s;", 2609 "mov.b64 \t{$dst,%dummy}, $src;\n\t", 4126 : SULD_2D_V2<"suld.b.2d.v2.b64.trap", Int64Regs>; [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/config/ |
| H A D | lib-ld.m4 | 131 [# The compiler produces 64-bit code. Add option '-b64' so that the 134 *" -b64 "*) ;; 135 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
|
| /freebsd-14.2/sys/crypto/ |
| H A D | sha1.h | 49 uint64_t b64[1]; member
|
| /freebsd-14.2/contrib/wpa/src/eap_server/ |
| H A D | tncs.c | 182 char *b64; in TNC_TNCS_SendMessage() local 198 b64 = base64_encode(message, messageLength, &b64len); in TNC_TNCS_SendMessage() 199 if (b64 == NULL) in TNC_TNCS_SendMessage() 206 os_free(b64); in TNC_TNCS_SendMessage() 215 (unsigned int) messageType, b64); in TNC_TNCS_SendMessage() 217 os_free(b64); in TNC_TNCS_SendMessage()
|
| /freebsd-14.2/contrib/wpa/src/eap_peer/ |
| H A D | tncc.c | 147 char *b64; in TNC_TNCC_SendMessage() local 159 b64 = base64_encode(message, messageLength, &b64len); in TNC_TNCC_SendMessage() 160 if (b64 == NULL) in TNC_TNCC_SendMessage() 168 os_free(b64); in TNC_TNCC_SendMessage() 176 (unsigned int) messageType, b64); in TNC_TNCC_SendMessage() 178 os_free(b64); in TNC_TNCC_SendMessage()
|