Skip to content

t_cose_examples Tests Failing #291

Description

@aahajj

Issue Description

Hey,
I have tried to run the files generated by Makefile.test, namely t_cose_examples and t_cose_test.

While all tests in t_cose_test have passed, none of the tests in t_cose_examples passed.

I did some initial debugging, focusing on the encrypt0_example to find the reason for the failure. It returned error code 95 (T_COSE_ERR_UNPROCESSED_TAG_NUMBERS).

The error was returned from the function t_cose_encrypt_dec_detached_msg in t_cose_encrypt_dec.c, which calls t_cose_encrypt_dec_main_private (also in t_cose_encrypt_dec.c).
That function, in turn, calls t_cose_process_tag_numbers_qcbor1 in t_cose_util.c, and this function raised the error when calling t_cose_process_tag_numbers_qcbor1_t_cose1.

I could not fully understand the reason for this error and would appreciate any help with resolving it.
Thank you in advance!

System Information

  • OS: Linux private 6.13.8-arch1-1 (#1 SMP PREEMPT_DYNAMIC, Sun, 23 Mar 2025 17:17:30 +0000) x86_64 GNU/Linux the
  • GCC Version: cc (GCC) 14.2.1 20250207
  • OpenSSL Version: 3.4.1 (Library: OpenSSL 3.4.1, 11 Feb 2025)

Build Details

  • QCBOR: Built from the current master branch
  • t_cose: Built from the dev branch

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions