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,8 @@
|
||||
#include <tc/crypto/Pbkdf2Sha1KeyDeriver.h>
|
||||
|
||||
void tc::crypto::DeriveKeyPbkdf2Sha1(byte_t* key, size_t key_size, const byte_t* password, size_t password_size, const byte_t* salt, size_t salt_size, size_t n_rounds)
|
||||
{
|
||||
tc::crypto::Pbkdf2Sha1KeyDeriver impl;
|
||||
impl.initialize(password, password_size, salt, salt_size, n_rounds);
|
||||
impl.getBytes(key, key_size);
|
||||
}
|
||||
Reference in New Issue
Block a user