This commit is contained in:
Didier Barzin 2026-01-16 00:03:24 -05:00 committed by GitHub
commit bb07e074b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -407,9 +407,9 @@ static int nested_fixed_nonce(StateList_t statelist, uint32_t fixed_nt, uint32_t
}
// test each {ar} response
uint32_t key_index;
size_t key_index;
int isOK = mfCheckKeysFixedNonce(statelist.blockNo, statelist.keyType, authentication_timeout, true, num_ar_par, ar_par, &key_index);
int isOK = mfCheckKeysFixedNonce(statelist.blockNo, statelist.keyType, authentication_timeout, true, num_ar_par, ar_par, (uint32_t*)&key_index);
if (isOK == 0) { // success, key found
// key_index contains the index into the cypher state list

View file

@ -427,7 +427,7 @@ exit:
*/
int mbedtls_aes_cmac_prf_128( const unsigned char *key, size_t key_length,
const unsigned char *input, size_t in_len,
unsigned char *output )
unsigned char output[16] )
{
int ret;
const mbedtls_cipher_info_t *cipher_info;