Crypt::KDF::OpenSSLPBEGenerator - OpenSSL Password-Based-Encryption generator for derived keys and ivs as exercised by OpenSSL.


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

Index


NAME

Top

Crypt::KDF::OpenSSLPBEGenerator - OpenSSL Password-Based-Encryption generator for derived keys and ivs as exercised by OpenSSL.

SYNOPSIS

Top

DESCRIPTION

Top

This implementation is based on the Bouncycastle Java Implementation.

FUNCTIONS

Top

$derivedKey = opensslpbekdf_generate( $digest, $password, $salt, $len )

Quick functional interface to use OpenSSL PBE KDF.

METHODS

Top

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

Construct a OpenSSL PBE KDF generator.

	-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/password to be used to derive keys.
	-iv optional iv/salt to be used to derive keys.

$kdf->init( [options] )

Initialize the OpenSSL PBE KDF generator.

	-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/password to be used to derive keys.
	-iv optional iv/salt 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.