| /third_party/mbedtls/tests/suites/ |
| D | test_suite_psa_crypto_attributes.function | 15 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; 24 MBEDTLS_SVC_KEY_ID_GET_KEY_ID(psa_get_key_id(&attributes)), 0); 26 MBEDTLS_SVC_KEY_ID_GET_OWNER_ID(psa_get_key_id(&attributes)), 0); 27 TEST_EQUAL(psa_get_key_lifetime(&attributes), 0); 28 TEST_EQUAL(psa_get_key_usage_flags(&attributes), 0); 29 TEST_EQUAL(psa_get_key_algorithm(&attributes), 0); 30 TEST_EQUAL(psa_get_key_type(&attributes), 0); 31 TEST_EQUAL(psa_get_key_bits(&attributes), 0); 33 psa_set_key_id(&attributes, id); 34 psa_set_key_lifetime(&attributes, lifetime); [all …]
|
| D | test_suite_psa_crypto_persistent_key.function | 53 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; 55 psa_set_key_lifetime(&attributes, key_lifetime); 56 psa_set_key_type(&attributes, key_type); 57 psa_set_key_bits(&attributes, key_bits); 58 psa_set_key_usage_flags(&attributes, key_usage); 59 psa_set_key_algorithm(&attributes, key_alg); 60 psa_set_key_enrollment_algorithm(&attributes, key_alg2); 64 &attributes, 88 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; 93 &attributes); [all …]
|
| D | test_suite_psa_crypto_slot_management.function | 119 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; 128 mbedtls_set_key_owner_id(&attributes, owner_id); 133 psa_set_key_usage_flags(&attributes, usage_flags); 134 psa_set_key_algorithm(&attributes, alg); 135 psa_set_key_type(&attributes, type); 136 PSA_ASSERT(psa_import_key(&attributes, key_data->x, key_data->len, 139 PSA_ASSERT(psa_get_key_attributes(key, &attributes)); 140 TEST_EQUAL(psa_get_key_type(&attributes), type); 141 psa_reset_key_attributes(&attributes); 152 TEST_EQUAL(psa_get_key_attributes(key_with_invalid_owner, &attributes), [all …]
|
| D | test_suite_psa_crypto_se_driver_hal_mocks.function | 22 psa_key_attributes_t attributes; 30 psa_key_attributes_t attributes; 128 const psa_key_attributes_t *attributes, 139 mock_generate_data.attributes = *attributes; 147 const psa_key_attributes_t *attributes, 159 mock_import_data.attributes = *attributes; 245 const psa_key_attributes_t *attributes, 251 (void) attributes; 331 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; 348 psa_set_key_id(&attributes, id); [all …]
|
| D | test_suite_psa_crypto_op_fail.function | 79 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; 87 psa_set_key_type(&attributes, key_type); 88 psa_set_key_usage_flags(&attributes, 91 psa_set_key_algorithm(&attributes, alg); 92 PSA_ASSERT(psa_import_key(&attributes, 112 psa_reset_key_attributes(&attributes); 125 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; 133 psa_set_key_type(&attributes, key_type); 134 psa_set_key_usage_flags(&attributes, 137 psa_set_key_algorithm(&attributes, alg); [all …]
|
| D | test_suite_psa_crypto_storage_format.function | 13 /** Write a key with the given attributes and key material to storage. 19 static int test_written_key(const psa_key_attributes_t *attributes, 31 PSA_ASSERT(psa_import_key(attributes, material->x, material->len, 33 TEST_ASSERT(mbedtls_svc_key_id_equal(psa_get_key_id(attributes), 53 static int can_export(const psa_key_attributes_t *attributes) 55 if (psa_get_key_usage_flags(attributes) & PSA_KEY_USAGE_EXPORT) { 57 } else if (PSA_KEY_TYPE_IS_PUBLIC_KEY(psa_get_key_type(attributes))) { 89 static int can_exercise(const psa_key_attributes_t *attributes) 91 psa_key_type_t key_type = psa_get_key_type(attributes); 92 psa_algorithm_t alg = psa_get_key_algorithm(attributes); [all …]
|
| D | test_suite_psa_crypto_se_driver_hal.function | 133 const psa_key_attributes_t *attributes, 139 (void) attributes; 155 const psa_key_attributes_t *attributes, 160 (void) attributes; 178 const psa_key_attributes_t *attributes, 185 (void) attributes; 198 const psa_key_attributes_t *attributes, 205 (void) attributes; 208 if (!PSA_KEY_TYPE_IS_KEY_PAIR(psa_get_key_type(attributes))) { 268 const psa_key_attributes_t *attributes, [all …]
|
| D | test_suite_psa_crypto_driver_wrappers.function | 505 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; 517 psa_set_key_type(&attributes, 519 psa_set_key_usage_flags(&attributes, PSA_KEY_USAGE_SIGN_HASH); 520 psa_set_key_algorithm(&attributes, alg); 521 psa_import_key(&attributes, 535 PSA_ASSERT(psa_get_key_attributes(key, &attributes)); 536 key_bits = psa_get_key_bits(&attributes); 555 psa_reset_key_attributes(&attributes); 581 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; 588 psa_set_key_type(&attributes, key_type_public); [all …]
|
| D | test_suite_psa_crypto_generate_key.function | 18 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; 27 psa_set_key_type(&attributes, key_type); 28 psa_set_key_bits(&attributes, bits); 29 TEST_EQUAL(psa_generate_key(&attributes, &key_id), 32 // Verify attributes of the created key on success 34 psa_reset_key_attributes(&attributes); 35 PSA_ASSERT(psa_get_key_attributes(key_id, &attributes)); 36 TEST_EQUAL(psa_get_key_lifetime(&attributes), PSA_KEY_LIFETIME_VOLATILE); 37 TEST_EQUAL(psa_get_key_usage_flags(&attributes), 0); 38 TEST_EQUAL(psa_get_key_algorithm(&attributes), 0); [all …]
|
| D | test_suite_psa_crypto.function | 186 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; 188 psa_set_key_usage_flags(&attributes, PSA_KEY_USAGE_SIGN_HASH); 189 psa_set_key_algorithm(&attributes, alg); 190 psa_set_key_type(&attributes, key_type); 191 PSA_ASSERT(psa_import_key(&attributes, key_bytes, key_length, &key)); 218 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; 220 psa_set_key_usage_flags(&attributes, PSA_KEY_USAGE_ENCRYPT); 221 psa_set_key_algorithm(&attributes, alg); 222 psa_set_key_type(&attributes, key_type); 223 PSA_ASSERT(psa_import_key(&attributes, key_bytes, key_length, &key)); [all …]
|
| /third_party/gptfdisk/ |
| D | attributes.cc | 1 // attributes.cc 19 #include "attributes.h" 24 string Attributes::atNames[NUM_ATR]; 25 int Attributes::numAttrs = 0; 26 //Attributes::staticInit Attributes::staticInitializer; 29 Attributes::Attributes(void) { in Attributes() function in Attributes 33 attributes = 0; in Attributes() 37 Attributes::Attributes(const uint64_t a) { in Attributes() function in Attributes 41 attributes = a; in Attributes() 45 Attributes::~Attributes(void) { in ~Attributes() [all …]
|
| /third_party/vk-gl-cts/modules/gles3/functional/ |
| D | es3fVertexArrayObjectTests.cpp | 75 vector<Attribute> attributes; member 201 for (int attribNdx = 0; attribNdx < (int)state.attributes.size(); attribNdx++) in logVertexArrayState() 205 …<< "\tGL_VERTEX_ATTRIB_ARRAY_ENABLED : " << (state.attributes[attribNdx].enabled ? "GL_TRUE" : "GL… in logVertexArrayState() 206 << "\tGL_VERTEX_ATTRIB_ARRAY_SIZE : " << state.attributes[attribNdx].size << "\n" in logVertexArrayState() 207 << "\tGL_VERTEX_ATTRIB_ARRAY_STRIDE : " << state.attributes[attribNdx].stride << "\n" in logVertexArrayState() 208 << "\tGL_VERTEX_ATTRIB_ARRAY_TYPE : " << state.attributes[attribNdx].type << "\n" in logVertexArrayState() 209 …<< "\tGL_VERTEX_ATTRIB_ARRAY_NORMALIZED : " << (state.attributes[attribNdx].normalized ? "GL_TRUE"… in logVertexArrayState() 210 …<< "\tGL_VERTEX_ATTRIB_ARRAY_INTEGER : " << (state.attributes[attribNdx].integer ? "GL_TRUE" : "GL… in logVertexArrayState() 211 << "\tGL_VERTEX_ATTRIB_ARRAY_DIVISOR : " << state.attributes[attribNdx].divisor << "\n" in logVertexArrayState() 212 << "\tGL_VERTEX_ATTRIB_ARRAY_POINTER : " << state.attributes[attribNdx].offset << "\n" in logVertexArrayState() [all …]
|
| /third_party/mbedtls/tests/src/drivers/ |
| D | test_driver_key_management.c | 192 const psa_key_attributes_t *attributes, in mbedtls_test_transparent_generate_key() argument 212 if (PSA_KEY_TYPE_IS_ECC(psa_get_key_type(attributes)) in mbedtls_test_transparent_generate_key() 213 && PSA_KEY_TYPE_IS_KEY_PAIR(psa_get_key_type(attributes))) { in mbedtls_test_transparent_generate_key() 217 (const libtestdriver1_psa_key_attributes_t *) attributes, in mbedtls_test_transparent_generate_key() 221 attributes, key, key_size, key_length); in mbedtls_test_transparent_generate_key() 223 } else if (psa_get_key_type(attributes) == PSA_KEY_TYPE_RSA_KEY_PAIR) { in mbedtls_test_transparent_generate_key() 227 (const libtestdriver1_psa_key_attributes_t *) attributes, in mbedtls_test_transparent_generate_key() 232 attributes, in mbedtls_test_transparent_generate_key() 236 } else if (PSA_KEY_TYPE_IS_DH(psa_get_key_type(attributes)) in mbedtls_test_transparent_generate_key() 237 && PSA_KEY_TYPE_IS_KEY_PAIR(psa_get_key_type(attributes))) { in mbedtls_test_transparent_generate_key() [all …]
|
| D | test_driver_signature.c | 42 const psa_key_attributes_t *attributes, in sign_hash() argument 52 if (attributes->type == PSA_KEY_TYPE_RSA_KEY_PAIR) { in sign_hash() 59 (const libtestdriver1_psa_key_attributes_t *) attributes, in sign_hash() 66 attributes, in sign_hash() 74 } else if (PSA_KEY_TYPE_IS_ECC(attributes->type)) { in sign_hash() 80 (const libtestdriver1_psa_key_attributes_t *) attributes, in sign_hash() 87 attributes, in sign_hash() 97 (void) attributes; in sign_hash() 110 const psa_key_attributes_t *attributes, in verify_hash() argument 119 if (PSA_KEY_TYPE_IS_RSA(attributes->type)) { in verify_hash() [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/core/ops/ |
| D | adder.h | 38 /// \brief Method to init the op's attributes. 53 /// \brief Method to set in_channel attributes. 58 /// \brief Method to set out_channel attributes. 63 /// \brief Method to set kernel_size attributes. 68 /// \brief Method to set pad_mode attributes. 73 /// \brief Method to set stride attributes. 78 /// \brief Method to set pad_list attributes. 83 /// \brief Method to set dilation attributes. 88 /// \brief Method to set group attributes. 93 /// \brief Method to set format attributes. [all …]
|
| D | split_with_overlap.h | 33 /// \brief Method to init the op's attributes. 47 /// \brief Method to set ratio attributes. 52 /// \brief Method to set extend_top attributes. 57 /// \brief Method to set extend_bottom attributes. 62 /// \brief Method to set number_split attributes. 67 /// \brief Method to set split_dim attributes. 72 /// \brief Method to set stride attributes. 77 /// \brief Method to set pad_top attributes. 82 /// \brief Method to set trans_format attributes. 87 /// \brief Method to get ratio attributes. [all …]
|
| /third_party/typescript/tests/baselines/reference/ |
| D | tsxAttributesHasInferrableIndex.types | 5 interface Attributes { 9 function createElement(name: string, attributes: Attributes | undefined, ...contents: string[]) { 10 >createElement : (name: string, attributes: Attributes | undefined, ...contents: string[]) => string 12 >attributes : Attributes | undefined 23 function Button(attributes: Attributes | undefined, contents: string[]) { 24 >Button : (attributes: Attributes | undefined, contents: string[]) => string 25 >attributes : Attributes | undefined 34 >Button : (attributes: Attributes | undefined, contents: string[]) => string 35 >Button : (attributes: Attributes | undefined, contents: string[]) => string
|
| D | tsxAttributesHasInferrableIndex.symbols | 6 interface Attributes { 7 >Attributes : Symbol(Attributes, Decl(tsxAttributesHasInferrableIndex.tsx, 0, 55)) 13 function createElement(name: string, attributes: Attributes | undefined, ...contents: string[]) { 16 >attributes : Symbol(attributes, Decl(tsxAttributesHasInferrableIndex.tsx, 4, 36)) 17 >Attributes : Symbol(Attributes, Decl(tsxAttributesHasInferrableIndex.tsx, 0, 55)) 31 function Button(attributes: Attributes | undefined, contents: string[]) { 33 >attributes : Symbol(attributes, Decl(tsxAttributesHasInferrableIndex.tsx, 11, 16)) 34 >Attributes : Symbol(Attributes, Decl(tsxAttributesHasInferrableIndex.tsx, 0, 55))
|
| /third_party/mindspore/mindspore-src/source/tests/st/pi_jit/operation/ |
| D | test_maxpool.py | 18 attributes = {"pad_mode": "VALID", 21 fact = MaxPoolMock(attributes=attributes, inputs=[inputs]) 37 attributes = {"pad_mode": "same", 40 fact = MaxPoolMock(attributes=attributes, inputs=[inputs]) 57 attributes = {"pad_mode": "VALID", 60 fact = MaxPoolMock(attributes=attributes, inputs=[inputs]) 76 attributes = {"pad_mode": "SAME", 80 fact = MaxPoolMock(attributes=attributes, inputs=[inputs]) 97 attributes = {"pad_mode": "valid", 100 fact = MaxPoolMock(attributes=attributes, inputs=[inputs]) [all …]
|
| /third_party/skia/tools/sk_app/mac/ |
| D | GLWindowContext_mac.mm | 73 NSOpenGLPixelFormatAttribute attributes[kMaxAttributes]; 75 attributes[numAttributes++] = NSOpenGLPFAAccelerated; 76 attributes[numAttributes++] = NSOpenGLPFAClosestPolicy; 77 attributes[numAttributes++] = NSOpenGLPFADoubleBuffer; 78 attributes[numAttributes++] = NSOpenGLPFAOpenGLProfile; 79 attributes[numAttributes++] = NSOpenGLProfileVersion3_2Core; 80 attributes[numAttributes++] = NSOpenGLPFAColorSize; 81 attributes[numAttributes++] = 24; 82 attributes[numAttributes++] = NSOpenGLPFAAlphaSize; 83 attributes[numAttributes++] = 8; [all …]
|
| D | RasterWindowContext_mac.mm | 78 NSOpenGLPixelFormatAttribute attributes[kMaxAttributes]; 80 attributes[numAttributes++] = NSOpenGLPFAAccelerated; 81 attributes[numAttributes++] = NSOpenGLPFAClosestPolicy; 82 attributes[numAttributes++] = NSOpenGLPFADoubleBuffer; 83 attributes[numAttributes++] = NSOpenGLPFAOpenGLProfile; 84 attributes[numAttributes++] = NSOpenGLProfileVersion3_2Core; 85 attributes[numAttributes++] = NSOpenGLPFAColorSize; 86 attributes[numAttributes++] = 24; 87 attributes[numAttributes++] = NSOpenGLPFAAlphaSize; 88 attributes[numAttributes++] = 8; [all …]
|
| /third_party/vk-gl-cts/modules/glshared/ |
| D | glsAttributeLocationTests.cpp | 73 bool hasAttributeAliasing (const vector<Attribute>& attributes, const map<string, deUint32>& bindin… in hasAttributeAliasing() argument 77 for (int attribNdx = 0; attribNdx < (int)attributes.size(); attribNdx++) in hasAttributeAliasing() 79 const deInt32 location = getBoundLocation(bindings, attributes[attribNdx].getName()); in hasAttributeAliasing() 80 const deUint32 size = attributes[attribNdx].getType().getLocationSize(); in hasAttributeAliasing() 111 string generateAttributeDefinitions (const vector<Attribute>& attributes) in generateAttributeDefinitions() argument 115 for (vector<Attribute>::const_iterator iter = attributes.begin(); iter != attributes.end(); ++iter) in generateAttributeDefinitions() 129 string generateConditionUniformDefinitions (const vector<Attribute>& attributes) in generateConditionUniformDefinitions() argument 134 for (vector<Attribute>::const_iterator iter = attributes.begin(); iter != attributes.end(); ++iter) in generateConditionUniformDefinitions() 173 string generateOutputCode (const vector<Attribute>& attributes) in generateOutputCode() argument 177 for (vector<Attribute>::const_iterator iter = attributes.begin(); iter != attributes.end(); ++iter) in generateOutputCode() [all …]
|
| /third_party/mbedtls/library/ |
| D | psa_crypto_driver_wrappers.c | 122 psa_status_t psa_driver_wrapper_sign_message(const psa_key_attributes_t *attributes, const uint8_t … in psa_driver_wrapper_sign_message() argument 128 psa_key_location_t location = PSA_KEY_LIFETIME_GET_LOCATION(psa_get_key_lifetime(attributes)); in psa_driver_wrapper_sign_message() 136 …status = mbedtls_test_transparent_signature_sign_message(attributes, key_buffer, key_buffer_size, … in psa_driver_wrapper_sign_message() 151 … mbedtls_test_opaque_signature_sign_message(attributes, key_buffer, key_buffer_size, alg, input, in psa_driver_wrapper_sign_message() 164 …return (psa_sign_message_builtin(attributes, key_buffer, key_buffer_size, alg, input, input_length… in psa_driver_wrapper_sign_message() 168 psa_status_t psa_driver_wrapper_verify_message(const psa_key_attributes_t *attributes, const uint8_… in psa_driver_wrapper_verify_message() argument 173 psa_key_location_t location = PSA_KEY_LIFETIME_GET_LOCATION(psa_get_key_lifetime(attributes)); in psa_driver_wrapper_verify_message() 182 … attributes, key_buffer, key_buffer_size, alg, input, input_length, signature, signature_length); in psa_driver_wrapper_verify_message() 194 …return (mbedtls_test_opaque_signature_verify_message(attributes, key_buffer, key_buffer_size, alg,… in psa_driver_wrapper_verify_message() 207 …return (psa_verify_message_builtin(attributes, key_buffer, key_buffer_size, alg, input, input_leng… in psa_driver_wrapper_verify_message() [all …]
|
| D | psa_crypto_driver_wrappers.h | 78 const psa_key_attributes_t *attributes, 89 const psa_key_attributes_t *attributes, 99 const psa_key_attributes_t *attributes, 105 const psa_key_attributes_t *attributes, 118 const psa_key_attributes_t *attributes, const uint8_t *key_buffer, 132 const psa_key_attributes_t *attributes, const uint8_t *key_buffer, 146 * \param[in] attributes The key attributes 156 const psa_key_attributes_t *attributes, 162 const psa_key_attributes_t *attributes, 167 const psa_key_attributes_t *attributes, [all …]
|
| /third_party/mbedtls/scripts/data_files/driver_templates/ |
| D | psa_crypto_driver_wrappers.h.jinja | 113 const psa_key_attributes_t *attributes, 125 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); 135 attributes, 156 attributes, 176 return( psa_sign_message_builtin( attributes, 188 const psa_key_attributes_t *attributes, 199 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); 209 attributes, 229 attributes, 248 return( psa_verify_message_builtin( attributes, [all …]
|