The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Convert::SSH2::Format::PKCS1 - Format SSH key data as PKCS1

PURPOSE

This module formats SSH2 RSA public keys as PKCS1 strings.

Generally, you shouldn't instantiate this class on its own. It will be called by Convert::SSH2 when needed.

ATTRIBUTES

asn

Holds an ASN converter. Defaults to Convert::ASN1.

asn_template

The ASN encoding template.

Defaults to:

    RSAPublicKey ::= SEQUENCE {
        modulus           INTEGER,  -- n
        publicExponent    INTEGER   -- e
    }

METHOD

generate()

Returns a PKCS#1 formatted string, given n and e.

SEE ALSO

Convert::SSH2