Net::SS...::ECDSA(3)
π Net::SS...::ECDSA(3) π
okay bestie, welcome to the manual page for Net::SS...::ECDSA(3), straight outta the User Contributed Perl Documentation section of your friendly neighbourhood man setup. she's a little niche, she's a little cryptographic, and she's about to make elliptic curve keys make sense. grab a strawberry π and let's go.
β¨ NAME β¨
Net::SSH::Perl::Key::ECDSA β the Elliptical Curve DSA key object base class, no cap. π
π SYNOPSIS π
the whole vibe in four lines:
use Net::SSH::Perl::Key;
my $key = Net::SSH::Perl::Key->new('ECDSA521');
that's it. that's the entrance. π¦
π DESCRIPTION π
so Net::SSH::Perl::Key::ECDSA subclasses Net::SSH::Perl::Key to implement the base class of an elliptical curve DSA key object. like, it's the blueprint, the blueprint's blueprint. π
the actual heavy lifting underneath is handled by Crypt::PK::ECC, and this class wraps around that module to give you SSH-specific functionality β for example, taking in a Net::SSH::Perl::Buffer blob and transforming it into a key object. it's giving glow-up, honestly. β¨
π₯ USAGE π₯
Net::SSH::Perl::Key::ECDSA implements the interface described in the documentation for Net::SSH::Perl::Key. any differences or additions? those live right here, bestie. π
πΈ $key->read_private($file [, $passphrase]) πΈ
since this class is a base class, the read_private method reblesses to the subclass based on the key type loaded. yes she shape-shifts. she contains multitudes. π§
β $key->sign($data) β
this one wraps around Crypt::PK::ECC::sign_message to sign $data using the key $key, then encodes that signature into an SSH-compatible signature blob.
returns the signature blob. periodt. π
π¦ $key->verify($signature, $data) π¦
given a signature blob $signature and the original signed data $data, this attempts to verify the signature using the key $key. it wraps around Crypt::PK::ECC::verify_message to perform the core verification.
here's the tea on the args:
$signatureshould be an SSH-compatible signature blob, as returned fromsign$datashould be a string of data, as passed tosign
returns true if the verification succeeds, false otherwise. simple as that. π«Ά
π AUTHOR & COPYRIGHTS π
Lance Kinley E<lkinley@loyaltymethods.com>
Copyright (c) 2016 Loyalty Methods, Inc.
π POD ERRORS π
Hey! The above document had some coding errors, which are explained below:
Around line 191:
Unknown E content in E<lkinley@loyaltymethods.com>
not the doc dragging itself in its own POD errors section π iconic behaviour fr fr, we love a self-aware manual.
and that's the whole page, babe. this one shipped with perl v5.42.0 and is dated 2026-01-17 β so go forth, sign your blobs, verify your data, and remember: base classes are the main characters, everyone else is just reblessing into them. πβ¨π
π¦ where this page comes from
- fedora 44: perl-Net-SSH-Perl 2.144-2.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms