Commit Graph

11 Commits

Author SHA1 Message Date
KaraZajac 48ee413c9b v1.2.0: Add 4 new protocols, fix 5 existing, port Kia V6 encoder
New protocols (from ProtoPirate):
- Mazda V0: 433MHz, pair-based decoding, XOR deobfuscation
- Mitsubishi V0: 868MHz, PWM, bit negation + XOR unscrambling
- Porsche Touareg: 433/868MHz, sync preamble, 24-bit rotate cipher
- Fiat V1 (Magneti Marelli BSI): 433MHz, auto-detected timing variants

Protocol fixes aligned with ProtoPirate reference:
- Kia V1: Fix Manchester level mapping (inverted convention), off-by-one
  bit count, CRC4 simplified to 7 bytes + offset 1
- Kia V2: Fix CRC byte layout (was double-counting nibbles), off-by-one
  bit count, preamble short-HIGH handling
- Fiat V0: Fix endbyte transform (remove (<<1)|1), standard Manchester
  encoder (was differential), 7 btn bits (was 6), gap path fallback
- PSA: Fix modified TEA (XTEA-like dynamic key selection), XOR decrypt
  byte mapping, critical key2_low construction bug, encoder polarity and
  preamble, add key1_high nibble validation, dual preamble patterns
- Ford V0: Add calculate_checksum (sums all serial+count bytes) for encoder

Kia V6 encoder ported:
- Forward AES-128 (SubBytes, ShiftRows, MixColumns, encrypt)
- encrypt_payload: build plaintext, AES encrypt, pack into 3 parts
- Two-pass Manchester upload (640 + 38 preamble pairs)
- fx_field extraction stored in DecodedSignal.extra for encode roundtrip

Updated README, protocol docs, and version bump to 1.2.0.
2026-03-22 12:05:01 -04:00
KaraZajac 84b75ee6b5 Fix ARM compilation: vendor libhackrf with c_char portability fix
The upstream libhackrf v0.1.1 crate fails to compile on ARM because
c_char is u8 on ARM (not i8 like on x86). The transmute at lib.rs:102
explicitly casts &[i8] -> &[u8], but on ARM the source is already &[u8],
causing a type mismatch.

Vendored the crate at vendor/libhackrf/ with the transmute replaced by
slice::from_raw_parts with a pointer cast, which works on both
architectures. Also cleaned up transmute calls in transfer.rs.

Fixes #1
2026-03-22 11:14:41 -04:00
KaraZajac 5d0bd97954 fob export fixes 2026-02-22 21:37:56 -05:00
KaraZajac 9e90f88a15 Added VAG Freq 2026-02-21 10:16:23 -05:00
KaraZajac 6dcfb65686 Release 1.1.1: UI updates
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-17 21:44:51 -05:00
KaraZajac ceeef351fd UI updates 2026-02-17 21:37:52 -05:00
KaraZajac 7b46be00c4 Updated README 2026-02-15 20:53:52 -05:00
KaraZajac 5b45b54dcc RTL-SDR Support (Expermential) 2026-02-15 20:13:27 -05:00
KaraZajac e5005c9083 minor updates 2026-02-15 19:52:21 -05:00
leviathan 284bf45198 protocol updates 2026-02-07 18:53:53 -05:00
leviathan 4339895b41 Version 1.0.0 2026-02-07 17:35:27 -05:00