1 #define PERL_NO_GET_CONTEXT
9 MODULE = File::KDBX::XS PACKAGE = File::KDBX::KDF::AES
12 _transform_half_xs(const char* key, const char* seed, unsigned int rounds)
16 unsigned char work[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
17 Copy(seed, work, 1, work);
19 aes_setup(key, 32, 14, &skey);
20 for (unsigned int i = 0; i < rounds; ++i) {
21 aes_ecb_encrypt(work, work, &skey);
24 SV* result = newSVpvn(work, sizeof(work));