constants.h 461 B

123456789101112
  1. #pragma once
  2. #define CRYPTO_IV_LENGTH (16)
  3. #define CRYPTO_SALT_LENGTH (16)
  4. // According to this explanation: https://github.com/flipperdevices/flipperzero-firmware/issues/2885#issuecomment-1646664666
  5. // disabling usage of any key which is "the same across all devices"
  6. #define ACCEPTABLE_CRYPTO_KEY_SLOT_START (12)
  7. #define ACCEPTABLE_CRYPTO_KEY_SLOT_END (100)
  8. #define DEFAULT_CRYPTO_KEY_SLOT ACCEPTABLE_CRYPTO_KEY_SLOT_START
  9. #define CRYPTO_LATEST_VERSION (3)