/mbedtls-development/programs/x509/ |
A D | cert_req.c | 114 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 …]
|
A D | cert_write.c | 178 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 …]
|
/mbedtls-development/tests/suites/ |
A D | test_suite_x509write.data | 25 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
|
A D | test_suite_x509write.function | 80 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 );
|
A D | test_suite_psa_crypto_persistent_key.function | 45 int key_usage, int key_alg, int key_alg2 ) 55 psa_set_key_usage_flags( &attributes, key_usage );
|
A D | test_suite_x509parse.data | 103 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…
|
/mbedtls-development/tests/data_files/ |
A D | Makefile | 896 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) 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 1032 server1.crt.openssl server1.key_usage.crt.openssl server1.cert_type.crt.openssl: server1.key server… 1039 server1.key_usage.der.openssl: server1.key_usage.crt.openssl [all …]
|
A D | Readme-x509.txt | 64 *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…
|
/mbedtls-development/library/ |
A D | x509write_crt.c | 234 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()
|
A D | x509write_csr.c | 93 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()
|
A D | x509_crt.c | 574 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()
|
A D | psa_crypto.c | 3779 psa_key_usage_t key_usage = 0; in psa_aead_setup() local 3801 key_usage = PSA_KEY_USAGE_ENCRYPT; in psa_aead_setup() 3803 key_usage = PSA_KEY_USAGE_DECRYPT; in psa_aead_setup() 3805 status = psa_get_and_lock_key_slot_with_policy( key, &slot, key_usage, in psa_aead_setup()
|
/mbedtls-development/include/mbedtls/ |
A D | x509_csr.h | 218 int mbedtls_x509write_csr_set_key_usage( mbedtls_x509write_csr *ctx, unsigned char key_usage );
|
A D | x509_crt.h | 87 …unsigned int MBEDTLS_PRIVATE(key_usage); /**< Optional key usage extension value: See the valu… 1127 unsigned int key_usage );
|
/mbedtls-development/ |
A D | ChangeLog | 3042 * x509_crt.key_usage changed from unsigned char to unsigned int. 3647 * Certificate Request (CSR) generation with extensions (key_usage,
|