Net::SS...::ECDSA(3)

πŸ“¦
version 2.144 Β· 4 versions
, in fedora 44

πŸ’– 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:

  • $signature should be an SSH-compatible signature blob, as returned from sign
  • $data should be a string of data, as passed to sign

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