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


Crypt-KDF documentation  | view source Contained in the Crypt-KDF distribution.

Index


NAME

Top

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

SYNOPSIS

Top

DESCRIPTION

Top

This implementation is based on ISO 18033/P1363a.

FUNCTIONS

Top

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

Quick functional interface to use KDF.

METHODS

Top

$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

Top

SEE ALSO

Top

COPYRIGHT

Top

AUTHORS

Top


Crypt-KDF documentation  | view source Contained in the Crypt-KDF distribution.