constants.h 567 B

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