X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=lib%2FFile%2FKDBX%2FCipher.pm;h=5dbde84040072e1b35773f6cafacf2ce60402002;hb=50f1a929d9224b9072b5fae39162a5d943323c5d;hp=5c1f12008f28f00be43f39868df15f4fbe77411c;hpb=52cf8dbcf4ded14b1582e905cf034749385624b3;p=chaz%2Fp5-File-KDBX diff --git a/lib/File/KDBX/Cipher.pm b/lib/File/KDBX/Cipher.pm index 5c1f120..5dbde84 100644 --- a/lib/File/KDBX/Cipher.pm +++ b/lib/File/KDBX/Cipher.pm @@ -133,25 +133,25 @@ Get the initialization vector. sub iv { $_[0]->{iv} } -=attr default_iv_size +=attr iv_size - $size = $cipher->default_iv_size; + $size = $cipher->iv_size; -Get the default size of the initialization vector, in bytes. +Get the expected size of the initialization vector, in bytes. =cut -sub key_size { -1 } +sub iv_size { 0 } =attr key_size $size = $cipher->key_size; -Get the size the mode expects the key to be, in bytes. +Get the size the mode or stream expects the key to be, in bytes. =cut -sub iv_size { 0 } +sub key_size { -1 } =attr block_size