constants.h 756 B

12345678910111213141516171819
  1. #pragma once
  2. #define CONFIG_FILE_HEADER "Flipper TOTP plugin config file"
  3. #define CONFIG_FILE_ACTUAL_VERSION 3
  4. #define TOTP_CONFIG_KEY_TIMEZONE "Timezone"
  5. #define TOTP_CONFIG_KEY_TOKEN_NAME "TokenName"
  6. #define TOTP_CONFIG_KEY_TOKEN_SECRET "TokenSecret"
  7. #define TOTP_CONFIG_KEY_TOKEN_ALGO "TokenAlgo"
  8. #define TOTP_CONFIG_KEY_TOKEN_DIGITS "TokenDigits"
  9. #define TOTP_CONFIG_KEY_TOKEN_DURATION "TokenDuration"
  10. #define TOTP_CONFIG_KEY_CRYPTO_VERIFY "Crypto"
  11. #define TOTP_CONFIG_KEY_BASE_IV "BaseIV"
  12. #define TOTP_CONFIG_KEY_PINSET "PinIsSet"
  13. #define TOTP_CONFIG_KEY_NOTIFICATION_METHOD "NotificationMethod"
  14. #define TOTP_CONFIG_TOKEN_ALGO_SHA1_NAME "sha1"
  15. #define TOTP_CONFIG_TOKEN_ALGO_SHA256_NAME "sha256"
  16. #define TOTP_CONFIG_TOKEN_ALGO_SHA512_NAME "sha512"