constants.h 1.1 KB

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include <storage/storage.h>
  3. #define CONFIG_FILE_DIRECTORY_PATH EXT_PATH("apps_data/totp")
  4. #define CONFIG_FILE_HEADER "Flipper TOTP plugin config file"
  5. #define CONFIG_FILE_ACTUAL_VERSION (10)
  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_TOKEN_TYPE "TokenType"
  14. #define TOTP_CONFIG_KEY_TOKEN_COUNTER "TokenCounter"
  15. #define TOTP_CONFIG_KEY_CRYPTO_VERIFY "Crypto"
  16. #define TOTP_CONFIG_KEY_SALT "Salt"
  17. #define TOTP_CONFIG_KEY_PINSET "PinIsSet"
  18. #define TOTP_CONFIG_KEY_NOTIFICATION_METHOD "NotificationMethod"
  19. #define TOTP_CONFIG_KEY_AUTOMATION_METHOD "AutomationMethod"
  20. #define TOTP_CONFIG_KEY_AUTOMATION_KB_LAYOUT "AutomationKbLayout"
  21. #define TOTP_CONFIG_KEY_FONT "Font"
  22. #define TOTP_CONFIG_KEY_CRYPTO_VERSION "CryptoVersion"
  23. #define TOTP_CONFIG_KEY_CRYPTO_KEY_SLOT "CryptoKeySlot"