Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions client/mifare/mifarehost.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion common/mbedtls/cmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ int mbedtls_cipher_cmac( const mbedtls_cipher_info_t *cipher_info,
*/
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;
Expand Down