commit | b134223f91c8801d577cb72e92a37cb65fec717a | [log] [tgz] |
---|---|---|
author | Nick Pelly <npelly@google.com> | Tue Jan 25 07:45:07 2011 -0800 |
committer | Nick Pelly <npelly@google.com> | Tue Jan 25 07:45:07 2011 -0800 |
tree | e5837efbb3306dca2f31e899d938b1baae9d09d2 | |
parent | cc019c0caa0dd984404dea4d6623ae9d7b8474f1 [diff] |
Make Mifare Classic increment/decrement operands little endian Also make sure they are non-negative. This is not documented in Mifare Classic spec, but based on findings from NXP: - Operand should be stored in little-endian format in the transceive buffer - Tag ignores the sign bit on the operand, its effectively 31-bit unsigned - Overflow and underflow generates an error. Change-Id: Id3389b3894ded732c4b00d564ca53f5df651359e