12#ifndef __T_COSE_COMMON_H__
13#define __T_COSE_COMMON_H__
35#define T_COSE_SIGN1_MAX_PROT_HEADER (1+1+5+9)
t_cose_err_t
Error codes return by t_cose.
@ T_COSE_ERR_UNSUPPORTED_SIGNING_ALG
The requested signing algorithm is not supported.
@ T_COSE_ERR_INSUFFICIENT_MEMORY
Out of heap memory.
@ T_COSE_ERR_WRONG_TYPE_OF_KEY
The key was found, but it was the wrong type for the operation.
@ T_COSE_ERR_SIG_BUFFER_SIZE
The buffer to receive result of a signing operation is too small.
@ T_COSE_ERR_NO_KID
No key ID was found when one is needed.
@ T_COSE_ERR_UNSUPPORTED_HASH
The hash algorithm needed is not supported.
@ T_COSE_ERR_HASH_GENERAL_FAIL
Some system failure when running the hash algorithm.
@ T_COSE_ERR_CBOR_NOT_WELL_FORMED
When decoding some CBOR like a COSE_Sign1, the CBOR was not well-formed.
@ T_COSE_ERR_SIGN1_FORMAT
When verifying a COSE_Sign1, something is wrong with the format of the CBOR.
@ T_COSE_ERR_SHORT_CIRCUIT_SIG
Signature was short-circuit.
@ T_COSE_ERR_SIG_VERIFY
Signature verification failed.
@ T_COSE_ERR_BAD_SHORT_CIRCUIT_KID
Verification of a short-circuit signature failed.
@ T_COSE_ERR_PROTECTED_HEADERS
Error constructing the protected headers.
@ T_COSE_ERR_TAMPERING_DETECTED
Equivalent to PSA_ERROR_TAMPERING_DETECTED.
@ T_COSE_ERR_SIG_STRUCT
Error constructing the Sig_structure when signing or verify.
@ T_COSE_ERR_HASH_BUFFER_SIZE
The buffer to receive a hash result is too small.
@ T_COSE_ERR_UNKNOWN_KEY
The key identified by a key slot of a key ID was not found.
@ T_COSE_ERR_INVALID_ARGUMENT
Some (unspecified) argument was not valid.
@ T_COSE_ERR_FAIL
General unspecific failure.
@ T_COSE_SUCCESS
Operation completed successfully.
@ T_COSE_ERR_NO_ALG_ID
No algorithm ID was found when one is needed.
@ T_COSE_ERR_KEY_BUFFER_SIZE
The buffer to receive to receive a key is too small.