mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-20 22:05:15 +00:00
Add static internal MAC finish function
add new psa_mac_finish_internal() to be called by psa_mac_finish() and psa_mac_verify() in order to be able to check key usage separatly.
This commit is contained in:
parent
4eed757901
commit
6df908f234
5 changed files with 61 additions and 50 deletions
|
|
@ -491,10 +491,6 @@ psa_status_t psa_export_public_key(psa_key_slot_t key,
|
|||
/** \brief Encoding of permitted usage on a key. */
|
||||
typedef uint32_t psa_key_usage_t;
|
||||
|
||||
/** An invalid key usage value.
|
||||
* */
|
||||
#define PSA_KEY_USAGE_NONE ((psa_key_usage_t)0x00000000)
|
||||
|
||||
/** Whether the key may be exported.
|
||||
*
|
||||
* A public key or the public part of a key pair may always be exported
|
||||
|
|
|
|||
|
|
@ -82,6 +82,8 @@ struct psa_mac_operation_s
|
|||
int iv_required : 1;
|
||||
int iv_set : 1;
|
||||
int has_input : 1;
|
||||
int key_usage_sign : 1;
|
||||
int key_usage_verify : 1;
|
||||
uint8_t mac_size;
|
||||
union
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue