/trusted-firmware-m-3.7.0/lib/ext/t_cose/src/ |
D | t_cose_crypto.h | 154 t_cose_crypto_sig_size(int32_t cose_algorithm_id, 216 t_cose_crypto_pub_key_sign(int32_t cose_algorithm_id, 274 t_cose_crypto_pub_key_verify(int32_t cose_algorithm_id, 660 static bool t_cose_algorithm_is_ecdsa(int32_t cose_algorithm_id); 685 t_cose_check_list(int32_t cose_algorithm_id, const int32_t *list) in t_cose_check_list() argument 688 if(*list == cose_algorithm_id) { in t_cose_check_list() 697 static inline bool t_cose_algorithm_is_ecdsa(int32_t cose_algorithm_id) in t_cose_algorithm_is_ecdsa() argument 710 return t_cose_check_list(cose_algorithm_id, ecdsa_list); in t_cose_algorithm_is_ecdsa()
|
D | t_cose_sign1_sign.c | 71 short_circuit_sign(int32_t cose_algorithm_id, in short_circuit_sign() argument 83 sig_size = cose_algorithm_id == COSE_ALGORITHM_ES256 ? T_COSE_EC_P256_SIG_SIZE : in short_circuit_sign() 84 cose_algorithm_id == COSE_ALGORITHM_ES384 ? T_COSE_EC_P384_SIG_SIZE : in short_circuit_sign() 85 cose_algorithm_id == COSE_ALGORITHM_ES512 ? T_COSE_EC_P512_SIG_SIZE : in short_circuit_sign() 144 encode_protected_parameters(int32_t cose_algorithm_id, in encode_protected_parameters() argument 161 cose_algorithm_id); in encode_protected_parameters() 249 hash_alg_id = hash_alg_id_from_sig_alg_id(me->cose_algorithm_id); in t_cose_sign1_encode_parameters() 265 …me->protected_parameters = encode_protected_parameters(me->cose_algorithm_id, buffer_for_protected… in t_cose_sign1_encode_parameters() 357 return_value = t_cose_crypto_sig_size(me->cose_algorithm_id, in t_cose_sign1_encode_signature() 368 return_value = create_tbs_hash(me->cose_algorithm_id, in t_cose_sign1_encode_signature() [all …]
|
D | t_cose_util.c | 32 int32_t hash_alg_id_from_sig_alg_id(int32_t cose_algorithm_id) in hash_alg_id_from_sig_alg_id() argument 42 return cose_algorithm_id == COSE_ALGORITHM_ES256 ? COSE_ALGORITHM_SHA_256 : in hash_alg_id_from_sig_alg_id() 44 cose_algorithm_id == COSE_ALGORITHM_ES384 ? COSE_ALGORITHM_SHA_384 : in hash_alg_id_from_sig_alg_id() 47 cose_algorithm_id == COSE_ALGORITHM_ES512 ? COSE_ALGORITHM_SHA_512 : in hash_alg_id_from_sig_alg_id() 153 enum t_cose_err_t create_tbs_hash(int32_t cose_algorithm_id, in create_tbs_hash() argument 219 hash_alg_id = hash_alg_id_from_sig_alg_id(cose_algorithm_id); in create_tbs_hash()
|
D | t_cose_mac0_sign.c | 47 encode_protected_parameters(int32_t cose_algorithm_id, in encode_protected_parameters() argument 64 cose_algorithm_id); in encode_protected_parameters() 221 tag_len = t_cose_tag_size(me->cose_algorithm_id); in t_cose_mac0_encode_parameters() 240 encode_protected_parameters(me->cose_algorithm_id, in t_cose_mac0_encode_parameters() 325 tag.len = t_cose_tag_size(me->cose_algorithm_id); in t_cose_mac0_encode_tag() 356 return_value = short_circuit_tag(me->cose_algorithm_id, in t_cose_mac0_encode_tag() 374 me->cose_algorithm_id); in t_cose_mac0_encode_tag()
|
D | t_cose_util.h | 127 int32_t hash_alg_id_from_sig_alg_id(int32_t cose_algorithm_id); 189 enum t_cose_err_t create_tbs_hash(int32_t cose_algorithm_id,
|
D | t_cose_parameters.c | 454 if(returned_parameters->cose_algorithm_id != COSE_ALGORITHM_RESERVED) { in parse_cose_header_parameters() 458 returned_parameters->cose_algorithm_id = (int32_t)item.val.int64; in parse_cose_header_parameters() 640 if(protected->cose_algorithm_id != COSE_ALGORITHM_RESERVED) { in check_and_copy_parameters() 641 if(unprotected->cose_algorithm_id != COSE_ALGORITHM_RESERVED) { in check_and_copy_parameters() 646 returned_params->cose_algorithm_id = protected->cose_algorithm_id; in check_and_copy_parameters()
|
D | t_cose_sign1_verify.c | 204 return_value = create_tbs_hash(parsed_protected_parameters.cose_algorithm_id, in t_cose_sign1_verify() 231 return_value = t_cose_crypto_pub_key_verify(parsed_protected_parameters.cose_algorithm_id, in t_cose_sign1_verify()
|
D | t_cose_mac0_verify.c | 223 parsed_protected_parameters.cose_algorithm_id, in t_cose_mac0_verify() 239 parsed_protected_parameters.cose_algorithm_id, in t_cose_mac0_verify()
|
/trusted-firmware-m-3.7.0/lib/ext/t_cose/inc/ |
D | t_cose_mac0_sign.h | 51 int32_t cose_algorithm_id; member 88 int32_t cose_algorithm_id); 212 int32_t cose_algorithm_id) in t_cose_mac0_sign_init() argument 221 me->cose_algorithm_id = cose_algorithm_id; in t_cose_mac0_sign_init()
|
D | t_cose_sign1_sign.h | 71 int32_t cose_algorithm_id; member 136 int32_t cose_algorithm_id); 325 int32_t cose_algorithm_id) in t_cose_sign1_sign_init() argument 333 me->cose_algorithm_id = cose_algorithm_id; in t_cose_sign1_sign_init()
|
D | t_cose_common.h | 417 int32_t cose_algorithm_id; member
|
/trusted-firmware-m-3.7.0/lib/ext/t_cose/test/ |
D | t_cose_make_test_messages.c | 52 short_circuit_sign(int32_t cose_algorithm_id, in short_circuit_sign() argument 64 sig_size = cose_algorithm_id == COSE_ALGORITHM_ES256 ? T_COSE_EC_P256_SIG_SIZE : in short_circuit_sign() 65 cose_algorithm_id == COSE_ALGORITHM_ES384 ? T_COSE_EC_P384_SIG_SIZE : in short_circuit_sign() 66 cose_algorithm_id == COSE_ALGORITHM_ES512 ? T_COSE_EC_P512_SIG_SIZE : in short_circuit_sign() 124 int32_t cose_algorithm_id, in encode_protected_parameters() argument 159 cose_algorithm_id); in encode_protected_parameters() 399 hash_alg_id = hash_alg_id_from_sig_alg_id(me->cose_algorithm_id); in t_cose_sign1_test_message_encode_parameters() 416 me->cose_algorithm_id, in t_cose_sign1_test_message_encode_parameters() 510 return_value = create_tbs_hash(me->cose_algorithm_id, in t_cose_sign1_test_message_output_signature() 532 return_value = t_cose_crypto_pub_key_sign(me->cose_algorithm_id, in t_cose_sign1_test_message_output_signature() [all …]
|
D | t_cose_sign_verify_test.c | 337 static int size_test(int32_t cose_algorithm_id, in size_test() argument 354 return_value = t_cose_crypto_sig_size(cose_algorithm_id, key_pair, &sig_size); in size_test() 360 t_cose_sign1_sign_init(&sign_ctx, 0, cose_algorithm_id); in size_test() 392 t_cose_sign1_sign_init(&sign_ctx, 0, cose_algorithm_id); in size_test() 413 t_cose_sign1_sign_init(&sign_ctx, 0, cose_algorithm_id); in size_test()
|
D | t_cose_make_test_pub_key.h | 26 enum t_cose_err_t make_ecdsa_key_pair(int32_t cose_algorithm_id,
|
D | t_cose_make_openssl_test_key.c | 76 enum t_cose_err_t make_ecdsa_key_pair(int32_t cose_algorithm_id, in make_ecdsa_key_pair() argument 89 switch (cose_algorithm_id) { in make_ecdsa_key_pair()
|
D | t_cose_make_psa_test_key.c | 63 enum t_cose_err_t make_ecdsa_key_pair(int32_t cose_algorithm_id, in make_ecdsa_key_pair() argument 86 switch(cose_algorithm_id) { in make_ecdsa_key_pair()
|
D | t_cose_test.c | 646 if(parameters.cose_algorithm_id != T_COSE_ALGORITHM_ES256) { in all_header_parameters_test()
|
/trusted-firmware-m-3.7.0/secure_fw/partitions/initial_attestation/ |
D | attest_core.c | 541 int32_t *cose_algorithm_id) in attest_get_t_cose_algorithm() argument 562 *cose_algorithm_id = T_COSE_ALGORITHM_ES256; in attest_get_t_cose_algorithm() 565 *cose_algorithm_id = T_COSE_ALGORITHM_ES384; in attest_get_t_cose_algorithm() 568 *cose_algorithm_id = T_COSE_ALGORITHM_ES512; in attest_get_t_cose_algorithm() 576 *cose_algorithm_id = T_COSE_ALGORITHM_HMAC256; in attest_get_t_cose_algorithm() 579 *cose_algorithm_id = T_COSE_ALGORITHM_HMAC384; in attest_get_t_cose_algorithm() 582 *cose_algorithm_id = T_COSE_ALGORITHM_HMAC512; in attest_get_t_cose_algorithm() 650 int32_t cose_algorithm_id; in attest_create_token() local 652 attest_err = attest_get_t_cose_algorithm(&cose_algorithm_id); in attest_create_token() 668 cose_algorithm_id = cose_algorithm_id < 0 ? T_COSE_ALGORITHM_ES256 : in attest_create_token() [all …]
|
/trusted-firmware-m-3.7.0/lib/ext/t_cose/crypto_adapters/ |
D | t_cose_psa_crypto.c | 112 t_cose_crypto_pub_key_verify(int32_t cose_algorithm_id, in t_cose_crypto_pub_key_verify() argument 128 psa_alg_id = cose_alg_id_to_psa_alg_id(cose_algorithm_id); in t_cose_crypto_pub_key_verify() 165 t_cose_crypto_pub_key_sign(int32_t cose_algorithm_id, in t_cose_crypto_pub_key_sign() argument 177 psa_alg_id = cose_alg_id_to_psa_alg_id(cose_algorithm_id); in t_cose_crypto_pub_key_sign() 223 enum t_cose_err_t t_cose_crypto_sig_size(int32_t cose_algorithm_id, in t_cose_crypto_sig_size() argument 240 if(!t_cose_algorithm_is_ecdsa(cose_algorithm_id)) { in t_cose_crypto_sig_size()
|
/trusted-firmware-m-3.7.0/docs/design_docs/services/ |
D | symmetric_initial_attest.rst | 326 int32_t cose_algorithm_id); 337 int32_t cose_algorithm_id;
|