FIX: Coverity scan fixes, hard to keep track of stringlengths while reading and copying in C.

This commit is contained in:
iceman1001 2016-02-17 10:46:08 +01:00
commit aacb96d7ed
6 changed files with 60 additions and 39 deletions

View file

@ -580,7 +580,7 @@ void mifare_cypher_single_block (desfirekey_t key, uint8_t *data, uint8_t *ivect
{
AesCtx ctx;
AesCtxIni(&ctx, ivect, key->data, KEY128,CBC);
AesEncrypt(&ctx, data, edata, sizeof(data) );
AesEncrypt(&ctx, data, edata, sizeof(edata) );
break;
}
case MCO_DECYPHER: