mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-11 06:09:08 -07:00
15 lines
567 B
C
15 lines
567 B
C
#pragma once
|
|
|
|
#include <furi_hal_crypto.h>
|
|
|
|
#define CRYPTO_IV_LENGTH (16)
|
|
#define CRYPTO_SALT_LENGTH (16)
|
|
|
|
// According to this explanation: https://github.com/flipperdevices/flipperzero-firmware/issues/2885#issuecomment-1646664666
|
|
// disabling usage of any key which is "the same across all devices"
|
|
#define ACCEPTABLE_CRYPTO_KEY_SLOT_START FURI_HAL_CRYPTO_ENCLAVE_USER_KEY_SLOT_START
|
|
#define ACCEPTABLE_CRYPTO_KEY_SLOT_END FURI_HAL_CRYPTO_ENCLAVE_USER_KEY_SLOT_END
|
|
|
|
#define DEFAULT_CRYPTO_KEY_SLOT ACCEPTABLE_CRYPTO_KEY_SLOT_START
|
|
#define CRYPTO_LATEST_VERSION (3)
|