NAME

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

DESCRIPTION

These are for use with Crypt::ECDSA, a Math::GMPz based cryptography module.

METHODS

new
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.
read_PEM
$pem->read_PEM( filename => $filename, password => $password );

Read and parse a PEM file.  The password is optional.
read_PEM_fh
$pem->read_PEM_fh( filename => $fname );

Read from an open file handle.  Otherwise like read_PEM().
write_PEM
$pem->write_PEM( filename => $outfile, private => 1, password => $pwrd );

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.
key_to_private_pem
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.

TODO

Password protection with encrypted private key PEM files requires that the Rijndael
module be used, so far.   Other cipher support to be added.

AUTHOR

William Herrera B<wherrera@skylightview.com>. 

SUPPORT

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

COPYRIGHT

    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.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 548:

=over without closing =back