Philippe Teuwen
f25c7b1179
text
2022-04-29 15:45:45 +02:00
merlokk
3ae9070dd8
make style
2022-02-05 13:32:50 +02:00
iceman1001
7e9067b176
style
2022-01-26 06:15:08 +01:00
Philippe Teuwen
30aa7aa7d1
Adapting license headers, WIP
2022-01-08 00:40:52 +01:00
Matt Moran
02e5fb6b1c
Fix incorrect comments
2022-01-06 00:00:04 +13:00
Matt Moran
8ecfc4af34
Make variables & function names snake_case
2022-01-05 23:53:03 +13:00
Matt Moran
fad30294aa
Format styles
2022-01-05 23:08:10 +13:00
Matt Moran
491c93e715
Add CardholderCredentials struct
2022-01-01 17:34:53 +13:00
Matt Moran
f0b82c6311
Extract gallagher encoding/decoding
...
Change input parameters to be `arg_u640` so that we can check they are the right lengths (and not have them silently truncated)
2021-12-29 23:10:48 +13:00
Philippe Teuwen
e4fbfe0f40
rename globals DemodBuffer and DemodBufferLen
2021-08-21 17:12:50 +02:00
iceman1001
d7c5f0cac2
text
2021-04-24 14:39:27 +02:00
iceman1001
0f40e97b71
lf gallagher demod - remove debug statements
2021-02-12 10:38:57 +01:00
iceman1001
73cd4fb4ff
lf gallagher sim - about w user input. Coverity fixes
2021-02-12 10:14:54 +01:00
DarkMatterMatt
d7a1145945
Add support for specifying region/facility/card/issue numbers to Gallagher simulation
...
Extract `region_code`/`facility_code`/`card_number`/`issue_level` validation to `isValidGallagherParams` function
Add `--rc/fc/cn/il` parameters to `lf gallagher sim`
2021-02-12 10:23:05 +13:00
DarkMatterMatt
73465e5167
Reorder & simplify code
2021-02-11 17:36:02 +13:00
DarkMatterMatt
03347fcfea
Refactor how blocks are generated to be cleaner
2021-02-11 14:07:14 +13:00
DarkMatterMatt
0fdbdb044f
Use ARRAYLEN instead of constant length
2021-02-11 11:30:22 +13:00
DarkMatterMatt
62ccbc0a37
Fix styles
...
Run `make style`
2021-02-11 11:12:45 +13:00
DarkMatterMatt
f655391bd4
Initial implementation of encoding
2021-02-11 00:17:48 +13:00
DarkMatterMatt
a4da1476b6
Fix Gallagher data decoding & CRC checks
...
Descramble function was re-scrambling the data
Skip constant magic prefix `7FEA` to get correct data to decode
Fix offsets & bitmasks to correctly decode card and region codes
Fix CRC refin & refout parameters (both now false)
2021-02-10 15:47:14 +13:00
iceman1001
6737f6f3cd
sanitize fix - lf/hf tune heap overflow
2021-01-28 20:31:39 +01:00
Philippe Teuwen
7cd80611d3
#makestyleday
2020-12-12 14:46:40 +01:00
iceman1001
ae853ede79
reader - textual
2020-12-01 11:26:54 +01:00
iceman1001
c05f75c551
lf gallagher - now uses cliparser, supports continuous mode, EM (untested)
2020-11-29 12:49:09 +01:00
Philippe Teuwen
dfb7eaf061
LF: rework internal APIs
2020-09-28 13:59:03 +02:00
iceman1001
7336906923
no printf
2020-08-29 14:05:13 +02:00
iceman1001
5643eb685d
text, color
2020-06-26 13:01:17 +02:00
iceman1001
dbc2fb188a
text,color
2020-06-26 12:02:57 +02:00
Philippe Teuwen
8bdda55115
Fix prompt colors in log -> spurious space in color macros -> adjust lots of files...
2020-04-22 02:22:55 +02:00
Bjoern Kerler
81bc0bc2b9
Reorder client src directories
2020-04-16 10:53:24 +02:00