]> git.zerfleddert.de Git - proxmark3-svn/commit - client/cmdlfhid.h
Redesign of lf hid card format handler as discussed with @marshmellow42
authorgrauerfuchs <42082416+grauerfuchs@users.noreply.github.com>
Mon, 27 Aug 2018 18:03:46 +0000 (14:03 -0400)
committergrauerfuchs <42082416+grauerfuchs@users.noreply.github.com>
Mon, 27 Aug 2018 18:03:46 +0000 (14:03 -0400)
commitb5a5fc4d9f6bae6a02f1d71ea4769f86b6cb6fb8
tree0fbf9c8aa6c48bfd7e8603d8114145f988c89652
parent18a3bf6119630ad15968c252a4f69033ebd2f503
Redesign of lf hid card format handler as discussed with @marshmellow42

The new handler accepts multiple formats of the same length.
Because of this, the existing pack/unpack commands are unsupported
and have been removed and replaced with 'lf hid encode' and 'lf hid decode'.
The decode command will test a packed Prox ID against all programmed
formats and return results for all matching formats.
The encode command takes the parameter of format name instead of
bit length (as per the old pack command). Additionally, an 'lf hid write'
command has been added as a single-command combination of encode and clone.

To support easier addition of new formats, a library for handling card
fields has been added. This will allow direct access to the card bits,
to linear fields, and to non-linear (jumping) fields in a single line
of code without having to resort to managing bit positions or masks
on the underlying data. A number of new formats have been added as working
examples of the new support functions.
client/Makefile
client/cmdlfhid.c
client/cmdlfhid.h
client/hidcardformats.c [new file with mode: 0644]
client/hidcardformats.h [new file with mode: 0644]
client/hidcardformatutils.c [new file with mode: 0644]
client/hidcardformatutils.h [new file with mode: 0644]
Impressum, Datenschutz