mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-04 08:49:03 +00:00
15 lines
585 B
C++
15 lines
585 B
C++
#include <tc/crypto/Aes192CbcEncryptor.h>
|
|
|
|
void tc::crypto::EncryptAes192Cbc(byte_t* dst, const byte_t* src, size_t size, const byte_t* key, size_t key_size, const byte_t* iv, size_t iv_size)
|
|
{
|
|
tc::crypto::Aes192CbcEncryptor crypt;
|
|
crypt.initialize(key, key_size, iv, iv_size);
|
|
crypt.encrypt(dst, src, size);
|
|
}
|
|
|
|
void tc::crypto::DecryptAes192Cbc(byte_t* dst, const byte_t* src, size_t size, const byte_t* key, size_t key_size, const byte_t* iv, size_t iv_size)
|
|
{
|
|
tc::crypto::Aes192CbcEncryptor crypt;
|
|
crypt.initialize(key, key_size, iv, iv_size);
|
|
crypt.decrypt(dst, src, size);
|
|
} |