Philippe Teuwen
30aa7aa7d1
Adapting license headers, WIP
2022-01-08 00:40:52 +01:00
iceman1001
89a05b47a8
cppcheck fixes const
2022-01-07 19:31:19 +01:00
Philippe Teuwen
85def31a8d
hitag1/S trace: add crc check
...
Example:
[usb] pm3 --> trace load -f traces/lf_HitagS256_dump.trace
[+] loaded 272 bytes from binary file traces/lf_HitagS256_dump.trace
[+] Recorded Activity (TraceLen = 272 bytes)
[?] try `trace list -1 -t ...` to view trace. Remember the `-1` param
[usb] pm3 --> trace list -t hitags -c
[=] downloading tracelog data from device
[+] Recorded activity (trace len = 272 bytes)
[=] start = start of start frame end = end of frame. src = source of transfer
[=] Hitag1 / Hitag2 / HitagS - Timings in ETU (8us)
Start | End | Src | Data (! denotes parity error) | CRC | Annotation
------------+------------+-----+-------------------------------------------------------------------------+-----+--------------------
0 | 0 | Rdr |18(5) | |
117 | 117 | Tag |21 a5 b4 [73] | !crc|
0 | 0 | Rdr |00(5) 21 a5 b4 73 [8c] | ok |
117 | 117 | Tag |c9 00 00 aa [75] | ok |
0 | 0 | Rdr |0c(4) 00 [ab] | ok |
117 | 117 | Tag |21 a5 b4 73 [53] | ok |
0 | 0 | Rdr |0c(4) 01 [b6] | ok |
117 | 117 | Tag |c9 00 00 aa [75] | ok |
0 | 0 | Rdr |0c(4) 02 [91] | ok |
117 | 117 | Tag |48 54 4f 4e [2c] | ok |
0 | 0 | Rdr |0c(4) 03 [8c] | ok |
117 | 117 | Tag |4d 49 4b 52 [1e] | ok |
0 | 0 | Rdr |0c(4) 04 [df] | ok |
117 | 117 | Tag |00 00 00 00 [a6] | ok |
0 | 0 | Rdr |0c(4) 05 [c2] | ok |
117 | 117 | Tag |00 00 00 00 [a6] | ok |
0 | 0 | Rdr |0c(4) 06 [e5] | ok |
118 | 118 | Tag |00 00 00 00 [a6] | ok |
0 | 0 | Rdr |0c(4) 07 [f8] | ok |
118 | 118 | Tag |57 5f 4f 4b [88] | ok |
0 | 0 | Rdr |0c(4) 08 [43] | ok |
2021-12-30 01:46:41 +01:00
iceman1001
2837cfa64f
make crc8 hitag1 / zx fct
2021-12-27 17:43:00 +01:00
iceman1001
50d1dfea77
add cardx crc skeleton, will need to adapt
2019-12-16 13:26:13 +01:00
Philippe Teuwen
d19754567d
summer restructuring:
...
* .h include only the strict minimum for their own parsing
* this forces all files to include explicitment their needs and not count on far streched dependencies
* this helps Makefile to rebuild only the minimum
* according to this rule, most standalone .h are now gone
* big app.h is gone
* remove seldom __cplusplus, if c++ happens, everything will have to be done properly anyway
* all unrequired include were removed
* split common/ into common/ (client+arm) and common_arm/ (os+bootloader)
* bring zlib to common/
* bring stuff not really/not yet used in common back to armsrc/ or client/
* bring liblua into client/
* bring uart into client/
* move some portions of code around (dbprint, protocols,...)
* rename unused files into *_disabled.[ch] to make it explicit
* rename soft Uarts between 14a, 14b and iclass, so a standalone could use several without clash
* remove PrintAndLogDevice
* move deprecated-hid-flasher from client to tools
* Makefiles
* treat deps in armsrc/ as in client/
* client: stop on warning (-Werror), same as for armsrc/
Tested on:
* all standalone modes
* Linux
2019-08-11 21:42:01 +02:00
Philippe Teuwen
4eaa2fc5aa
move common util fcts to /common to avoid common files (e.g. crc) to depend on non-common files
2019-04-16 23:02:40 +02:00
Philippe Teuwen
a7448f802f
make style: don't indent preprocessor directives
2019-04-07 12:10:51 +02:00
iceman1001
a78af2bb06
rename crc -> crc_ctx. triggers overshadowing
2019-04-07 11:51:12 +02:00
Philippe Teuwen
41f36ca20b
make style
2019-04-06 19:09:01 +02:00
Philippe Teuwen
26eb54b965
style
2019-04-06 01:00:54 +02:00
Philippe Teuwen
0373696662
make style
2019-03-10 00:00:59 +01:00
Philippe Teuwen
23f1a253a7
common: fix mix of spaces & tabs
2019-03-09 19:19:50 +01:00
Philippe Teuwen
60f292b18e
remove spurious spaces & tabs at end of lines
2019-03-09 08:59:13 +01:00
iceman1001
c04ac4f9ac
ADD: 'hf felica reader' - added pm3 as FeliCa reader
...
ADD: raw commands - added the basis for sending RAW commands to FeliCa.
CHG: CRC16 rework, uses table based implementation. This will change more functions as I go on.
2018-01-29 13:42:02 +01:00
iceman1001
205e4b2300
chg: adjusted the input parameters for crc16 implementations.
2018-01-28 12:19:04 +01:00
iceman1001
f942e1ed05
ADD: CRC8Mad() should be used to calc the crc-8 byte for Mifare MAD config block. Doesn't work of course...
...
CHG: some T/F defines..
2017-07-27 09:31:23 +02:00
iceman1001
e36b07efc4
CHG: moved into header files.
2017-01-25 00:35:11 +01:00
iceman1001
22f4dca88c
CHG: extracted some timers functionality, to get unified access to a timer/clock which counts in ticks. Moved stuff from util.c
2016-09-21 19:03:32 +02:00
iceman1001
82e690f48b
CHG: trying to unify the crc algos in one place.
2016-08-04 21:52:32 +02:00
iceman1001
6c28395106
ADD: LF JABLOTRON functionality. with clone/sim and detection in LF SEARCH.
...
CHG: removed no-existing crc8ja code
FIX: a check in ASKbiphaseDemod to make sure graphbuff is not empty.
2016-07-29 11:04:12 +02:00
iceman1001
ba4ad25b37
FIX: Fixed some warnings I didn't take notice off.
...
- memcpy should have been "memset"
- forgot to add function declaration into header file.
2016-07-28 22:17:44 +02:00
iceman1001
3e134b4c20
CHG: merged the forum user @jason 's fixes to LEGIC. *UNTESTED*
...
CHG: changed the CRC implementations.
2016-07-28 21:41:44 +02:00
iceman1001
6bb7609cad
CHG: had to move the SwapBits method.
2016-02-12 16:19:18 +01:00
iceman1001
ee4e281675
FIX: legic_prng.c according to user on forum ref: http://www.proxmark.org/forum/viewtopic.php?pid=5437#p5437 needs to be "& 0x7F"
...
ADD: method for calculating the storage crc8.
2016-02-12 12:34:05 +01:00
marshmellow42
73d04bb417
data psk demod minor fixes, pyramid demod add CS
...
also adjusted autocorrelate and added a printout for lf search u
2015-03-13 11:09:12 -04:00