]>
Dogcows Code - chaz/p5-File-KDBX/blob - t/kdf-aes-pp.t
9 BEGIN { $ENV{PERL_FILE_KDBX_XS
} = 0 }
12 use File
::KDBX
::Constants
qw(:kdf);
15 my $kdf = File
::KDBX
::KDF-
>new(uuid
=> KDF_UUID_AES
, seed
=> "\1" x
32, rounds
=> 10);
17 is File
::KDBX
::XS_LOADED
(), 0, 'XS can be avoided';
19 my $r = $kdf->transform("\2" x
32);
20 is $r, "\342\234cp\375\\p\253]\213\f\246\345\230\266\260\r\222j\332Z\204:\322 p\224mhm\360\222",
21 'AES KDF works without XS';
23 like exception
{ $kdf->transform("\2" x
33) }, qr/raw key must be 32 bytes/i,
24 'Transformation requires valid arguments';
This page took 0.039061 seconds and 4 git commands to generate.