NAME
Crypt::DSA::GMP::Key::SSH2 - Read/write DSA SSH2 files
SYNOPSIS
use Crypt::DSA::GMP::Key;
my $key = Crypt::DSA::GMP::Key->new( Type => 'SSH2', ...);
$key->write( Type => 'SSH2', ...);
DESCRIPTION
Crypt::DSA::GMP::Key::SSH2 provides an interface for reading and writing DSA SSH2 files, using Data::Buffer, which provides functionality for SSH-compatible binary in/out buffers.
Currently encrypted key files are not supported.
You shouldn't use this module directly. As the SYNOPSIS above suggests, this module should be considered a plugin for Crypt::DSA::GMP::Key, and all access to SSH2 files (reading DSA keys from disk, etc.) should be done through that module.
Read the Crypt::DSA::GMP::Key documentation for more details.
SUBCLASS METHODS
serialize
Returns the appropriate serialization blob of the key.
deserialize
Given an argument hash containing Content and Password, this unpacks the serialized key into the self object.
TODO
This doesn't handle data produced by OpenSSH. To see the data from a DSA key in their format:
cat file.dsa | grep -v -- ----- | tr -d '\n' | base64 -d | \
openssl asn1parse -inform DER
So we will need Convert::ASN1 to handle this.
AUTHOR & COPYRIGHTS
See Crypt::DSA::GMP for author, copyright, and license information.