MX 2022-12-31 14:42:24 +03:00
parent 8457da39e0
commit 91c159e823
No known key found for this signature in database
GPG Key ID: 6C4C311DFD4B4AB5

View File

@ -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 =