/freebsd/contrib/expat/lib/ |
H A D | xmltok_impl.c | 45 # define IS_INVALID_CHAR(enc, ptr, n) (0) argument 52 if (IS_INVALID_CHAR(enc, ptr, n)) { \ 69 # define CHECK_NAME_CASE(n, enc, ptr, end, nextTokPtr) \ argument 73 if (IS_INVALID_CHAR(enc, ptr, n) || ! IS_NAME_CHAR(enc, ptr, n)) { \ 80 # define CHECK_NAME_CASES(enc, ptr, end, nextTokPtr) \ argument 82 if (! IS_NAME_CHAR_MINBPC(enc, ptr)) { \ 92 ptr += MINBPC(enc); \ 94 CHECK_NAME_CASE(2, enc, ptr, end, nextTokPtr) \ 95 CHECK_NAME_CASE(3, enc, ptr, end, nextTokPtr) \ 96 CHECK_NAME_CASE(4, enc, ptr, end, nextTokPtr) [all …]
|
H A D | xmltok.h | 179 int(PTRCALL *getAtts)(const ENCODING *enc, const char *ptr, int attsMax, 181 int(PTRFASTCALL *charRefNumber)(const ENCODING *enc, const char *ptr); 186 int(PTRCALL *isPublicId)(const ENCODING *enc, const char *ptr, 188 enum XML_Convert_Result(PTRCALL *utf8Convert)(const ENCODING *enc, 192 enum XML_Convert_Result(PTRCALL *utf16Convert)(const ENCODING *enc, 223 #define XmlTok(enc, state, ptr, end, nextTokPtr) \ argument 224 (((enc)->scanners[state])(enc, ptr, end, nextTokPtr)) 226 #define XmlPrologTok(enc, ptr, end, nextTokPtr) \ argument 227 XmlTok(enc, XML_PROLOG_STATE, ptr, end, nextTokPtr) 229 #define XmlContentTok(enc, ptr, end, nextTokPtr) \ argument [all …]
|
H A D | xmltok.c | 135 isNever(const ENCODING *enc, const char *p) { in isNever() argument 136 UNUSED_P(enc); in isNever() 142 utf8_isName2(const ENCODING *enc, const char *p) { in utf8_isName2() argument 143 UNUSED_P(enc); in utf8_isName2() 148 utf8_isName3(const ENCODING *enc, const char *p) { in utf8_isName3() argument 149 UNUSED_P(enc); in utf8_isName3() 156 utf8_isNmstrt2(const ENCODING *enc, const char *p) { in utf8_isNmstrt2() argument 157 UNUSED_P(enc); in utf8_isNmstrt2() 162 utf8_isNmstrt3(const ENCODING *enc, const char *p) { in utf8_isNmstrt3() argument 163 UNUSED_P(enc); in utf8_isNmstrt3() [all …]
|
H A D | xmlrole.c | 111 # define MIN_BYTES_PER_CHAR(enc) ((enc)->minBytesPerChar) argument 124 const ENCODING *enc); 142 const ENCODING *enc) { in prolog0() argument 159 if (! XmlNameMatchesAscii(enc, ptr + 2 * MIN_BYTES_PER_CHAR(enc), end, in prolog0() 173 const ENCODING *enc) { in prolog1() argument 191 if (! XmlNameMatchesAscii(enc, ptr + 2 * MIN_BYTES_PER_CHAR(enc), end, in prolog1() 205 const ENCODING *enc) { in prolog2() argument 208 UNUSED_P(enc); in prolog2() 225 const ENCODING *enc) { in doctype0() argument 228 UNUSED_P(enc); in doctype0() [all …]
|
H A D | xmltok_ns.c | 41 return &ns(internal_utf8_encoding).enc; in NS() 47 return &ns(internal_little2_encoding).enc; in NS() 49 return &ns(internal_big2_encoding).enc; in NS() 52 return (*(const char *)&n ? &ns(internal_little2_encoding).enc in NS() 53 : &ns(internal_big2_encoding).enc); in NS() 58 &ns(latin1_encoding).enc, &ns(ascii_encoding).enc, 59 &ns(utf8_encoding).enc, &ns(big2_encoding).enc, 60 &ns(big2_encoding).enc, &ns(little2_encoding).enc, 61 &ns(utf8_encoding).enc /* NO_ENC */ 65 NS(initScanProlog)(const ENCODING *enc, const char *ptr, const char *end, in NS() [all …]
|
H A D | xmlparse.c | 174 # define MUST_CONVERT(enc, s) (! (enc)->isUtf16 || (((uintptr_t)(s)) & 1)) argument 182 # define MUST_CONVERT(enc, s) (! (enc)->isUtf8) argument 478 static enum XML_Error doProlog(XML_Parser parser, const ENCODING *enc, 486 const ENCODING *enc, const char *start, 489 static enum XML_Error doCdataSection(XML_Parser parser, const ENCODING *enc, 494 static enum XML_Error doIgnoreSection(XML_Parser parser, const ENCODING *enc, 500 static enum XML_Error storeAtts(XML_Parser parser, const ENCODING *enc, 511 const ENCODING *enc, XML_Bool isCdata, 516 const ENCODING *enc, 520 static ATTRIBUTE_ID *getAttributeId(XML_Parser parser, const ENCODING *enc, [all …]
|
/freebsd/sys/cam/scsi/ |
H A D | scsi_enc.c | 78 SYSCTL_NODE(_kern_cam, OID_AUTO, enc, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, 97 PERIPHDRIVER_DECLARE(enc, encdriver); 129 struct enc_softc *enc; in enc_devgonecb() local 136 enc = (struct enc_softc *)periph->softc; in enc_devgonecb() 143 for (i = 0; i < enc->open_count; i++) in enc_devgonecb() 146 enc->open_count = 0; in enc_devgonecb() 166 struct enc_softc *enc; in enc_oninvalidate() local 168 enc = periph->softc; in enc_oninvalidate() 170 enc->enc_flags |= ENC_FLAG_INVALID; in enc_oninvalidate() 173 if (enc->enc_vec.softc_invalidate != NULL) in enc_oninvalidate() [all …]
|
H A D | scsi_enc_ses.c | 185 enc_softc_t *enc; member 413 ses_iter_init(enc_softc_t *enc, enc_cache_t *cache, struct ses_iterator *iter) in ses_iter_init() argument 415 iter->enc = enc; in ses_iter_init() 557 ses_cache_free_elm_addlstatus(enc_softc_t *enc, enc_cache_t *cache) in ses_cache_free_elm_addlstatus() argument 564 ENC_DLOG(enc, "%s: enter\n", __func__); in ses_cache_free_elm_addlstatus() 580 other_ses_cache = enc_other_cache(enc, cache)->private; in ses_cache_free_elm_addlstatus() 588 ses_cache_free_elm_descs(enc_softc_t *enc, enc_cache_t *cache) in ses_cache_free_elm_descs() argument 595 ENC_DLOG(enc, "%s: enter\n", __func__); in ses_cache_free_elm_descs() 610 other_ses_cache = enc_other_cache(enc, cache)->private; in ses_cache_free_elm_descs() 618 ses_cache_free_status(enc_softc_t *enc, enc_cache_t *cache) in ses_cache_free_status() argument [all …]
|
H A D | scsi_enc_safte.c | 54 static int safte_set_enc_status(enc_softc_t *enc, uint8_t encstat, int slpflag); 222 ENC_VLOG(enc, safte_2little, x, __LINE__);\ 231 safte_fill_read_buf_io(enc_softc_t *enc, struct enc_fsm_state *state, in safte_fill_read_buf_io() argument 236 enc->enc_cache.nelms == 0) { in safte_fill_read_buf_io() 237 enc_update_request(enc, SAFTE_UPDATE_READCONFIG); in safte_fill_read_buf_io() 241 if (enc->enc_type == ENC_SEMB_SAFT) { in safte_fill_read_buf_io() 256 safte_process_config(enc_softc_t *enc, struct enc_fsm_state *state, in safte_process_config() argument 263 cfg = enc->enc_private; in safte_process_config() 269 ENC_VLOG(enc, "too little data (%d) for configuration\n", in safte_process_config() 283 ENC_VLOG(enc, "Nfans %d Npwr %d Nslots %d Lck %d Ntherm %d Nspkrs %d " in safte_process_config() [all …]
|
/freebsd/crypto/openssl/crypto/asn1/ |
H A D | tasn_utl.c | 139 ASN1_ENCODING *enc = asn1_get_enc_ptr(pval, it); in ossl_asn1_enc_init() local 141 if (enc != NULL) { in ossl_asn1_enc_init() 142 enc->enc = NULL; in ossl_asn1_enc_init() 143 enc->len = 0; in ossl_asn1_enc_init() 144 enc->modified = 1; in ossl_asn1_enc_init() 150 ASN1_ENCODING *enc = asn1_get_enc_ptr(pval, it); in ossl_asn1_enc_free() local 152 if (enc != NULL) { in ossl_asn1_enc_free() 153 OPENSSL_free(enc->enc); in ossl_asn1_enc_free() 154 enc->enc = NULL; in ossl_asn1_enc_free() 155 enc->len = 0; in ossl_asn1_enc_free() [all …]
|
/freebsd/tools/test/iconv/ |
H A D | Makefile | 38 .for enc in ${ENCODING} 39 @echo "Generating ${enc} --> UTF-32 ..." 40 -@${REF_FWD} ${enc} >${.CURDIR}/ref/${enc} 41 @echo "Generating UTF-32 --> ${enc} ..." 42 -@${REF_REV} ${enc} >${.CURDIR}/ref/${enc}-rev 47 .for enc in ${ENCODING} 48 @echo "Checking ${enc} --> UTF-32 ..." 49 -@${GEN_FWD} ${enc} >output/${enc} 50 @${CMP} ${.CURDIR}/ref/${enc} ${.OBJDIR}/output/${enc} 51 @echo "Checking UTF-32 --> ${enc} ..." [all …]
|
/freebsd/sys/net/ |
H A D | if_fwsubr.c | 86 union fw_encap *enc; in firewire_output() local 262 enc = mtod(m, union fw_encap *); in firewire_output() 263 enc->unfrag.ether_type = type; in firewire_output() 264 enc->unfrag.lf = FW_ENCAP_UNFRAG; in firewire_output() 265 enc->unfrag.reserved = 0; in firewire_output() 270 enc->ul[0] = htonl(enc->ul[0]); in firewire_output() 304 enc = mtod(m, union fw_encap *); in firewire_output() 306 enc->firstfrag.lf = FW_ENCAP_FIRST; in firewire_output() 307 enc->firstfrag.reserved1 = 0; in firewire_output() 308 enc->firstfrag.reserved2 = 0; in firewire_output() [all …]
|
/freebsd/crypto/openssl/test/ |
H A D | pkcs12_format_test.c | 356 static int test_single_key(PKCS12_ENC *enc) in test_single_key() argument 361 sprintf(fname, "1key_ciph-%s_iter-%d.p12", OBJ_nid2sn(enc->nid), enc->iter); in test_single_key() 370 add_keybag(pb, KEY1, sizeof(KEY1), NULL, enc); in test_single_key() 381 check_keybag(pb, KEY1, sizeof(KEY1), NULL, enc); in test_single_key() 392 PKCS12_ENC enc; in test_single_key_enc_alg() local 395 enc.nid = enc_nids_no_legacy[z]; in test_single_key_enc_alg() 397 enc.nid = enc_nids_all[z]; in test_single_key_enc_alg() 398 enc.pass = enc_default.pass; in test_single_key_enc_alg() 399 enc.iter = enc_default.iter; in test_single_key_enc_alg() 401 return test_single_key(&enc); in test_single_key_enc_alg() [all …]
|
/freebsd/tools/tools/locale/tools/ |
H A D | cldr2def.pl | 225 my $enc = $callback{data}{e}; 228 if ($enc eq 'UTF-8') { 231 my $converter = Text::Iconv->new("utf-8", "$enc"); 427 foreach my $enc (sort keys(%{$languages{$l}{$f}{data}{$c}})) { 428 next if ($enc eq $DEFENCODING); 450 $uhex = sha1_hex(join("\n", @lines) . $enc); 451 $languages{$l}{$f}{data}{$c}{$enc} = $uhex; 452 $hashtable{$uhex}{"${l}_${f}_${c}.$enc"} = 1; 453 open(FOUT, ">$TYPE.draft/$actfile.$enc.src"); 531 foreach my $enc (sort keys(%{$languages{$l}{$f}{data}{$c}})) { [all …]
|
/freebsd/crypto/openssl/crypto/pem/ |
H A D | pem_pk8.c | 22 int nid, const EVP_CIPHER *enc, 29 int nid, const EVP_CIPHER *enc, 48 int PEM_write_bio_PKCS8PrivateKey(BIO *bp, const EVP_PKEY *x, const EVP_CIPHER *enc, in PEM_write_bio_PKCS8PrivateKey() argument 52 return do_pk8pkey(bp, x, 0, -1, enc, kstr, klen, cb, u, NULL); in PEM_write_bio_PKCS8PrivateKey() 55 int i2d_PKCS8PrivateKey_bio(BIO *bp, const EVP_PKEY *x, const EVP_CIPHER *enc, in i2d_PKCS8PrivateKey_bio() argument 59 return do_pk8pkey(bp, x, 1, -1, enc, kstr, klen, cb, u, NULL); in i2d_PKCS8PrivateKey_bio() 70 const EVP_CIPHER *enc, const char *kstr, int klen, in do_pk8pkey() argument 104 if (enc != NULL) { in do_pk8pkey() 106 if (OSSL_ENCODER_CTX_set_cipher(ctx, EVP_CIPHER_get0_name(enc), in do_pk8pkey() 136 if (enc || (nid != -1)) { in do_pk8pkey() [all …]
|
/freebsd/crypto/openssl/crypto/cms/ |
H A D | cms_enc.c | 40 int enc, keep_key = 0; in ossl_cms_EncryptedContent_init_bio() local 44 enc = ec->cipher ? 1 : 0; in ossl_cms_EncryptedContent_init_bio() 55 if (enc) { in ossl_cms_EncryptedContent_init_bio() 78 if (EVP_CipherInit_ex(ctx, cipher, NULL, NULL, NULL, enc) <= 0) { in ossl_cms_EncryptedContent_init_bio() 83 if (enc) { in ossl_cms_EncryptedContent_init_bio() 122 if (!enc || !ec->key) { in ossl_cms_EncryptedContent_init_bio() 136 if (enc) in ossl_cms_EncryptedContent_init_bio() 150 if (enc || ec->debug) { in ossl_cms_EncryptedContent_init_bio() 164 if (EVP_CipherInit_ex(ctx, NULL, NULL, ec->key, piv, enc) <= 0) { in ossl_cms_EncryptedContent_init_bio() 168 if (enc) { in ossl_cms_EncryptedContent_init_bio() [all …]
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | des.h | 80 DES_key_schedule *ks3, int enc); 91 int enc); 95 int enc); 99 const_DES_cblock *inw, const_DES_cblock *outw, int enc); 103 int enc); 106 DES_key_schedule *ks, int enc); 121 void DES_encrypt1(DES_LONG *data, DES_key_schedule *ks, int enc); 134 void DES_encrypt2(DES_LONG *data, DES_key_schedule *ks, int enc); 145 DES_cblock *ivec, int enc); 150 DES_cblock *ivec, int *num, int enc); [all …]
|
H A D | aes.h | 64 const AES_KEY *key, const int enc); 68 unsigned char *ivec, const int enc); 72 unsigned char *ivec, int *num, const int enc); 76 unsigned char *ivec, int *num, const int enc); 80 unsigned char *ivec, int *num, const int enc); 90 unsigned char *ivec, const int enc); 95 const unsigned char *ivec, const int enc);
|
/freebsd/crypto/openssl/crypto/camellia/ |
H A D | cmll_cfb.c | 27 unsigned char *ivec, int *num, const int enc) in Camellia_cfb128_encrypt() argument 30 CRYPTO_cfb128_encrypt(in, out, length, key, ivec, num, enc, in Camellia_cfb128_encrypt() 37 unsigned char *ivec, int *num, const int enc) in Camellia_cfb1_encrypt() argument 39 CRYPTO_cfb128_1_encrypt(in, out, length, key, ivec, num, enc, in Camellia_cfb1_encrypt() 45 unsigned char *ivec, int *num, const int enc) in Camellia_cfb8_encrypt() argument 47 CRYPTO_cfb128_8_encrypt(in, out, length, key, ivec, num, enc, in Camellia_cfb8_encrypt()
|
/freebsd/crypto/openssl/crypto/aes/ |
H A D | aes_cfb.c | 27 unsigned char *ivec, int *num, const int enc) in AES_cfb128_encrypt() argument 30 CRYPTO_cfb128_encrypt(in, out, length, key, ivec, num, enc, in AES_cfb128_encrypt() 37 unsigned char *ivec, int *num, const int enc) in AES_cfb1_encrypt() argument 39 CRYPTO_cfb128_1_encrypt(in, out, length, key, ivec, num, enc, in AES_cfb1_encrypt() 45 unsigned char *ivec, int *num, const int enc) in AES_cfb8_encrypt() argument 47 CRYPTO_cfb128_8_encrypt(in, out, length, key, ivec, num, enc, in AES_cfb8_encrypt()
|
/freebsd/sys/netgraph/ |
H A D | ng_rfc1490.c | 108 const struct ng_rfc1490_encap_t *enc; member 169 priv->enc = ng_rfc1490_encaps; in ng_rfc1490_constructor() 223 const struct ng_rfc1490_encap_t *enc; in ng_rfc1490_rcvmsg() local 234 for (enc = ng_rfc1490_encaps; enc->method != 0; enc++ ) in ng_rfc1490_rcvmsg() 235 if ((strlen(enc->name) == len) && in ng_rfc1490_rcvmsg() 236 !strncmp(enc->name, s, len)) in ng_rfc1490_rcvmsg() 239 if (enc->method != 0) in ng_rfc1490_rcvmsg() 240 priv->enc = enc; in ng_rfc1490_rcvmsg() 247 NG_MKRESPONSE(resp, msg, strlen(priv->enc->name) + 1, M_NOWAIT); in ng_rfc1490_rcvmsg() 251 strlcpy((char *)resp->data, priv->enc->name, in ng_rfc1490_rcvmsg() [all …]
|
/freebsd/crypto/openssl/crypto/evp/ |
H A D | e_idea.c | 34 const unsigned char *iv, int enc); 58 const unsigned char *iv, int enc) in BLOCK_CIPHER_func_cbc() 60 if (!enc) { in BLOCK_CIPHER_func_cbc() 62 enc = 1; in BLOCK_CIPHER_func_cbc() 64 enc = 1; in BLOCK_CIPHER_func_cbc() 66 if (enc) in BLOCK_CIPHER_func_cbc()
|
H A D | e_sm4.c | 27 const unsigned char *iv, int enc) in sm4_init_key() argument 35 unsigned char *ivec, const int enc) in sm4_cbc_encrypt() argument 37 if (enc) in sm4_cbc_encrypt() 47 unsigned char *ivec, int *num, const int enc) in sm4_cfb128_encrypt() argument 49 CRYPTO_cfb128_encrypt(in, out, length, key, ivec, num, enc, in sm4_cfb128_encrypt() 54 const SM4_KEY *key, const int enc) in sm4_ecb_encrypt() argument 56 if (enc) in sm4_ecb_encrypt()
|
/freebsd/crypto/openssl/test/helpers/ |
H A D | pkcs12.c | 290 void end_contentinfo_encrypted(PKCS12_BUILDER *pb, const PKCS12_ENC *enc) in end_contentinfo_encrypted() argument 294 if (!TEST_true(PKCS12_add_safe(&pb->safes, pb->bags, enc->nid, in end_contentinfo_encrypted() 295 enc->iter, enc->pass))) in end_contentinfo_encrypted() 298 if (!TEST_true(PKCS12_add_safe_ex(&pb->safes, pb->bags, enc->nid, in end_contentinfo_encrypted() 299 enc->iter, enc->pass, test_ctx, in end_contentinfo_encrypted() 309 …TACK_OF(PKCS12_SAFEBAG) *decode_contentinfo(STACK_OF(PKCS7) *safes, int idx, const PKCS12_ENC *enc) in STACK_OF() 319 if (enc) { in STACK_OF() 322 bags = PKCS12_unpack_p7encdata(p7, enc->pass, strlen(enc->pass)); in STACK_OF() 410 const PKCS12_ATTR *attrs, const PKCS12_ENC *enc) in add_keybag() argument 427 bag = PKCS12_add_key(&pb->bags, pkey, 0 /*keytype*/, enc->iter, enc->nid, enc->pass); in add_keybag() [all …]
|
/freebsd/stand/libsa/geli/ |
H A D | geliboot_crypto.c | 36 geliboot_crypt(u_int algo, geli_op_t enc, u_char *data, size_t datasize, in geliboot_crypt() argument 47 err = rijndael_makeKey(&aeskey, !enc, keysize, in geliboot_crypt() 60 switch (enc) { in geliboot_crypt() 72 enc ? "decrypt" : "encrypt", in geliboot_crypt() 84 switch (enc) { in geliboot_crypt() 104 g_eli_crypto_cipher(u_int algo, geli_op_t enc, u_char *data, size_t datasize, in g_eli_crypto_cipher() argument 110 return (geliboot_crypt(algo, enc, data, datasize, key, keysize, iv)); in g_eli_crypto_cipher()
|