mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-23 13:21:44 +03:00
parent
8457da39e0
commit
91c159e823
@ -27,6 +27,8 @@ bool token_info_set_secret(
|
|||||||
const char* base32_token_secret,
|
const char* base32_token_secret,
|
||||||
size_t token_secret_length,
|
size_t token_secret_length,
|
||||||
const uint8_t* iv) {
|
const uint8_t* iv) {
|
||||||
|
if(token_secret_length == 0) return false;
|
||||||
|
|
||||||
uint8_t* plain_secret = malloc(token_secret_length);
|
uint8_t* plain_secret = malloc(token_secret_length);
|
||||||
furi_check(plain_secret != NULL);
|
furi_check(plain_secret != NULL);
|
||||||
int plain_secret_length =
|
int plain_secret_length =
|
||||||
|
Loading…
Reference in New Issue
Block a user