Fix MAD manipulation for Mifare Classic 4K.

- Allocate large blocks on Mifare Classic 4K in unit tests;
  - Constraints sector number in mad_set_aid();
  - Fix location of AID storage in mad_set_aid() (wrong variable name and offset, ECOPYPASTETOOFAST);
  - New API function mad_sector_reserved();
  - Use mad_sector_reserved() to avoid trying to use reserved sectors.
This commit is contained in:
Romain Tartiere 2010-07-01 21:44:40 +00:00
parent 541292505a
commit f83918ee41
5 changed files with 36 additions and 4 deletions

1
NEWS
View file

@ -4,4 +4,5 @@ Changes between 0.1.0 and x.x.x [xx XXX xxxx]
list.
*) The mifare_application_alloc() size parameter is now expressed in bytes
and not in sectors.
*) New API function mad_sector_reserved().