/third_party/mbedtls/library/ |
H A D | x509_csr.c | 64 static int x509_csr_parse_extensions(mbedtls_x509_csr *csr, in x509_csr_parse_extensions() argument 123 ret = cb(p_ctx, csr, &extn_oid, is_critical, *p, end_ext_octet); in x509_csr_parse_extensions() 143 if ((csr->ext_types & ext_type) != 0) { in x509_csr_parse_extensions() 148 csr->ext_types |= ext_type; in x509_csr_parse_extensions() 154 &csr->key_usage)) != 0) { in x509_csr_parse_extensions() 162 &csr->subject_alt_names)) != 0) { in x509_csr_parse_extensions() 170 &csr->ns_cert_type)) != 0) { in x509_csr_parse_extensions() 199 static int x509_csr_parse_attributes(mbedtls_x509_csr *csr, in x509_csr_parse_attributes() argument 241 if ((ret = x509_csr_parse_extensions(csr, p, *p + len, cb, p_ctx)) != 0) { in x509_csr_parse_attributes() 265 static int mbedtls_x509_csr_parse_der_internal(mbedtls_x509_csr *csr, in mbedtls_x509_csr_parse_der_internal() argument 434 mbedtls_x509_csr_parse_der(mbedtls_x509_csr *csr, const unsigned char *buf, size_t buflen) mbedtls_x509_csr_parse_der() argument 443 mbedtls_x509_csr_parse_der_with_ext_cb(mbedtls_x509_csr *csr, const unsigned char *buf, size_t buflen, mbedtls_x509_csr_ext_cb_t cb, void *p_ctx) mbedtls_x509_csr_parse_der_with_ext_cb() argument 454 mbedtls_x509_csr_parse(mbedtls_x509_csr *csr, const unsigned char *buf, size_t buflen) mbedtls_x509_csr_parse() argument 504 mbedtls_x509_csr_parse_file(mbedtls_x509_csr *csr, const char *path) mbedtls_x509_csr_parse_file() argument 528 mbedtls_x509_csr_info(char *buf, size_t size, const char *prefix, const mbedtls_x509_csr *csr) mbedtls_x509_csr_info() argument 609 mbedtls_x509_csr_init(mbedtls_x509_csr *csr) mbedtls_x509_csr_init() argument 617 mbedtls_x509_csr_free(mbedtls_x509_csr *csr) mbedtls_x509_csr_free() argument [all...] |
/third_party/openssl/test/certs/ |
H A D | mkcert.sh | 113 csr=$(req "$key" "CN = $cn") || return 1 114 echo "$csr" | 154 csr=$(req "$key" "CN = $cn") || return 1 155 echo "$csr" | 175 csr=$(req "$key" "CN = $cn") || return 1 176 echo "$csr" | 183 # Note: takes csr on stdin, so must be used with $0 req like this: 222 # Note: takes csr on stdin, so must be used with $0 req like this: 264 csr=$(req "$key" "CN = $cn") || return 1 265 echo "$csr" | [all...] |
/third_party/mbedtls/include/mbedtls/ |
H A D | x509_csr.h | 86 * \param csr CSR context to fill 92 int mbedtls_x509_csr_parse_der(mbedtls_x509_csr *csr, 105 * \param csr The CSR being parsed. 124 mbedtls_x509_csr const *csr, 142 * \param csr CSR context to fill 151 int mbedtls_x509_csr_parse_der_with_ext_cb(mbedtls_x509_csr *csr, 165 * \param csr CSR context to fill 172 int mbedtls_x509_csr_parse(mbedtls_x509_csr *csr, const unsigned char *buf, size_t buflen); 180 * \param csr CSR context to fill 185 int mbedtls_x509_csr_parse_file(mbedtls_x509_csr *csr, cons [all...] |
/third_party/mbedtls/programs/x509/ |
H A D | req_app.c | 52 mbedtls_x509_csr csr; in main() local 59 mbedtls_x509_csr_init(&csr); in main() 98 ret = mbedtls_x509_csr_parse_file(&csr, opt.filename); in main() 102 mbedtls_x509_csr_free(&csr); in main() 112 ret = mbedtls_x509_csr_info((char *) buf, sizeof(buf) - 1, " ", &csr); in main() 115 mbedtls_x509_csr_free(&csr); in main() 124 mbedtls_x509_csr_free(&csr); in main()
|
H A D | cert_write.c | 304 mbedtls_x509_csr csr; in main() local 326 mbedtls_x509_csr_init(&csr); in main() 750 if ((ret = mbedtls_x509_csr_parse_file(&csr, opt.request_file)) != 0) { in main() 758 &csr.subject); in main() 767 subject_key = &csr.pk; in main() 999 mbedtls_x509_csr_free(&csr); in main()
|
/third_party/mbedtls/programs/fuzz/ |
H A D | fuzz_x509csr.c | 8 mbedtls_x509_csr csr; in LLVMFuzzerTestOneInput() local 11 mbedtls_x509_csr_init(&csr); in LLVMFuzzerTestOneInput() 18 ret = mbedtls_x509_csr_parse(&csr, Data, Size); in LLVMFuzzerTestOneInput() 21 ret = mbedtls_x509_csr_info((char *) buf, sizeof(buf) - 1, " ", &csr); in LLVMFuzzerTestOneInput() 32 mbedtls_x509_csr_free(&csr); in LLVMFuzzerTestOneInput()
|
/third_party/mbedtls/tests/data_files/ |
H A D | Makefile | 104 cert_example_multi.csr: rsa_pkcs1_1024_clear.pem 107 parse_input/cert_example_multi.crt cert_example_multi.crt: cert_example_multi.csr 113 cert_example_multi_nocn.csr: rsa_pkcs1_1024_clear.pem 115 all_intermediate += cert_example_multi_nocn.csr 117 parse_input/cert_example_multi_nocn.crt cert_example_multi_nocn.crt: cert_example_multi_nocn.csr test-ca_nocn.crt 123 parse_input/test_csr_v3_keyUsage.csr.der: rsa_pkcs1_1024_clear.pem 125 parse_input/test_csr_v3_subjectAltName.csr.der: rsa_pkcs1_1024_clear.pem 127 parse_input/test_csr_v3_nsCertType.csr.der: rsa_pkcs1_1024_clear.pem 129 parse_input/test_csr_v3_all.csr.der: rsa_pkcs1_1024_clear.pem 131 parse_input/test_csr_v3_all_malformed_extensions_sequence_tag.csr [all...] |
/third_party/openssl/test/testutil/ |
H A D | load.c | 94 X509_REQ *csr = NULL; in load_csr_der() local 100 csr = X509_REQ_new_ex(libctx, NULL); in load_csr_der() 101 if (TEST_ptr(csr)) in load_csr_der() 102 (void)TEST_ptr(d2i_X509_REQ_bio(bio, &csr)); in load_csr_der() 104 return csr; in load_csr_der()
|
/third_party/mesa3d/src/gallium/drivers/i915/ |
H A D | i915_fpc_emit.c | 154 if (p->csr < p->program + I915_PROGRAM_SIZE) { in i915_emit_arith() 155 *(p->csr++) = (op | A0_DEST(dest) | mask | saturate | A0_SRC0(src0)); in i915_emit_arith() 156 *(p->csr++) = (A1_SRC0(src0) | A1_SRC1(src1)); in i915_emit_arith() 157 *(p->csr++) = (A2_SRC1(src1) | A2_SRC2(src2)); in i915_emit_arith() 237 if (p->csr < p->program + I915_PROGRAM_SIZE) { in i915_emit_texld() 238 *(p->csr++) = (opcode | T0_DEST(dest) | T0_SAMPLER(sampler)); in i915_emit_texld() 240 *(p->csr++) = T1_ADDRESS_REG(coord); in i915_emit_texld() 241 *(p->csr++) = T2_MBZ; in i915_emit_texld()
|
/third_party/mesa3d/src/gallium/auxiliary/rtasm/ |
H A D | rtasm_x86sse.c | 92 debug_printf( "\n%4tx %14s ", p->csr - p->store, foo ); \ 143 p->csr = p->store; in do_realloc() 148 p->csr = p->store; in do_realloc() 151 uintptr_t used = pointer_to_uintptr( p->csr ) - pointer_to_uintptr( p->store ); in do_realloc() 158 p->csr = p->store + used; in do_realloc() 161 p->csr = p->store; in do_realloc() 168 p->store = p->csr = p->error_overflow; in do_realloc() 177 if (p->csr + bytes - p->store > (int) p->size) in reserve() 181 unsigned char *csr = p->csr; in reserve() local 191 char *csr = (char *)reserve(p, 1); emit_1b() local 203 unsigned char *csr = reserve(p, 1); emit_1ub() local 209 unsigned char *csr = reserve(p, 2); emit_2ub() local 216 unsigned char *csr = reserve(p, 3); emit_3ub() local [all...] |
/third_party/libwebsockets/lib/tls/mbedtls/ |
H A D | mbedtls-server.c | 616 mbedtls_x509write_csr csr; in lws_tls_acme_sni_csr_create() local 625 mbedtls_x509write_csr_init(&csr); in lws_tls_acme_sni_csr_create() 651 if (mbedtls_x509write_csr_set_subject_name(&csr, subject)) in lws_tls_acme_sni_csr_create() 654 mbedtls_x509write_csr_set_key(&csr, &mpk); in lws_tls_acme_sni_csr_create() 655 mbedtls_x509write_csr_set_md_alg(&csr, MBEDTLS_MD_SHA256); in lws_tls_acme_sni_csr_create() 662 n = mbedtls_x509write_csr_der(&csr, buf, (size_t)buf_size, _rngf, context); in lws_tls_acme_sni_csr_create() 664 lwsl_notice("%s: write csr der failed\n", __func__); in lws_tls_acme_sni_csr_create() 690 mbedtls_x509write_csr_free(&csr); in lws_tls_acme_sni_csr_create() 697 mbedtls_x509write_csr_free(&csr); in lws_tls_acme_sni_csr_create()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
H A D | crypto.h | 1233 * @csr: CSR structure from @crypto_csr_init() or crypto_csr_verify() 1235 void crypto_csr_deinit(struct crypto_csr *csr); 1239 * @csr: CSR structure from @crypto_csr_init() 1243 int crypto_csr_set_ec_public_key(struct crypto_csr *csr, 1248 * @csr: CSR structure from @crypto_csr_init() 1253 int crypto_csr_set_name(struct crypto_csr *csr, enum crypto_csr_name type, 1258 * @csr: CSR structure from @crypto_csr_init() 1265 int crypto_csr_set_attribute(struct crypto_csr *csr, enum crypto_csr_attr attr, 1270 * @csr: CSR structure from @crypto_csr_verify() 1276 const u8 * crypto_csr_get_attribute(struct crypto_csr *csr, [all...] |
H A D | crypto_openssl.c | 3087 X509_REQ *csr; in crypto_csr_verify() local 3091 csr = d2i_X509_REQ(NULL, &der, wpabuf_len(req)); in crypto_csr_verify() 3092 if (!csr) in crypto_csr_verify() 3095 pkey = X509_REQ_get_pubkey((X509_REQ *)csr); in crypto_csr_verify() 3099 if (X509_REQ_verify((X509_REQ *)csr, pkey) != 1) in crypto_csr_verify() 3102 return (struct crypto_csr *)csr; in crypto_csr_verify() 3104 X509_REQ_free(csr); in crypto_csr_verify() 3109 void crypto_csr_deinit(struct crypto_csr *csr) in crypto_csr_deinit() argument 3111 X509_REQ_free((X509_REQ *)csr); in crypto_csr_deinit() 3115 int crypto_csr_set_ec_public_key(struct crypto_csr *csr, struc argument 3124 crypto_csr_set_name(struct crypto_csr *csr, enum crypto_csr_name type, const char *name) crypto_csr_set_name() argument 3170 crypto_csr_set_attribute(struct crypto_csr *csr, enum crypto_csr_attr attr, int attr_type, const u8 *value, size_t len) crypto_csr_set_attribute() argument 3191 crypto_csr_get_attribute(struct crypto_csr *csr, enum crypto_csr_attr attr, size_t *len, int *type) crypto_csr_get_attribute() argument 3229 crypto_csr_sign(struct crypto_csr *csr, struct crypto_ec_key *key, enum crypto_hash_alg algo) crypto_csr_sign() argument [all...] |
/third_party/elfutils/libcpu/ |
H A D | riscv_disasm.c | 1096 uint32_t csr = word >> 20; in riscv_disasm() local 1097 if (/* csr >= 0x000 && */ csr <= 0x007) in riscv_disasm() 1103 mne = (char *) unprivrw[csr - 0x000]; in riscv_disasm() 1105 else if (csr >= 0xc00 && csr <= 0xc03) in riscv_disasm() 1111 mne = (char *) unprivrolow[csr - 0xc00]; in riscv_disasm() 1117 uint32_t csr = word >> 20; in riscv_disasm() local 1118 if (/* csr >= 0x000 && */ csr < in riscv_disasm() 1253 uint32_t csr = word >> 20; riscv_disasm() local [all...] |
/third_party/node/deps/v8/src/codegen/riscv64/ |
H A D | assembler-riscv64.h | 467 void csrrw(Register rd, ControlStatusReg csr, Register rs1); 468 void csrrs(Register rd, ControlStatusReg csr, Register rs1); 469 void csrrc(Register rd, ControlStatusReg csr, Register rs1); 470 void csrrwi(Register rd, ControlStatusReg csr, uint8_t imm5); 471 void csrrsi(Register rd, ControlStatusReg csr, uint8_t imm5); 472 void csrrci(Register rd, ControlStatusReg csr, uint8_t imm5); 1136 void csrr(Register rd, ControlStatusReg csr) { csrrs(rd, csr, zero_reg); } in csrr() argument 1137 void csrw(ControlStatusReg csr, Register rs) { csrrw(zero_reg, csr, r in csrr() argument 1138 csrs(ControlStatusReg csr, Register rs) csrs() argument 1139 csrc(ControlStatusReg csr, Register rs) csrc() argument 1141 csrwi(ControlStatusReg csr, uint8_t imm) csrwi() argument 1142 csrsi(ControlStatusReg csr, uint8_t imm) csrsi() argument 1143 csrci(ControlStatusReg csr, uint8_t imm) csrci() argument [all...] |
/third_party/node/deps/openssl/openssl/apps/ |
H A D | cmp.c | 291 "For kur, default is subject of -csr arg or reference cert (see -oldcert)"}, 303 "Augments or replaces any extensions contained CSR given with -csr"}, 318 {"csr", OPT_CSR, 's', 694 X509_REQ *csr; in load_csr_autofmt() local 698 csr = load_csr(infile, FORMAT_PEM, desc); in load_csr_autofmt() 700 if (csr == NULL) { in load_csr_autofmt() 702 csr = load_csr(infile, FORMAT_ASN1, desc); in load_csr_autofmt() 704 if (csr == NULL) { in load_csr_autofmt() 709 EVP_PKEY *pkey = X509_REQ_get0_pubkey(csr); in load_csr_autofmt() 710 int ret = do_X509_REQ_verify(csr, pke in load_csr_autofmt() 1521 X509_REQ *csr = NULL; setup_request_ctx() local [all...] |
/third_party/openssl/apps/ |
H A D | cmp.c | 291 "For kur, default is subject of -csr arg or reference cert (see -oldcert)"}, 303 "Augments or replaces any extensions contained CSR given with -csr"}, 318 {"csr", OPT_CSR, 's', 694 X509_REQ *csr; in load_csr_autofmt() local 698 csr = load_csr(infile, FORMAT_PEM, desc); in load_csr_autofmt() 700 if (csr == NULL) { in load_csr_autofmt() 702 csr = load_csr(infile, FORMAT_ASN1, desc); in load_csr_autofmt() 704 if (csr == NULL) { in load_csr_autofmt() 709 EVP_PKEY *pkey = X509_REQ_get0_pubkey(csr); in load_csr_autofmt() 710 int ret = do_X509_REQ_verify(csr, pke in load_csr_autofmt() 1521 X509_REQ *csr = NULL; setup_request_ctx() local [all...] |
/third_party/openssl/test/ |
H A D | cmp_client_test.c | 325 X509_REQ *csr = NULL; in test_exec_P10CR_ses() local 332 if (!TEST_ptr(csr = load_csr_der(pkcs10_f, libctx)) in test_exec_P10CR_ses() 333 || !TEST_true(OSSL_CMP_CTX_set1_p10CSR(ctx, csr)) in test_exec_P10CR_ses() 339 X509_REQ_free(csr); in test_exec_P10CR_ses() 490 # define USAGE "server.key server.crt client.key client.crt client.csr module_name [module_conf_file]\n"
|
/third_party/libwebsockets/lib/tls/openssl/ |
H A D | openssl-server.c | 976 uint8_t *csr, size_t csr_len, char **privkey_pem, 979 uint8_t *csr_in = csr; 1082 *csr++ = '-'; 1085 *csr++ = '_'; 1087 *csr++ = (uint8_t)*p; 1121 ret = lws_ptr_diff(csr, csr_in); 975 lws_tls_acme_sni_csr_create(struct lws_context *context, const char *elements[], uint8_t *csr, size_t csr_len, char **privkey_pem, size_t *privkey_len) global() argument
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/ |
H A D | dpp_crypto.c | 2055 struct crypto_csr *csr = NULL; in dpp_build_csr() local 2077 csr = crypto_csr_init(); in dpp_build_csr() 2078 if (!csr || crypto_csr_set_ec_public_key(csr, key)) in dpp_build_csr() 2081 if (name && crypto_csr_set_name(csr, CSR_NAME_CN, name)) in dpp_build_csr() 2094 crypto_csr_set_attribute(csr, CSR_ATTR_CHALLENGE_PASSWORD, in dpp_build_csr() 2111 buf = crypto_csr_sign(csr, key, hash_sign_algo); in dpp_build_csr() 2118 crypto_csr_deinit(csr); in dpp_build_csr() 2126 struct crypto_csr *csr; in dpp_validate_csr() local 2136 csr in dpp_validate_csr() [all...] |
/third_party/icu/icu4c/source/i18n/ |
H A D | csdetect.cpp | 250 CharsetRecognizer *csr; in detectAll() local 259 csr = fCSRecognizers[i]->recognizer; in detectAll() 260 if (csr->match(textIn, resultArray[resultCount])) { in detectAll()
|
/third_party/node/deps/icu-small/source/i18n/ |
H A D | csdetect.cpp | 250 CharsetRecognizer *csr; in detectAll() local 259 csr = fCSRecognizers[i]->recognizer; in detectAll() 260 if (csr->match(textIn, resultArray[resultCount])) { in detectAll()
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
H A D | csdetect.cpp | 250 CharsetRecognizer *csr; in detectAll() local 259 csr = fCSRecognizers[i]->recognizer; in detectAll() 260 if (csr->match(textIn, resultArray[resultCount])) { in detectAll()
|
/third_party/libwebsockets/include/libwebsockets/ |
H A D | lws-x509.h | 249 * \param csr: buffer that will get the b64URL(ASN-1 CSR) 250 * \param csr_len: max length of the csr buffer 257 * The outputs are the b64URL(ASN-1 CSR) into csr, and the PEM private key into 268 uint8_t *csr, size_t csr_len, char **privkey_pem,
|
/third_party/node/deps/v8/src/diagnostics/riscv64/ |
H A D | disasm-riscv64.cc | 718 case 'c': { // `csr: CSR registers in FormatOption() 1558 Format(instr, "csrw 'csr, 'rs1"); in DecodeIType() 1560 Format(instr, "csrrw 'rd, 'csr, 'rs1"); in DecodeIType() 1597 Format(instr, "csrr 'rd, 'csr"); in DecodeIType() 1599 Format(instr, "csrs 'csr, 'rs1"); in DecodeIType() 1601 Format(instr, "csrrs 'rd, 'csr, 'rs1"); in DecodeIType() 1606 Format(instr, "csrc 'csr, 'rs1"); in DecodeIType() 1608 Format(instr, "csrrc 'rd, 'csr, 'rs1"); in DecodeIType() 1612 Format(instr, "csrwi 'csr, 'uimm"); in DecodeIType() 1614 Format(instr, "csrrwi 'rd, 'csr, 'uim in DecodeIType() [all...] |