Home
last modified time | relevance | path

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

/AliOS-Things-master/components/mbedtls/programs/x509/
A Dcert_req.c125 unsigned char key_usage; /* key usage flags */ member
192 opt.key_usage = DFL_KEY_USAGE; in main()
276 opt.key_usage |= MBEDTLS_X509_KU_DIGITAL_SIGNATURE; in main()
278 opt.key_usage |= MBEDTLS_X509_KU_NON_REPUDIATION; in main()
280 opt.key_usage |= MBEDTLS_X509_KU_KEY_ENCIPHERMENT; in main()
282 opt.key_usage |= MBEDTLS_X509_KU_DATA_ENCIPHERMENT; in main()
284 opt.key_usage |= MBEDTLS_X509_KU_KEY_AGREEMENT; in main()
286 opt.key_usage |= MBEDTLS_X509_KU_KEY_CERT_SIGN; in main()
288 opt.key_usage |= MBEDTLS_X509_KU_CRL_SIGN; in main()
328 if( opt.key_usage ) in main()
[all …]
A Dcert_write.c194 unsigned char key_usage; /* key usage flags */ member
287 opt.key_usage = DFL_KEY_USAGE; in main()
428 opt.key_usage |= MBEDTLS_X509_KU_DIGITAL_SIGNATURE; in main()
430 opt.key_usage |= MBEDTLS_X509_KU_NON_REPUDIATION; in main()
432 opt.key_usage |= MBEDTLS_X509_KU_KEY_ENCIPHERMENT; in main()
434 opt.key_usage |= MBEDTLS_X509_KU_DATA_ENCIPHERMENT; in main()
436 opt.key_usage |= MBEDTLS_X509_KU_KEY_AGREEMENT; in main()
438 opt.key_usage |= MBEDTLS_X509_KU_KEY_CERT_SIGN; in main()
440 opt.key_usage |= MBEDTLS_X509_KU_CRL_SIGN; in main()
750 opt.key_usage != 0 ) in main()
[all …]
/AliOS-Things-master/components/mbedtls/library/
A Dx509write_csr.c84 int mbedtls_x509write_csr_set_key_usage( mbedtls_x509write_csr *ctx, unsigned char key_usage ) in mbedtls_x509write_csr_set_key_usage() argument
92 if( ( ret = mbedtls_asn1_write_bitstring( &c, buf, &key_usage, 7 ) ) != 4 ) in mbedtls_x509write_csr_set_key_usage()
A Dx509write_crt.c222 unsigned int key_usage ) in mbedtls_x509write_crt_set_key_usage() argument
229 if( ( key_usage & ~0xfe ) != 0 ) in mbedtls_x509write_crt_set_key_usage()
233 ku = (unsigned char) key_usage; in mbedtls_x509write_crt_set_key_usage()
A Dx509_crt.c545 unsigned int *key_usage) in x509_get_key_usage() argument
559 *key_usage = 0; in x509_get_key_usage()
562 *key_usage |= (unsigned int) bs.p[i] << (8*i); in x509_get_key_usage()
799 &crt->key_usage ) ) != 0 ) in x509_get_crt_ext()
1556 if( key_usage & code ) \
1560 unsigned int key_usage ) in x509_info_key_usage() argument
1789 if( ( ret = x509_info_key_usage( &p, &n, crt->key_usage ) ) != 0 ) in mbedtls_x509_crt_info()
1879 if( ( ( crt->key_usage & ~may_mask ) & usage_must ) != usage_must ) in mbedtls_x509_crt_check_key_usage()
1884 if( ( ( crt->key_usage & may_mask ) | usage_may ) != usage_may ) in mbedtls_x509_crt_check_key_usage()
/AliOS-Things-master/components/mbedtls/include/mbedtls/
A Dx509_crt.h82 unsigned int key_usage; /**< Optional key usage extension value: See the values in x509.h */ member
731 unsigned int key_usage );
A Dx509_csr.h209 int mbedtls_x509write_csr_set_key_usage( mbedtls_x509write_csr *ctx, unsigned char key_usage );
/AliOS-Things-master/components/mbedtls/
A DChangeLog1552 * x509_crt.key_usage changed from unsigned char to unsigned int.
2157 * Certificate Request (CSR) generation with extensions (key_usage,

Completed in 17 milliseconds