mirror of
https://github.com/polhenarejos/pico-openpgp.git
synced 2026-06-20 17:23:51 +02:00
Migrate to the new PIN KDF system.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -98,4 +98,10 @@ int cmd_keypair_gen(void);
|
||||
int cmd_reset_retry(void);
|
||||
int cmd_get_bulk_data(void);
|
||||
|
||||
#define DEK_SIZE (IV_SIZE + 32)
|
||||
#define DEK_AAD_SIZE (PIN_KDF_SIZE(DEK_SIZE))
|
||||
#define DEK_FILE_SIZE (1 + DEK_AAD_SIZE)
|
||||
|
||||
#define DEK_FILE_SIZE_OLD (IV_SIZE + 32 + 32 + 32 + 32)
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user