constants.h 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include <storage/storage.h>
  3. #include "../../config/app/config.h"
  4. #define CONFIG_FILE_DIRECTORY_PATH EXT_PATH("apps_data/totp")
  5. #define CONFIG_FILE_HEADER "Flipper TOTP plugin config file"
  6. #define CONFIG_FILE_ACTUAL_VERSION (14)
  7. #define TOTP_CONFIG_KEY_TIMEZONE "Timezone"
  8. #define TOTP_CONFIG_KEY_TOKEN_NAME "TokenName"
  9. #define TOTP_CONFIG_KEY_TOKEN_SECRET "TokenSecret"
  10. #define TOTP_CONFIG_KEY_TOKEN_SECRET_LENGTH "TokenSecretLength"
  11. #define TOTP_CONFIG_KEY_TOKEN_ALGO "TokenAlgo"
  12. #define TOTP_CONFIG_KEY_TOKEN_DIGITS "TokenDigits"
  13. #define TOTP_CONFIG_KEY_TOKEN_DURATION "TokenDuration"
  14. #define TOTP_CONFIG_KEY_TOKEN_AUTOMATION_FEATURES "TokenAutomationFeatures"
  15. #define TOTP_CONFIG_KEY_TOKEN_TYPE "TokenType"
  16. #define TOTP_CONFIG_KEY_TOKEN_COUNTER "TokenCounter"
  17. #define TOTP_CONFIG_KEY_CRYPTO_VERIFY "Crypto"
  18. #define TOTP_CONFIG_KEY_SALT "Salt"
  19. #define TOTP_CONFIG_KEY_PINSET "PinIsSet"
  20. #define TOTP_CONFIG_KEY_NOTIFICATION_METHOD "NotificationMethod"
  21. #define TOTP_CONFIG_KEY_AUTOMATION_METHOD "AutomationMethod"
  22. #ifdef TOTP_BADBT_AUTOMATION_ENABLED
  23. #define TOTP_CONFIG_KEY_AUTOMATION_BADBT_PROFILE "BadBTProfile"
  24. #endif
  25. #define TOTP_CONFIG_KEY_AUTOMATION_KB_LAYOUT "AutomationKbLayout"
  26. #define TOTP_CONFIG_KEY_AUTOMATION_INITIAL_DELAY "AutomationInitialDelay"
  27. #define TOTP_CONFIG_KEY_UI_TOKEN_DIGIT_GROUPING "UITokenDigitGrouping"
  28. #define TOTP_CONFIG_KEY_FONT "Font"
  29. #define TOTP_CONFIG_KEY_CRYPTO_VERSION "CryptoVersion"
  30. #define TOTP_CONFIG_KEY_CRYPTO_KEY_SLOT "CryptoKeySlot"