constants.h 833 B

1234567891011121314151617181920
  1. #pragma once
  2. #include <storage/storage.h>
  3. #define CONFIG_FILE_DIRECTORY_PATH EXT_PATH("authenticator")
  4. #define CONFIG_FILE_HEADER "Flipper TOTP plugin config file"
  5. #define CONFIG_FILE_ACTUAL_VERSION (5)
  6. #define TOTP_CONFIG_KEY_TIMEZONE "Timezone"
  7. #define TOTP_CONFIG_KEY_TOKEN_NAME "TokenName"
  8. #define TOTP_CONFIG_KEY_TOKEN_SECRET "TokenSecret"
  9. #define TOTP_CONFIG_KEY_TOKEN_ALGO "TokenAlgo"
  10. #define TOTP_CONFIG_KEY_TOKEN_DIGITS "TokenDigits"
  11. #define TOTP_CONFIG_KEY_TOKEN_DURATION "TokenDuration"
  12. #define TOTP_CONFIG_KEY_TOKEN_AUTOMATION_FEATURES "TokenAutomationFeatures"
  13. #define TOTP_CONFIG_KEY_CRYPTO_VERIFY "Crypto"
  14. #define TOTP_CONFIG_KEY_BASE_IV "BaseIV"
  15. #define TOTP_CONFIG_KEY_PINSET "PinIsSet"
  16. #define TOTP_CONFIG_KEY_NOTIFICATION_METHOD "NotificationMethod"
  17. #define TOTP_CONFIG_KEY_AUTOMATION_METHOD "AutomationMethod"