NAME

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

DESCRIPTION

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

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

Class Internal Functions

ANS1_oid_to_standard_curve
DER_octet_string_to_bint
DER_public_key_to_point
bint_to_DER_octet_string
decrypt_pem
encrypt_pem
evp_key
key_to_public_PEM
private_pem_DER_to_tree
read_ECDSA_signature_file
read_PEM_entries
standard_curve_to_ANS1
write_ECDSA_signature_file

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 618:

=over without closing =back