mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-04 08:49:03 +00:00
Add source code for ctrtool
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user