| /freebsd/crypto/openssl/doc/man3/ |
| H A D | BIO_f_base64.pod | 5 BIO_f_base64 - base64 BIO filter 18 BIO_f_base64() returns the base64 BIO method. This is a filter 19 BIO that base64 encodes any data written through it and decodes 22 Base64 BIOs do not support BIO_gets() or BIO_puts(). 28 For reading, the first line of base64 content should be at most 1024 bytes long 34 lines that contain non-base64 content (whitespace is tolerated and ignored) are 37 the newline) and consists of only (at least one) valid base64 characters plus 39 Decoding stops when base64 padding is encountered, a soft end-of-input 41 complete group of 4 valid base64 characters is decoded, or when an error occurs 42 (e.g. due to input characters other than valid base64 or whitespace). [all …]
|
| H A D | EVP_EncodeInit.pod | 8 EVP_DecodeBlock - EVP base64 encode/decode routines 32 The EVP encode routines provide a high-level interface to base64 encoding and 34 Base64 encoding converts binary data into a printable form that uses 36 bytes of binary data provided 4 bytes of base64 encoded data will be produced 49 For each 48 byte input block encoded 64 bytes of base64 data 105 to 80 base64 characters at a time. 115 0 to indicate that the end of the base64 input has been detected. 116 The soft end-of-input, if present, MUST occur after a multiple of 4 valid base64 122 If any invalid base64 characters are encountered or if the base64 padding 127 ended with base64 padding (B<=>), or that the next 4 byte group starts with the [all …]
|
| /freebsd/contrib/libfido2/man/ |
| H A D | fido2-cred.1 | 199 consists of base64 blobs and UTF-8 strings separated 208 client data hash (base64 blob); 214 user id (base64 blob). 223 client data hash (base64 blob); 229 CBOR encoded authenticator data (base64 blob); 231 credential id (base64 blob); 233 attestation signature (base64 blob); 235 attestation certificate (optional, base64 blob). 244 consists of base64 blobs, UTF-8 strings, and PEM-encoded public 253 client data hash (base64 blob); [all …]
|
| H A D | fido2-assert.1 | 200 consists of base64 blobs and UTF-8 strings separated 209 client data hash (base64 blob); 213 credential id, if credential not resident (base64 blob); 225 client data hash (base64 blob); 229 CBOR encoded authenticator data (base64 blob); 231 assertion signature (base64 blob); 240 consists of base64 blobs and UTF-8 strings separated 249 client data hash (base64 blob); 253 CBOR encoded authenticator data (base64 blob); 255 assertion signature (base64 blob); [all …]
|
| H A D | fido2-token.1 | 162 is the credential's base64-encoded id. 173 holds the blob's base64-encoded 32-byte AES-256 GCM encryption key. 190 is a base64-encoded blob. 199 is the enrollment's template base64-encoded id. 215 holds the blob's base64-encoded 32-byte AES-256 GCM encryption key. 234 is a base64-encoded blob. 246 Prints the credential id (base64-encoded) and public key 255 is a base64-encoded credential id. 301 holds the blob's base64-encoded 32-byte AES-256 GCM encryption key. 322 is a base64-encoded blob. [all …]
|
| /freebsd/secure/lib/libcrypto/man/man3/ |
| H A D | BIO_f_base64.3 | 67 BIO_f_base64 \- base64 BIO filter 78 \&\fBBIO_f_base64()\fR returns the base64 BIO method. This is a filter 79 BIO that base64 encodes any data written through it and decodes 82 Base64 BIOs do not support \fBBIO_gets()\fR or \fBBIO_puts()\fR. 88 For reading, the first line of base64 content should be at most 1024 bytes long 94 lines that contain non\-base64 content (whitespace is tolerated and ignored) are 97 the newline) and consists of only (at least one) valid base64 characters plus 99 Decoding stops when base64 padding is encountered, a soft end\-of\-input 101 complete group of 4 valid base64 characters is decoded, or when an error occurs 102 (e.g. due to input characters other than valid base64 or whitespace). [all …]
|
| H A D | EVP_EncodeInit.3 | 70 EVP_DecodeBlock \- EVP base64 encode/decode routines 94 The EVP encode routines provide a high\-level interface to base64 encoding and 96 Base64 encoding converts binary data into a printable form that uses 98 bytes of binary data provided 4 bytes of base64 encoded data will be produced 111 For each 48 byte input block encoded 64 bytes of base64 data 167 to 80 base64 characters at a time. 177 0 to indicate that the end of the base64 input has been detected. 178 The soft end\-of\-input, if present, MUST occur after a multiple of 4 valid base64 184 If any invalid base64 characters are encountered or if the base64 padding 189 ended with base64 padding (\fB=\fR), or that the next 4 byte group starts with the [all …]
|
| /freebsd/crypto/openssh/openbsd-compat/ |
| H A D | base64.c | 1 /* $OpenBSD: base64.c,v 1.5 2006/10/21 09:55:03 otto Exp $ */ 45 /* OPENBSD ORIGINAL: lib/libc/net/base64.c */ 62 #include "base64.h" 64 static const char Base64[] = variable 81 of which is translated into a single digit in the base64 alphabet. 87 Table 1: The Base64 Alphabet 115 Since all base64 input is an integral number of octets, only the 153 target[datalength++] = Base64[output[0]]; in b64_ntop() 154 target[datalength++] = Base64[output[1]]; in b64_ntop() 155 target[datalength++] = Base64[output[2]]; in b64_ntop() [all …]
|
| /freebsd/contrib/wireguard-tools/ |
| H A D | pubkey.c | 17 char base64[WG_KEY_LEN_BASE64]; in pubkey_main() local 25 if (fread(base64, 1, sizeof(base64) - 1, stdin) != sizeof(base64) - 1) { in pubkey_main() 30 base64[WG_KEY_LEN_BASE64 - 1] = '\0'; in pubkey_main() 42 if (!key_from_base64(key, base64)) { in pubkey_main() 47 key_to_base64(base64, key); in pubkey_main() 48 puts(base64); in pubkey_main()
|
| H A D | encoding.c | 5 * This is a specialized constant-time base64/hex implementation that resists side-channel attacks. 24 void key_to_base64(char base64[static WG_KEY_LEN_BASE64], const uint8_t key[static WG_KEY_LEN]) in key_to_base64() 29 encode_base64(&base64[i * 4], &key[i * 3]); in key_to_base64() 30 encode_base64(&base64[i * 4], (const uint8_t[]){ key[i * 3 + 0], key[i * 3 + 1], 0 }); in key_to_base64() 31 base64[WG_KEY_LEN_BASE64 - 2] = '='; in key_to_base64() 32 base64[WG_KEY_LEN_BASE64 - 1] = '\0'; in key_to_base64() 50 bool key_from_base64(uint8_t key[static WG_KEY_LEN], const char *base64) in key_from_base64() argument 56 if (strlen(base64) != WG_KEY_LEN_BASE64 - 1 || base64[WG_KEY_LEN_BASE64 - 2] != '=') in key_from_base64() 60 val = decode_base64(&base64[i * 4]); in key_from_base64() 66 …val = decode_base64((const char[]){ base64[i * 4 + 0], base64[i * 4 + 1], base64[i * 4 + 2], 'A' }… in key_from_base64()
|
| H A D | showconf.c | 23 char base64[WG_KEY_LEN_BASE64]; in showconf_main() local 46 key_to_base64(base64, device->private_key); in showconf_main() 47 printf("PrivateKey = %s\n", base64); in showconf_main() 51 key_to_base64(base64, peer->public_key); in showconf_main() 52 printf("[Peer]\nPublicKey = %s\n", base64); in showconf_main() 54 key_to_base64(base64, peer->preshared_key); in showconf_main() 55 printf("PresharedKey = %s\n", base64); in showconf_main()
|
| /freebsd/lib/libc/net/ |
| H A D | base64.c | 58 static const char Base64[] = variable 75 of which is translated into a single digit in the base64 alphabet. 81 Table 1: The Base64 Alphabet 109 Since all base64 input is an integral number of octets, only the 149 target[datalength++] = Base64[output[0]]; in b64_ntop() 150 target[datalength++] = Base64[output[1]]; in b64_ntop() 151 target[datalength++] = Base64[output[2]]; in b64_ntop() 152 target[datalength++] = Base64[output[3]]; in b64_ntop() 171 target[datalength++] = Base64[output[0]]; in b64_ntop() 172 target[datalength++] = Base64[output[1]]; in b64_ntop() [all …]
|
| /freebsd/usr.bin/bintrans/ |
| H A D | bintrans.1 | 37 .Nm base64 68 .Nm base64 97 .Nm base64 98 utility acts as a base64 decoder when passed the 103 flag and as a base64 encoder otherwise. 104 As a decoder it only accepts raw base64 input 106 .Nm base64 120 are accepted for compatibility with GNU base64, 159 Use the Base64 method of encoding, rather than the traditional 182 flag, decode Base64 inpu [all...] |
| H A D | bintrans.c | 49 uuencode, uudecode, b64encode, b64decode, base64, qp enumerator 72 case base64: in main() 82 " %1$s <base64> ...\n" in main() 98 DESIGNATE(base64), in search() 111 (void)fputs("usage: base64 [-w col | --wrap=col] " in usage_base64() 113 " base64 --help\n" in usage_base64() 114 " base64 --version\n", stderr); in usage_base64() 121 (void)fputs("FreeBSD base64\n", stderr); in version_base64()
|
| H A D | uuencode.c | 86 bool base64; in main_encode() local 90 base64 = false; in main_encode() 94 base64 = 1; in main_encode() 99 base64 = true; in main_encode() 143 if (base64) in main_encode() 156 * Copy from in to out, encoding in base64 as you go along. 173 fprintf(output, "begin-base64 %o %s\n", mode, *av); in base64_encode() 177 errx(1, "b64_ntop: error encoding base64"); in base64_encode()
|
| H A D | uudecode.c | 62 static bool base64, cflag, iflag, oflag, pflag, rflag, sflag; variable 73 base64 = 1; in main_base64_decode() 93 base64 = true; in main_decode() 106 base64 = true; in main_decode() 166 if (base64) in decode() 195 base64 = false; in decode2() 201 if (strncmp(p, "begin-base64 ", 13) == 0) { in decode2() 202 base64 = true; in decode2() 305 if (base64) in decode2() 454 * Base64 encoded strings have the following in base64_decode() [all …]
|
| /freebsd/crypto/openssl/crypto/evp/ |
| H A D | bio_b64.c | 41 EVP_ENCODE_CTX *base64; member 48 "base64 encoding", 75 ctx->base64 = EVP_ENCODE_CTX_new(); in b64_new() 76 if (ctx->base64 == NULL) { in b64_new() 98 EVP_ENCODE_CTX_free(ctx->base64); in b64_free() 108 * aren't exclusively composed of valid Base64 characters (followed by <CRLF> 109 * or <LF>). Once a valid Base64 line is found, `ctx->start` is set to 0 and 110 * lines are processed until EOF or the first line that contains invalid Base64 136 EVP_DecodeInit(ctx->base64); in b64_read() 178 /* Incomplete final Base64 chunk in the decoder is an error */ in b64_read() [all …]
|
| /freebsd/contrib/ldns/compat/ |
| H A D | b64_pton.c | 47 static const char Base64[] = variable 64 of which is translated into a single digit in the base64 alphabet. 70 Table 1: The Base64 Alphabet 98 Since all base64 input is an integral number of octets, only the 141 pos = strchr(Base64, ch); in ldns_b64_pton() 143 /* A non-base64 character. */ in ldns_b64_pton() 152 target[tarindex] = (pos - Base64) << 2; in ldns_b64_pton() 160 target[tarindex] |= (pos - Base64) >> 4; in ldns_b64_pton() 161 target[tarindex+1] = ((pos - Base64) & 0x0f) in ldns_b64_pton() 171 target[tarindex] |= (pos - Base64) >> 2; in ldns_b64_pton() [all …]
|
| H A D | b64_ntop.c | 47 static const char Base64[] = variable 64 of which is translated into a single digit in the base64 alphabet. 70 Table 1: The Base64 Alphabet 98 Since all base64 input is an integral number of octets, only the 148 target[datalength++] = Base64[output[0]]; in ldns_b64_ntop() 149 target[datalength++] = Base64[output[1]]; in ldns_b64_ntop() 150 target[datalength++] = Base64[output[2]]; in ldns_b64_ntop() 151 target[datalength++] = Base64[output[3]]; in ldns_b64_ntop() 171 target[datalength++] = Base64[output[0]]; in ldns_b64_ntop() 172 target[datalength++] = Base64[output[1]]; in ldns_b64_ntop() [all …]
|
| /freebsd/crypto/openssh/ |
| H A D | .depend | 5 …ig.h defines.h platform.h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/s… 6 …ig.h defines.h platform.h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/s… 7 …ig.h defines.h platform.h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/s… 8 …ig.h defines.h platform.h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/s… 9 …ig.h defines.h platform.h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/s… 10 …ig.h defines.h platform.h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/s… 11 …ig.h defines.h platform.h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/s… 12 …ig.h defines.h platform.h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/s… 13 …ig.h defines.h platform.h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/s… 14 …ig.h defines.h platform.h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/s… [all …]
|
| /freebsd/secure/usr.bin/openssl/man/ |
| H A D | openssl-enc.1 | 81 [\fB\-base64\fR] 117 or explicitly provided. Base64 encoding or decoding can also be performed 151 Base64 process the data. This means that if encryption is taking place 152 the data is base64 encoded after encryption. If decryption is set then 153 the input data is base64 decoded before being decrypted. 158 .IP \fB\-base64\fR 4 159 .IX Item "-base64" 163 If the \fB\-a\fR option is set then base64 encoding produces output without any 164 newline character, and base64 decoding does not require any newlines. 383 \& base64 Base 64 [all …]
|
| /freebsd/contrib/libarchive/libarchive/ |
| H A D | archive_write_add_filter_b64encode.c | 69 static const char base64[] = { variable 185 archive_string_sprintf(&b64encode->encoded_buff, "begin-base64 %o %s\n", in archive_filter_b64encode_open() 198 archive_strappend_char(as, base64[c]); in la_b64_encode() 200 archive_strappend_char(as, base64[c]); in la_b64_encode() 202 archive_strappend_char(as, base64[c]); in la_b64_encode() 204 archive_strappend_char(as, base64[c]); in la_b64_encode() 208 archive_strappend_char(as, base64[c]); in la_b64_encode() 211 archive_strappend_char(as, base64[c]); in la_b64_encode() 216 archive_strappend_char(as, base64[c]); in la_b64_encode() 218 archive_strappend_char(as, base64[c]); in la_b64_encode()
|
| /freebsd/crypto/openssl/doc/man1/ |
| H A D | openssl-enc.pod.in | 21 [B<-base64>] 53 or explicitly provided. Base64 encoding or decoding can also be performed 99 Base64 process the data. This means that if encryption is taking place 100 the data is base64 encoded after encryption. If decryption is set then 101 the input data is base64 decoded before being decrypted. 107 =item B<-base64> 113 If the B<-a> option is set then base64 encoding produces output without any 114 newline character, and base64 decoding does not require any newlines. 346 base64 Base 64 455 Just base64 encode a binary file: [all …]
|
| /freebsd/contrib/wireguard-tools/man/ |
| H A D | wg.8 | 58 …fP \fI<fwmark>\fP] [\fIprivate-key\fP \fI<file-path>\fP] [\fIpeer\fP \fI<base64-public-key>\fP [\f… 110 Generates a random \fIprivate\fP key in base64 and prints it to 114 Generates a random \fIpreshared\fP key in base64 and prints it to 118 Calculates a \fIpublic\fP key and prints it in base64 to standard 120 \fIgenkey\fP) given in base64 on standard input. 139 PrivateKey \(em a base64 private key generated by \fIwg genkey\fP. Required. 149 PublicKey \(em a base64 public key calculated by \fIwg pubkey\fP from a 153 PresharedKey \(em a base64 preshared key generated by \fIwg genpsk\fP. Optional,
|
| /freebsd/contrib/libfido2/tools/ |
| H A D | CMakeLists.txt | 32 set_source_files_properties(assert_get.c assert_verify.c base64.c bio.c 42 base64.c 51 base64.c 58 base64.c
|