Home
last modified time | relevance | path

Searched refs:csr (Results 1 – 11 of 11) sorted by relevance

/openthread-2.7.6/third_party/mbedtls/repo/library/
Dx509_csr.c85 int mbedtls_x509_csr_parse_der( mbedtls_x509_csr *csr, in mbedtls_x509_csr_parse_der() argument
98 if( csr == NULL || buf == NULL || buflen == 0 ) in mbedtls_x509_csr_parse_der()
101 mbedtls_x509_csr_init( csr ); in mbedtls_x509_csr_parse_der()
113 csr->raw.p = p; in mbedtls_x509_csr_parse_der()
114 csr->raw.len = len; in mbedtls_x509_csr_parse_der()
127 mbedtls_x509_csr_free( csr ); in mbedtls_x509_csr_parse_der()
133 mbedtls_x509_csr_free( csr ); in mbedtls_x509_csr_parse_der()
141 csr->cri.p = p; in mbedtls_x509_csr_parse_der()
146 mbedtls_x509_csr_free( csr ); in mbedtls_x509_csr_parse_der()
151 csr->cri.len = end - csr->cri.p; in mbedtls_x509_csr_parse_der()
[all …]
/openthread-2.7.6/third_party/mbedtls/repo/programs/fuzz/
Dfuzz_x509csr.c7 mbedtls_x509_csr csr; in LLVMFuzzerTestOneInput() local
10 mbedtls_x509_csr_init( &csr ); in LLVMFuzzerTestOneInput()
11 ret = mbedtls_x509_csr_parse( &csr, Data, Size ); in LLVMFuzzerTestOneInput()
13 ret = mbedtls_x509_csr_info( (char *) buf, sizeof( buf ) - 1, " ", &csr ); in LLVMFuzzerTestOneInput()
15 mbedtls_x509_csr_free( &csr ); in LLVMFuzzerTestOneInput()
/openthread-2.7.6/third_party/mbedtls/repo/programs/x509/
Dreq_app.c76 mbedtls_x509_csr csr; in main() local
83 mbedtls_x509_csr_init( &csr ); in main()
113 ret = mbedtls_x509_csr_parse_file( &csr, opt.filename ); in main()
118 mbedtls_x509_csr_free( &csr ); in main()
128 ret = mbedtls_x509_csr_info( (char *) buf, sizeof( buf ) - 1, " ", &csr ); in main()
132 mbedtls_x509_csr_free( &csr ); in main()
141 mbedtls_x509_csr_free( &csr ); in main()
Dcert_write.c230 mbedtls_x509_csr csr; in main() local
248 mbedtls_x509_csr_init( &csr ); in main()
546 if( ( ret = mbedtls_x509_csr_parse_file( &csr, opt.request_file ) ) != 0 ) in main()
555 &csr.subject ); in main()
565 subject_key = &csr.pk; in main()
789 mbedtls_x509_csr_free( &csr ); in main()
/openthread-2.7.6/third_party/mbedtls/repo/include/mbedtls/
Dx509_csr.h93 int mbedtls_x509_csr_parse_der( mbedtls_x509_csr *csr,
108 int mbedtls_x509_csr_parse( mbedtls_x509_csr *csr, const unsigned char *buf, size_t buflen );
121 int mbedtls_x509_csr_parse_file( mbedtls_x509_csr *csr, const char *path );
137 const mbedtls_x509_csr *csr );
144 void mbedtls_x509_csr_init( mbedtls_x509_csr *csr );
151 void mbedtls_x509_csr_free( mbedtls_x509_csr *csr );
/openthread-2.7.6/third_party/mbedtls/repo/tests/data_files/
D.gitignore1 cli-rsa.csr
2 server2-rsa.csr
3 test-ca.csr
DMakefile90 cert_example_multi.csr: rsa_pkcs1_1024_clear.pem
93 cert_example_multi.crt: cert_example_multi.csr
98 test-ca-alt.csr: $(test_ca_key_file_rsa_alt) $(test_ca_config_file)
100 all_intermediate += test-ca-alt.csr
101 test-ca-alt.crt: $(test_ca_key_file_rsa_alt) $(test_ca_config_file) test-ca-alt.csr
102 …file) -key $(test_ca_key_file_rsa_alt) -set_serial 0 -days 3653 -sha256 -in test-ca-alt.csr -out $@
176 test-int-ca.csr: test-int-ca.key $(test_ca_config_file)
178 all_intermediate += test-int-ca.csr
179 …nt-ca-exp.crt: $(test_ca_crt_file_ec) $(test_ca_key_file_ec) $(test_ca_config_file) test-int-ca.csr
180 …ile_ec) -CAkey $(test_ca_key_file_ec) -set_serial 14 -days 3653 -sha256 -in test-int-ca.csr -out $@
[all …]
/openthread-2.7.6/third_party/mbedtls/repo/tests/data_files/dir-maxpath/
Dlong.sh41 -key ${ME}.key -out ${ME}.csr
44 -in ${ME}.csr -out ${ME}.crt
48 rm ${ME}.csr
/openthread-2.7.6/third_party/mbedtls/repo/tests/suites/
Dtest_suite_x509write.function56 mbedtls_x509_csr csr;
59 mbedtls_x509_csr_init( &csr );
61 if( mbedtls_x509_csr_parse( &csr, buf, buflen ) != 0 )
67 md_info = mbedtls_md_info_from_type( csr.sig_md );
68 if( mbedtls_md( md_info, csr.cri.p, csr.cri.len, hash ) != 0 )
75 if( mbedtls_pk_verify_ext( csr.sig_pk, csr.sig_opts, &csr.pk,
76 csr.sig_md, hash, mbedtls_md_get_size( md_info ),
77 csr.sig.p, csr.sig.len ) != 0 )
85 mbedtls_x509_csr_free( &csr );
Dtest_suite_x509parse.function506 mbedtls_x509_csr csr;
510 mbedtls_x509_csr_init( &csr );
513 TEST_ASSERT( mbedtls_x509_csr_parse_file( &csr, csr_file ) == 0 );
514 res = mbedtls_x509_csr_info( buf, 2000, "", &csr );
522 mbedtls_x509_csr_free( &csr );
974 mbedtls_x509_csr csr;
978 mbedtls_x509_csr_init( &csr );
981 my_ret = mbedtls_x509_csr_parse_der( &csr, csr_der->x, csr_der->len );
986 size_t my_out_len = mbedtls_x509_csr_info( my_out, sizeof( my_out ), "", &csr );
992 mbedtls_x509_csr_free( &csr );
/openthread-2.7.6/third_party/mbedtls/repo/
DChangeLog148 the buffer back, which was the case for mbedtls_x509write_{crt,csr}_pem