Home
last modified time | relevance | path

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

/third_party/mbedtls/programs/x509/
Dcert_req.c114 unsigned char key_usage; /* key usage flags */ member
183 opt.key_usage = DFL_KEY_USAGE; in main()
232 opt.key_usage |= MBEDTLS_X509_KU_DIGITAL_SIGNATURE; in main()
234 opt.key_usage |= MBEDTLS_X509_KU_NON_REPUDIATION; in main()
236 opt.key_usage |= MBEDTLS_X509_KU_KEY_ENCIPHERMENT; in main()
238 opt.key_usage |= MBEDTLS_X509_KU_DATA_ENCIPHERMENT; in main()
240 opt.key_usage |= MBEDTLS_X509_KU_KEY_AGREEMENT; in main()
242 opt.key_usage |= MBEDTLS_X509_KU_KEY_CERT_SIGN; in main()
244 opt.key_usage |= MBEDTLS_X509_KU_CRL_SIGN; in main()
302 if( opt.key_usage || opt.force_key_usage == 1 ) in main()
[all …]
Dcert_write.c178 unsigned char key_usage; /* key usage flags */ member
271 opt.key_usage = DFL_KEY_USAGE; in main()
407 opt.key_usage |= MBEDTLS_X509_KU_DIGITAL_SIGNATURE; in main()
409 opt.key_usage |= MBEDTLS_X509_KU_NON_REPUDIATION; in main()
411 opt.key_usage |= MBEDTLS_X509_KU_KEY_ENCIPHERMENT; in main()
413 opt.key_usage |= MBEDTLS_X509_KU_DATA_ENCIPHERMENT; in main()
415 opt.key_usage |= MBEDTLS_X509_KU_KEY_AGREEMENT; in main()
417 opt.key_usage |= MBEDTLS_X509_KU_KEY_CERT_SIGN; in main()
419 opt.key_usage |= MBEDTLS_X509_KU_CRL_SIGN; in main()
730 opt.key_usage != 0 ) in main()
[all …]
/third_party/mbedtls/tests/suites/
Dtest_suite_x509write.data25 Certificate Request check Server1 key_usage
27 x509_csr_check:"data_files/server1.key":"data_files/server1.req.key_usage":MBEDTLS_MD_SHA1:MBEDTLS_…
29 Certificate Request check Server1 key_usage empty
41 Certificate Request check Server1 key_usage + ns_cert_type
45 Certificate Request check Server5 ECDSA, key_usage
49 Certificate Request check opaque Server5 ECDSA, key_usage
57 Certificate write check Server1 SHA1, key_usage
59 …ON_REPUDIATION | MBEDTLS_X509_KU_KEY_ENCIPHERMENT:1:0:0:1:-1:"data_files/server1.key_usage.crt":0:0
77 Certificate write check Server1 SHA1, RSA_ALT, key_usage
Dtest_suite_x509write.function80 int key_usage, int set_key_usage, int cert_type,
105 TEST_ASSERT( mbedtls_x509write_csr_set_key_usage( &req, key_usage ) == 0 );
147 void x509_csr_check_opaque( char *key_file, int md_type, int key_usage,
175 if( key_usage != 0 )
176 TEST_ASSERT( mbedtls_x509write_csr_set_key_usage( &req, key_usage ) == 0 );
203 int md_type, int key_usage, int set_key_usage,
275 TEST_ASSERT( mbedtls_x509write_crt_set_key_usage( &crt, key_usage ) == 0 );
Dtest_suite_psa_crypto_persistent_key.function45 int key_usage, int key_alg, int key_alg2 )
55 psa_set_key_usage_flags( &attributes, key_usage );
Dtest_suite_x509parse.data103 x509_cert_info:"data_files/server1.key_usage.crt":"cert. version \: 3\nserial number \: 01\…
2309 x509_check_key_usage:"data_files/server1.key_usage.crt":0:0
2313 x509_check_key_usage:"data_files/server1.key_usage.crt":MBEDTLS_X509_KU_DIGITAL_SIGNATURE:0
2317 x509_check_key_usage:"data_files/server1.key_usage.crt":MBEDTLS_X509_KU_KEY_CERT_SIGN:MBEDTLS_ERR_X…
2321 x509_check_key_usage:"data_files/server1.key_usage.crt":MBEDTLS_X509_KU_DIGITAL_SIGNATURE|MBEDTLS_X…
2325 x509_check_key_usage:"data_files/server1.key_usage.crt":MBEDTLS_X509_KU_KEY_CERT_SIGN|MBEDTLS_X509_…
2329 x509_check_key_usage:"data_files/server1.key_usage.crt":MBEDTLS_X509_KU_KEY_ENCIPHERMENT|MBEDTLS_X5…
2333 x509_check_key_usage:"data_files/server1.key_usage.crt":MBEDTLS_X509_KU_DIGITAL_SIGNATURE|MBEDTLS_X…
/third_party/openssl/crypto/pkcs12/
Dp12_crt.c173 EVP_PKEY *key, int key_usage, int iter, in PKCS12_add_key() argument
183 if (key_usage && !PKCS8_add_keyusage(p8, key_usage)) in PKCS12_add_key()
/third_party/libwebsockets/lib/plat/windows/
Dwindows-sockets.c282 BYTE key_usage[2]; in lws_plat_vhost_tls_client_ctx_init() local
308 key_usage, sizeof(key_usage))) { in lws_plat_vhost_tls_client_ctx_init()
309 if (!(key_usage[0] & CERT_KEY_CERT_SIGN_KEY_USAGE)) in lws_plat_vhost_tls_client_ctx_init()
/third_party/mbedtls/tests/data_files/
DMakefile896 server1.req.key_usage: server1.key
897 …$(MBEDTLS_CERT_REQ) output_file=$@ filename=$< key_usage=digital_signature,non_repudiation,key_enc…
898 all_final += server1.req.key_usage
901 …$(MBEDTLS_CERT_REQ) output_file=$@ filename=$< key_usage=digital_signature,non_repudiation,key_enc…
940 …$(MBEDTLS_CERT_REQ) output_file=$@ filename=$< key_usage=digital_signature,non_repudiation subject…
971 server1.key_usage.crt: server1.key server1.req.sha256 $(test_ca_crt) $(test_ca_key_file_rsa)
972 …a) version=1 not_before=20190210144406 not_after=20290210144406 md=SHA1 key_usage=digital_signatur…
974 …a) version=1 not_before=20190210144406 not_after=20290210144406 md=SHA1 key_usage=digital_signatur…
975 server1.key_usage.der: server1.key_usage.crt
977 all_final += server1.key_usage.crt server1.key_usage_noauthid.crt server1.key_usage.der
[all …]
DReadme-x509.txt64 *CRL for: .cert_type.crt, .crt, .key_usage.crt, .v1.crt
114 - crl.pem, crl-futureRevocationDate.pem, crl_expired.pem: (1) server1{,.cert_type,.key_usage,.v1}.c…
/third_party/mbedtls/library/
Dx509write_crt.c234 unsigned int key_usage ) in mbedtls_x509write_crt_set_key_usage() argument
250 if( ( key_usage & ~allowed_bits ) != 0 ) in mbedtls_x509write_crt_set_key_usage()
254 MBEDTLS_PUT_UINT16_LE( key_usage, ku, 0 ); in mbedtls_x509write_crt_set_key_usage()
Dx509write_csr.c93 int mbedtls_x509write_csr_set_key_usage( mbedtls_x509write_csr *ctx, unsigned char key_usage ) in mbedtls_x509write_csr_set_key_usage() argument
101 ret = mbedtls_asn1_write_named_bitstring( &c, buf, &key_usage, 8 ); in mbedtls_x509write_csr_set_key_usage()
Dx509_crt.c574 unsigned int *key_usage) in x509_get_key_usage() argument
588 *key_usage = 0; in x509_get_key_usage()
591 *key_usage |= (unsigned int) bs.p[i] << (8*i); in x509_get_key_usage()
1011 &crt->key_usage ) ) != 0 ) in x509_get_crt_ext()
1981 if( key_usage & (code) ) \
1985 unsigned int key_usage ) in x509_info_key_usage() argument
2184 if( ( ret = x509_info_key_usage( &p, &n, crt->key_usage ) ) != 0 ) in mbedtls_x509_crt_info()
2267 if( ( ( crt->key_usage & ~may_mask ) & usage_must ) != usage_must ) in mbedtls_x509_crt_check_key_usage()
2272 if( ( ( crt->key_usage & may_mask ) | usage_may ) != usage_may ) in mbedtls_x509_crt_check_key_usage()
Dpsa_crypto.c3823 psa_key_usage_t key_usage = 0; in psa_aead_setup() local
3846 key_usage = PSA_KEY_USAGE_ENCRYPT; in psa_aead_setup()
3848 key_usage = PSA_KEY_USAGE_DECRYPT; in psa_aead_setup()
3850 status = psa_get_and_lock_key_slot_with_policy( key, &slot, key_usage, in psa_aead_setup()
/third_party/mbedtls/include/mbedtls/
Dx509_crt.h87 …unsigned int MBEDTLS_PRIVATE(key_usage); /**< Optional key usage extension value: See the valu…
1127 unsigned int key_usage );
Dx509_csr.h218 int mbedtls_x509write_csr_set_key_usage( mbedtls_x509write_csr *ctx, unsigned char key_usage );
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/
Dx509v3.h83 unsigned long key_usage; member
Dx509v3.c804 cert->key_usage = asn1_bit_string_to_long(hdr.payload, hdr.length); in x509_parse_ext_key_usage()
806 wpa_printf(MSG_DEBUG, "X509: KeyUsage 0x%lx", cert->key_usage); in x509_parse_ext_key_usage()
2060 !(cert->key_usage & X509_KEY_USAGE_KEY_CERT_SIGN)) { in x509_valid_issuer()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/
Dx509v3.h84 unsigned long key_usage; member
Dx509v3.c790 cert->key_usage = asn1_bit_string_to_long(hdr.payload, hdr.length); in x509_parse_ext_key_usage()
792 wpa_printf(MSG_DEBUG, "X509: KeyUsage 0x%lx", cert->key_usage); in x509_parse_ext_key_usage()
2122 !(cert->key_usage & X509_KEY_USAGE_KEY_CERT_SIGN)) { in x509_valid_issuer()
/third_party/openssl/include/openssl/
Dpkcs12.h204 EVP_PKEY *key, int key_usage, int iter,
/third_party/libwebsockets/lib/tls/mbedtls/
Dmbedtls-x509.c130 buf->usage = x509->MBEDTLS_PRIVATE(key_usage); in lws_tls_mbedtls_cert_info()
/third_party/curl/lib/vtls/
Dopenssl.c2921 BYTE key_usage[2]; in ossl_connect_step1() local
2952 key_usage, sizeof(key_usage))) { in ossl_connect_step1()
2953 if(!(key_usage[0] & CERT_KEY_CERT_SIGN_KEY_USAGE)) in ossl_connect_step1()
/third_party/openssl/crypto/objects/
Dobj_mac.num84 key_usage 83
/third_party/mbedtls/
DChangeLog3221 * x509_crt.key_usage changed from unsigned char to unsigned int.
3826 * Certificate Request (CSR) generation with extensions (key_usage,