Searched refs:key_usage (Results 1 – 12 of 12) sorted by relevance
/net-tools-3.6.0/mbedtls-2.4.0/programs/x509/ |
D | cert_req.c | 101 unsigned char key_usage; /* key usage flags */ member 167 opt.key_usage = DFL_KEY_USAGE; in main() 200 opt.key_usage |= MBEDTLS_X509_KU_DIGITAL_SIGNATURE; in main() 202 opt.key_usage |= MBEDTLS_X509_KU_NON_REPUDIATION; in main() 204 opt.key_usage |= MBEDTLS_X509_KU_KEY_ENCIPHERMENT; in main() 206 opt.key_usage |= MBEDTLS_X509_KU_DATA_ENCIPHERMENT; in main() 208 opt.key_usage |= MBEDTLS_X509_KU_KEY_AGREEMENT; in main() 210 opt.key_usage |= MBEDTLS_X509_KU_KEY_CERT_SIGN; in main() 212 opt.key_usage |= MBEDTLS_X509_KU_CRL_SIGN; in main() 250 if( opt.key_usage ) in main() [all …]
|
D | cert_write.c | 152 unsigned char key_usage; /* key usage flags */ member 244 opt.key_usage = DFL_KEY_USAGE; in main() 315 opt.key_usage |= MBEDTLS_X509_KU_DIGITAL_SIGNATURE; in main() 317 opt.key_usage |= MBEDTLS_X509_KU_NON_REPUDIATION; in main() 319 opt.key_usage |= MBEDTLS_X509_KU_KEY_ENCIPHERMENT; in main() 321 opt.key_usage |= MBEDTLS_X509_KU_DATA_ENCIPHERMENT; in main() 323 opt.key_usage |= MBEDTLS_X509_KU_KEY_AGREEMENT; in main() 325 opt.key_usage |= MBEDTLS_X509_KU_KEY_CERT_SIGN; in main() 327 opt.key_usage |= MBEDTLS_X509_KU_CRL_SIGN; in main() 603 if( opt.key_usage ) in main() [all …]
|
/net-tools-3.6.0/mbedtls-2.4.0/tests/suites/ |
D | test_suite_x509write.data | 29 Certificate Request check Server1 key_usage 31 x509_csr_check:"data_files/server1.key":"data_files/server1.req.key_usage":MBEDTLS_MD_SHA1:MBEDTLS_… 37 Certificate Request check Server1 key_usage + ns_cert_type 41 Certificate Request check Server5 ECDSA, key_usage 49 Certificate write check Server1 SHA1, key_usage 51 …_X509_KU_NON_REPUDIATION | MBEDTLS_X509_KU_KEY_ENCIPHERMENT:0:-1:"data_files/server1.key_usage.crt"
|
D | test_suite_x509write.function | 15 int md_type, int key_usage, int cert_type ) 37 if( key_usage != 0 ) 38 TEST_ASSERT( mbedtls_x509write_csr_set_key_usage( &req, key_usage ) == 0 ); 78 int md_type, int key_usage, int cert_type, int ver, 120 if( key_usage != 0 ) 121 TEST_ASSERT( mbedtls_x509write_crt_set_key_usage( &crt, key_usage ) == 0 );
|
D | test_suite_x509parse.data | 91 x509_cert_info:"data_files/server1.key_usage.crt":"cert. version \: 3\nserial number \: 01\… 1251 x509_check_key_usage:"data_files/server1.key_usage.crt":0:0 1255 x509_check_key_usage:"data_files/server1.key_usage.crt":MBEDTLS_X509_KU_DIGITAL_SIGNATURE:0 1259 x509_check_key_usage:"data_files/server1.key_usage.crt":MBEDTLS_X509_KU_KEY_CERT_SIGN:MBEDTLS_ERR_X… 1263 x509_check_key_usage:"data_files/server1.key_usage.crt":MBEDTLS_X509_KU_DIGITAL_SIGNATURE|MBEDTLS_X… 1267 x509_check_key_usage:"data_files/server1.key_usage.crt":MBEDTLS_X509_KU_KEY_CERT_SIGN|MBEDTLS_X509_… 1271 x509_check_key_usage:"data_files/server1.key_usage.crt":MBEDTLS_X509_KU_KEY_ENCIPHERMENT|MBEDTLS_X5… 1275 x509_check_key_usage:"data_files/server1.key_usage.crt":MBEDTLS_X509_KU_DIGITAL_SIGNATURE|MBEDTLS_X…
|
/net-tools-3.6.0/mbedtls-2.4.0/include/mbedtls/ |
D | x509_crt.h | 81 unsigned int key_usage; /**< Optional key usage extension value: See the values in x509.h */ member 582 unsigned int key_usage );
|
D | x509_csr.h | 208 int mbedtls_x509write_csr_set_key_usage( mbedtls_x509write_csr *ctx, unsigned char key_usage );
|
/net-tools-3.6.0/mbedtls-2.4.0/library/ |
D | x509write_csr.c | 88 int mbedtls_x509write_csr_set_key_usage( mbedtls_x509write_csr *ctx, unsigned char key_usage ) in mbedtls_x509write_csr_set_key_usage() argument 96 if( ( ret = mbedtls_asn1_write_bitstring( &c, buf, &key_usage, 7 ) ) != 4 ) in mbedtls_x509write_csr_set_key_usage()
|
D | x509write_crt.c | 220 unsigned int key_usage ) in mbedtls_x509write_crt_set_key_usage() argument 227 if( ( key_usage & ~0xfe ) != 0 ) in mbedtls_x509write_crt_set_key_usage() 231 ku = (unsigned char) key_usage; in mbedtls_x509write_crt_set_key_usage()
|
D | x509_crt.c | 372 unsigned int *key_usage) in x509_get_key_usage() argument 386 *key_usage = 0; in x509_get_key_usage() 389 *key_usage |= (unsigned int) bs.p[i] << (8*i); in x509_get_key_usage() 622 &crt->key_usage ) ) != 0 ) in x509_get_crt_ext() 1295 if( key_usage & code ) \ 1299 unsigned int key_usage ) in x509_info_key_usage() argument 1468 if( ( ret = x509_info_key_usage( &p, &n, crt->key_usage ) ) != 0 ) in mbedtls_x509_crt_info() 1558 if( ( ( crt->key_usage & ~may_mask ) & usage_must ) != usage_must ) in mbedtls_x509_crt_check_key_usage() 1563 if( ( ( crt->key_usage & may_mask ) | usage_may ) != usage_may ) in mbedtls_x509_crt_check_key_usage()
|
/net-tools-3.6.0/mbedtls-2.4.0/tests/data_files/ |
D | Readme-x509.txt | 58 *CRL for: .cert_type.crt, .crt, .key_usage.crt, .v1.crt 86 - crl.pem, crl_expired.pem: (1) server1{,.cert_type,.key_usage,.v1}.crt + unknown
|
/net-tools-3.6.0/mbedtls-2.4.0/ |
D | ChangeLog | 461 * x509_crt.key_usage changed from unsigned char to unsigned int. 1066 * Certificate Request (CSR) generation with extensions (key_usage,
|