Fix bad key type constant that worked by accident

This commit is contained in:
Gilles Peskine 2018-08-10 16:02:11 +02:00 committed by Jaeden Amero
parent 39f0c22c97
commit c32f0304db

View file

@ -1128,7 +1128,7 @@ exit:
void key_lifetime( int lifetime_arg ) void key_lifetime( int lifetime_arg )
{ {
int key_slot = 1; int key_slot = 1;
psa_key_type_t key_type = PSA_ALG_CBC_BASE; psa_key_type_t key_type = PSA_KEY_TYPE_RAW_DATA;
unsigned char key[32] = {0}; unsigned char key[32] = {0};
psa_key_lifetime_t lifetime_set = lifetime_arg; psa_key_lifetime_t lifetime_set = lifetime_arg;
psa_key_lifetime_t lifetime_get; psa_key_lifetime_t lifetime_get;