12
12
#include "../../../types/nullable.h"
13
13
#include "../generate_token/totp_scene_generate_token.h"
14
14
15
- char * TOKEN_ALGO_LIST [] = {"SHA1" , "SHA256" , "SHA512" };
15
+ char * TOKEN_ALGO_LIST [] = {"SHA1" , "SHA256" , "SHA512" , "Steam" };
16
16
char * TOKEN_DIGITS_TEXT_LIST [] = {"5 digits" , "6 digits" , "8 digits" };
17
17
TokenDigitsCount TOKEN_DIGITS_VALUE_LIST [] = {TOTP_5_DIGITS , TOTP_6_DIGITS , TOTP_8_DIGITS };
18
18
@@ -218,7 +218,7 @@ bool totp_scene_add_new_token_handle_event(PluginEvent* const event, PluginState
218
218
break ;
219
219
case InputKeyRight :
220
220
if (scene_state -> selected_control == TokenAlgoSelect ) {
221
- totp_roll_value_uint8_t (& scene_state -> algo , 1 , SHA1 , SHA512 , RollOverflowBehaviorRoll );
221
+ totp_roll_value_uint8_t (& scene_state -> algo , 1 , SHA1 , STEAM , RollOverflowBehaviorRoll );
222
222
} else if (scene_state -> selected_control == TokenLengthSelect ) {
223
223
totp_roll_value_uint8_t (
224
224
& scene_state -> digits_count_index , 1 , 0 , 2 , RollOverflowBehaviorRoll );
@@ -230,7 +230,7 @@ bool totp_scene_add_new_token_handle_event(PluginEvent* const event, PluginState
230
230
case InputKeyLeft :
231
231
if (scene_state -> selected_control == TokenAlgoSelect ) {
232
232
totp_roll_value_uint8_t (
233
- & scene_state -> algo , -1 , SHA1 , SHA512 , RollOverflowBehaviorRoll );
233
+ & scene_state -> algo , -1 , SHA1 , STEAM , RollOverflowBehaviorRoll );
234
234
} else if (scene_state -> selected_control == TokenLengthSelect ) {
235
235
totp_roll_value_uint8_t (
236
236
& scene_state -> digits_count_index , -1 , 0 , 2 , RollOverflowBehaviorRoll );
0 commit comments