Alfred Reibenschuh > Crypt-KDF-0.02 > Crypt::KDF::BaseKDFGenerator

Download:
Crypt-KDF-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.001   Source  

NAME ^

Crypt::KDF::BaseKDFGenerator - Basic KDF generator for derived keys and ivs as defined by IEEE P1363a/ISO 18033.

SYNOPSIS ^

DESCRIPTION ^

This implementation is based on ISO 18033/P1363a.

FUNCTIONS ^

$derivedKey = baseKdf_generate( $digest, $seed, $counter, $len )

Quick functional interface to use KDF.

METHODS ^

$kdf = Crypt::KDF::BaseKDFGenerator->new( [options] )

Construct a Basic KDF generator.

        -counter start value of counter used to derive keys.
        -digest the digest to be used as the source of derived keys.
        -digestparam optional parameters for the digest used to derive keys.
        -seed the seed to be used to derive keys.
        -iv optional iv to be used to derive keys.

$kdf->init( [options] )

Initialize the Basic KDF generator.

        -counter start value of counter used to derive keys.
        -digest the digest to be used as the source of derived keys.
        -digestparam optional parameters for the digest used to derive keys.
        -seed the seed to be used to derive keys.
        -iv optional iv to be used to derive keys.

$derivedKey = $kdf->kdf( $length )

Return length bytes generated from the derivation function.

( $derivedKey, $derivedIV ) = $kdf->kdf_iv( $kLen, $ivLen )

Return length bytes generated from the derivation function.

EXAMPLES ^

SEE ALSO ^

COPYRIGHT ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHORS ^