mtcute/packages/wasm/lib/crypto/aes256.h

18 lines
No EOL
495 B
C

#include "wasm.h"
#ifndef AES256_H
#define AES256_H
#define AES_BLOCK_SIZE 16
#define EXPANDED_KEY_SIZE 60
extern uint8_t aes_shared_key_buffer[32];
extern uint8_t aes_shared_iv_buffer[32];
void aes256_set_encryption_key(uint8_t* key, uint32_t* expandedKey);
void aes256_set_decryption_key(uint8_t* key, uint32_t* expandedKey);
void aes256_encrypt(uint8_t* in, uint8_t* out, uint32_t* expandedKey);
void aes256_decrypt(uint8_t* in, uint8_t* out, uint32_t* expandedKey);
#endif // AES256_H