Add source code for ctrtool

This commit is contained in:
jakcron
2022-03-12 16:00:33 +08:00
parent 6ad2f13c50
commit 800f5776bc
681 changed files with 219734 additions and 0 deletions
@@ -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);
}