2022-10-17 21:22:34 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../../types/plugin_state.h"
|
|
|
|
|
|
|
|
uint8_t* totp_crypto_encrypt(
|
|
|
|
const uint8_t* plain_data,
|
2022-11-03 00:41:17 +03:00
|
|
|
const uint8_t plain_data_length,
|
2022-10-17 21:22:34 +03:00
|
|
|
const uint8_t* iv,
|
2022-11-03 00:41:17 +03:00
|
|
|
uint8_t* encrypted_data_length);
|
2022-10-17 21:22:34 +03:00
|
|
|
uint8_t* totp_crypto_decrypt(
|
|
|
|
const uint8_t* encrypted_data,
|
2022-11-03 00:41:17 +03:00
|
|
|
const uint8_t encrypted_data_length,
|
2022-10-17 21:22:34 +03:00
|
|
|
const uint8_t* iv,
|
2022-11-03 00:41:17 +03:00
|
|
|
uint8_t* decrypted_data_length);
|
|
|
|
void totp_crypto_seed_iv(PluginState* plugin_state, uint8_t* pin, uint8_t pin_length);
|
2022-10-17 21:22:34 +03:00
|
|
|
bool totp_crypto_verify_key(const PluginState* plugin_state);
|