#ifndef _TOTP_PLUGIN_STATE_H_ #define _TOTP_PLUGIN_STATE_H_ #include #include #include #include "../lib/list/list.h" #include "../scenes/totp_scenes_enum.h" #define TOTP_IV_SIZE 16 typedef struct { Scene current_scene; void* current_scene_state; bool changing_scene; NotificationApp* notification; DialogsApp* dialogs; Gui* gui; float timezone_offset; ListNode* tokens_list; bool token_list_loaded; uint8_t tokens_count; uint8_t* crypto_verify_data; uint8_t crypto_verify_data_length; uint8_t iv[TOTP_IV_SIZE]; uint8_t base_iv[TOTP_IV_SIZE]; } PluginState; #endif