X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fp5-File-KDBX;a=blobdiff_plain;f=lib%2FFile%2FKDBX%2FKDF.pm;fp=lib%2FFile%2FKDBX%2FKDF.pm;h=60b4acf516677f15ec1827ab2603196f5612a94f;hp=ce32945361ad81ea6114421932b5a1d9e7b19e44;hb=a88318ecb7f38a65fa1d6e68de001f4385d34fa7;hpb=e60d5469861f8c597bc9faf7daaccec7a32ddeb6 diff --git a/lib/File/KDBX/KDF.pm b/lib/File/KDBX/KDF.pm index ce32945..60b4acf 100644 --- a/lib/File/KDBX/KDF.pm +++ b/lib/File/KDBX/KDF.pm @@ -16,6 +16,15 @@ our $VERSION = '999.999'; # VERSION my %KDFS; +our %ROUNDS_INFO = ( + KDF_UUID_ARGON2D() => {p => KDF_PARAM_ARGON2_ITERATIONS, d => KDF_DEFAULT_ARGON2_ITERATIONS}, + KDF_UUID_ARGON2ID() => {p => KDF_PARAM_ARGON2_ITERATIONS, d => KDF_DEFAULT_ARGON2_ITERATIONS}, +); +our $DEFAULT_ROUNDS_INFO = { + p => KDF_PARAM_AES_ROUNDS, + d => KDF_DEFAULT_AES_ROUNDS, +}; + =method new $kdf = File::KDBX::KDF->new(parameters => \%params); @@ -43,7 +52,8 @@ sub new { $kdf = $kdf->init(%attributes); -Called by method to set attributes. You normally shouldn't call this. +Called by L to set attributes. You normally shouldn't call this. Returns itself to allow method +chaining. =cut @@ -109,7 +119,7 @@ sub _transform { die 'Not implemented' } $kdf->randomize_seed; -Generate a new random seed/salt. +Generate and set a new random seed/salt. =cut