
Crypt::ECDSA::PEM -- ECDSA PEM file management for elliptic key DSA cryptography

These are for use with Crypt::ECDSA and require Math::BigInt::GMP.

Constructor. Takes the following named pair arguments: filename => $file_name Open and parse a PEM key file at initialization of the object. password => $passwd Use $passwd as a key to and encrypted PEM file.
$pem->read_PEM( filename => $filename, password => $password ); Read and parse a PEM file. The password is optional.
$pem->read_PEM_fh( filename => $fname );
Read from an open file handle. Otherwise like read_PEM().
$pem->write_PEM( filename => $outfile, private => 1,
password => $pwrd, cipher => 'Rijndael' );
Write a PEM file. The private parameter indicates to write out the
private key. Otherwise the public key only is wriiten to the file.
The password is for encryption if desired. cipher => $cipher is for the
cipher method: 'Rijndael' (AES) is suggested, but if your installation has them,
the module can use DES_EDE3 and Blowfish as well.
my $pem_text = $pem->key_to_private_PEM( $key, $password );
print $pem_text;
Create and return a PEM file containing the pirvate and public keys as
a scalar. The second, password parameter is optional.

William Herrera B<wherrera@skylightview.com>.

Questions, feature requests and bug reports should go to <wherrera@skylightview.com>.

Copyright (c) 2007 William Herrera. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.