Home
last modified time | relevance | path

Searched refs:base64 (Results 1 – 25 of 112) sorted by relevance

12345

/freebsd/contrib/wireguard-tools/
H A Dpubkey.c17 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 Dencoding.c24 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 Dshowconf.c23 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()
H A Dgenkey.c78 char base64[WG_KEY_LEN_BASE64]; in genkey_main() local
96 key_to_base64(base64, key); in genkey_main()
97 puts(base64); in genkey_main()
H A Dencoding.h16 void key_to_base64(char base64[static WG_KEY_LEN_BASE64], const uint8_t key[static WG_KEY_LEN]);
17 bool key_from_base64(uint8_t key[static WG_KEY_LEN], const char *base64);
/freebsd/crypto/openssl/doc/man3/
H A DBIO_f_base64.pod5 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
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).
50 BIO_flush() on a base64 BIO that is being written through is
[all …]
H A DEVP_EncodeInit.pod8 EVP_DecodeBlock - EVP base64 encode/decode routines
32 The EVP encode routines provide a high-level interface to base64 encoding and
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
131 For every 4 valid base64 bytes processed (ignoring whitespace, carriage returns
[all …]
H A DPEM_read_bio_ex.pod22 the possibly encrypted data, and the binary data payload (after base64 decoding).
34 If PEM_FLAG_ONLY_B64 is set, all characters are required to be valid base64
35 characters (or newlines); non-base64 characters are treated as end of input.
/freebsd/contrib/googletest/googlemock/src/
H A Dgmock-internal-utils.cc207 constexpr char UnBase64Impl(char c, const char* const base64, char carry) { in UnBase64Impl() argument
208 return *base64 == 0 ? static_cast<char>(65) in UnBase64Impl()
209 : *base64 == c in UnBase64Impl()
211 : UnBase64Impl(c, base64 + 1, static_cast<char>(carry + 1)); in UnBase64Impl()
216 const char* const base64) { in UnBase64Impl() argument
218 {UnBase64Impl(UndoWebSafeEncoding(static_cast<char>(I)), base64, 0)...}}; in UnBase64Impl()
221 constexpr std::array<char, 256> UnBase64(const char* const base64) { in UnBase64() argument
222 return UnBase64Impl(std::make_index_sequence<256>{}, base64); in UnBase64()
/freebsd/contrib/libarchive/libarchive/
H A Darchive_write_add_filter_b64encode.c64 static const char base64[] = { variable
182 archive_strappend_char(as, base64[c]); in la_b64_encode()
184 archive_strappend_char(as, base64[c]); in la_b64_encode()
186 archive_strappend_char(as, base64[c]); in la_b64_encode()
188 archive_strappend_char(as, base64[c]); in la_b64_encode()
192 archive_strappend_char(as, base64[c]); in la_b64_encode()
195 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()
H A Darchive_read_support_filter_uu.c139 static const unsigned char base64[256] = { variable
344 if (!base64[*b++]) in uudecode_bidder_bid()
354 if (avail > 0 && base64[*b]) in uudecode_bidder_bid()
680 if (!base64[b[0]] || !base64[b[1]]) in uudecode_filter_read()
690 if (!base64[*b]) in uudecode_filter_read()
699 if (!base64[*b]) in uudecode_filter_read()
/freebsd/crypto/openssl/crypto/evp/
H A Dbio_b64.c41 EVP_ENCODE_CTX *base64; member
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()
136 EVP_DecodeInit(ctx->base64); in b64_read()
180 if (EVP_DecodeFinal(ctx->base64, NULL, &num) < 0) in b64_read()
182 EVP_DecodeInit(ctx->base64); in b64_read()
221 k = EVP_DecodeUpdate(ctx->base64, ctx->buf, &num, p, q - p); in b64_read()
222 EVP_DecodeInit(ctx->base64); in b64_read()
279 i = EVP_DecodeUpdate(ctx->base64, ctx->buf, &ctx->buf_len, in b64_read()
[all …]
/freebsd/usr.bin/bintrans/
H A Duudecode.c62 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()
202 base64 = true; in decode2()
305 if (base64) in decode2()
H A Duuencode.c86 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()
H A Dbintrans.c49 uuencode, uudecode, b64encode, b64decode, base64, qp enumerator
72 case base64: in main()
98 DESIGNATE(base64), in search()
H A DMakefile10 LINKS+= ${BINDIR}/bintrans ${BINDIR}/base64
16 b64encode.1 base64.1
/freebsd/contrib/netbsd-tests/usr.bin/gzip/
H A Dt_gzip.sh60 begin-base64 644 truncated.gz
77 begin-base64 644 crcerror.gz
94 begin-base64 644 good.gz
/freebsd/contrib/libfido2/tools/
H A DCMakeLists.txt32 set_source_files_properties(assert_get.c assert_verify.c base64.c bio.c
42 base64.c
51 base64.c
58 base64.c
/freebsd/crypto/krb5/src/util/support/
H A DMakefile.in92 base64.o \
122 $(OUTPRE)base64.$(OBJEXT) \
163 $(srcdir)/base64.c \
240 t_base64: t_base64.o base64.o
241 $(CC_LINK) -o $@ t_base64.o base64.o
243 T_JSON_OBJS= t_json.o json.o base64.o k5buf.o zap.o $(PRINTF_ST_OBJ)
/freebsd/usr.bin/bintrans/tests/
H A Dregress.sh7 REGRESSION_TEST(`base64', `uuencode -m regress.in <${SRCDIR}/regress.in')
9 REGRESSION_TEST_ONE(`uudecode -p <${SRCDIR}/regress.base64.in', `base64')
H A DMakefile7 ${PACKAGE}FILES+= regress.base64.in regress.base64.out
/freebsd/crypto/openssh/
H A D.depend5 …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/crypto/openssl/apps/
H A Denc.c162 int base64 = 0, informat = FORMAT_BINARY, outformat = FORMAT_BINARY; in enc_main() local
189 base64 = 1; in enc_main()
270 base64 = 1; in enc_main()
394 if (base64 && bsize < 80) in enc_main()
401 base64 = 0; in enc_main()
404 base64 = 0; in enc_main()
406 base64 = 0; in enc_main()
408 if (base64) { in enc_main()
526 if (base64) { in enc_main()
/freebsd/contrib/file/magic/Magdir/
H A Dssl39 # Using the -a or -base64 option, OpenSSL will base64-encode the data.
40 0 string U2FsdGVkX1 openssl enc'd data with salted password, base64 encoded
/freebsd/lib/libiconv_modules/UTF7/
H A Dcitrus_utf7.c110 static const char base64[] = variable
312 psenc->ch[psenc->chlen++] = base64[i]; in _citrus_UTF7_utf16tomb()
336 psenc->ch[psenc->chlen++] = base64[i]; in _citrus_UTF7_utf16tomb()
400 psenc->ch[psenc->chlen++] = base64[pos]; in _citrus_UTF7_put_state_reset()
479 FILL(base64, (s - base64) + 1); in _citrus_UTF7_encoding_module_init()

12345