2022-10-12 05:01:37 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#define CONFIG_FILE_HEADER "Flipper TOTP plugin config file"
|
2023-01-18 19:52:33 +03:00
|
|
|
#define CONFIG_FILE_ACTUAL_VERSION 3
|
2022-10-12 05:01:37 +03:00
|
|
|
|
|
|
|
#define TOTP_CONFIG_KEY_TIMEZONE "Timezone"
|
|
|
|
#define TOTP_CONFIG_KEY_TOKEN_NAME "TokenName"
|
|
|
|
#define TOTP_CONFIG_KEY_TOKEN_SECRET "TokenSecret"
|
|
|
|
#define TOTP_CONFIG_KEY_TOKEN_ALGO "TokenAlgo"
|
|
|
|
#define TOTP_CONFIG_KEY_TOKEN_DIGITS "TokenDigits"
|
2023-01-18 19:52:33 +03:00
|
|
|
#define TOTP_CONFIG_KEY_TOKEN_DURATION "TokenDuration"
|
2022-10-12 05:01:37 +03:00
|
|
|
#define TOTP_CONFIG_KEY_CRYPTO_VERIFY "Crypto"
|
|
|
|
#define TOTP_CONFIG_KEY_BASE_IV "BaseIV"
|
2022-10-17 21:22:34 +03:00
|
|
|
#define TOTP_CONFIG_KEY_PINSET "PinIsSet"
|
2022-11-24 01:19:19 +03:00
|
|
|
#define TOTP_CONFIG_KEY_NOTIFICATION_METHOD "NotificationMethod"
|
2022-10-12 05:01:37 +03:00
|
|
|
|
|
|
|
#define TOTP_CONFIG_TOKEN_ALGO_SHA1_NAME "sha1"
|
|
|
|
#define TOTP_CONFIG_TOKEN_ALGO_SHA256_NAME "sha256"
|
|
|
|
#define TOTP_CONFIG_TOKEN_ALGO_SHA512_NAME "sha512"
|