Files
pysim-local/pySim
Philipp Maier c595221bc3 scp: fix key length in dek_encrypt and dek_decrypt
When creating the DES cipher object with DES.new, we use the property
card_keys.dek. This property may hold a 16 byte key, but DES uses
an 8 byte key (56 bit + 8 bit integrity). Pycryptodome does not
automatically ignore excess key bytes. Instead it throws an
exception. This means we need to make sure to supply only the first
8 bytes of card_keys.dek

See also: https://pycryptodome.readthedocs.io/en/latest/src/cipher/des.html

Related: OS#6531
Change-Id: I92e0dc6a6196b532bd8b53fca7b9e78070d6903f
2024-08-30 05:05:38 +00:00
..
2024-02-05 09:53:59 +01:00
2024-08-28 12:53:14 +02:00
2024-02-05 17:54:30 +01:00
2024-08-28 12:53:14 +02:00
2024-02-05 09:52:12 +01:00
2024-02-05 09:44:53 +01:00
2024-06-10 08:59:39 +02:00
2024-02-05 09:50:54 +01:00
2024-08-23 06:51:37 +00:00
2024-02-05 09:50:47 +01:00
2024-07-31 23:17:13 +02:00