psa: Add initializers for MAC operation objects
Add new initializers for MAC operation objects and use them in our tests and library code. Prefer using the macro initializers due to their straightforwardness.
This commit is contained in:
parent
6a25b41ac3
commit
769ce27f12
4 changed files with 91 additions and 9 deletions
|
@ -123,6 +123,13 @@ struct psa_mac_operation_s
|
|||
} ctx;
|
||||
};
|
||||
|
||||
#define PSA_MAC_OPERATION_INIT {0, 0, 0, 0, 0, 0, 0, {0}}
|
||||
static inline struct psa_mac_operation_s psa_mac_operation_init( void )
|
||||
{
|
||||
const struct psa_mac_operation_s v = PSA_MAC_OPERATION_INIT;
|
||||
return( v );
|
||||
}
|
||||
|
||||
struct psa_cipher_operation_s
|
||||
{
|
||||
psa_algorithm_t alg;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue