mbedtls/include/psa
Gilles Peskine 89167cb597 Split psa_mac_setup -> psa_mac_{sign,verify}_setup
Make function names for multipart operations more consistent (MAC
setup edition).

Split psa_mac_setup into two functions psa_mac_sign_setup and
psa_mac_verify_setup. These functions behave identically except that
they require different usage flags on the key. The goal of the split
is to enforce the key policy during setup rather than at the end of
the operation (which was a bit of a hack).

In psa_mac_sign_finish and psa_mac_verify_finish, if the operation is
of the wrong type, abort the operation before returning BAD_STATE.
2018-09-12 16:41:11 +03:00
..
crypto_extra.h Add notes about the purpose and usage of auxiliary header files 2018-09-12 16:41:11 +03:00
crypto_platform.h Add notes about the purpose and usage of auxiliary header files 2018-09-12 16:41:11 +03:00
crypto_sizes.h Rename psa_mac_{finish,verify} -> psa_mac_{sign,verify}_finish 2018-09-12 16:41:11 +03:00
crypto_struct.h Split psa_mac_setup -> psa_mac_{sign,verify}_setup 2018-09-12 16:41:11 +03:00
crypto.h Split psa_mac_setup -> psa_mac_{sign,verify}_setup 2018-09-12 16:41:11 +03:00