Home
last modified time | relevance | path

Searched refs:cose_algorithm_id (Results 1 – 20 of 20) sorted by relevance

/trusted-firmware-m-3.7.0/lib/ext/t_cose/src/
Dt_cose_crypto.h154 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()
Dt_cose_sign1_sign.c71 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 …]
Dt_cose_util.c32 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()
Dt_cose_mac0_sign.c47 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()
Dt_cose_util.h127 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,
Dt_cose_parameters.c454 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()
Dt_cose_sign1_verify.c204 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()
Dt_cose_mac0_verify.c223 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/
Dt_cose_mac0_sign.h51 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()
Dt_cose_sign1_sign.h71 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()
Dt_cose_common.h417 int32_t cose_algorithm_id; member
/trusted-firmware-m-3.7.0/lib/ext/t_cose/test/
Dt_cose_make_test_messages.c52 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 …]
Dt_cose_sign_verify_test.c337 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()
Dt_cose_make_test_pub_key.h26 enum t_cose_err_t make_ecdsa_key_pair(int32_t cose_algorithm_id,
Dt_cose_make_openssl_test_key.c76 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()
Dt_cose_make_psa_test_key.c63 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()
Dt_cose_test.c646 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/
Dattest_core.c541 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/
Dt_cose_psa_crypto.c112 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/
Dsymmetric_initial_attest.rst326 int32_t cose_algorithm_id);
337 int32_t cose_algorithm_id;