.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "Crypt::RSA::Parse 3pm" .TH Crypt::RSA::Parse 3pm "2018-08-26" "perl v5.26.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Crypt::RSA::Parse \- Parse RSA keys .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 3 \& #General\-purpose, native RSA or PKCS8 (DER or PEM) \& my $public_rsa = Crypt::RSA::Parse::public($key_str); \& my $private_rsa = Crypt::RSA::Parse::private($private_key_str); \& \& $public_rsa\->exponent(); #alias E() \& $public_rsa\->modulus(); #isa Math::BigInt, alias N() \& $public_rsa\->size(); #i.e., the modulus length in bits \& \& $private_rsa\->version(); #usually 0 \& $private_rsa\->modulus(); #isa Math::BigInt, alias N() \& $private_rsa\->size(); #i.e., the modulus length in bits \& \& $private_rsa\->publicExponent(); #same as public “exponent”, alias E() \& $private_rsa\->privateExponent(); #isa Math::BigInt, alias D() \& $private_rsa\->prime1(); #isa Math::BigInt, alias P() \& $private_rsa\->prime2(); #isa Math::BigInt, alias Q() \& $private_rsa\->exponent1(); #isa Math::BigInt, alias DP() \& $private_rsa\->exponent2(); #isa Math::BigInt, alias DQ() \& $private_rsa\->coefficient(); #isa Math::BigInt, alias QINV() \& \& #Only checks PKCS8 (DER or PEM) \& $public_rsa = Crypt::RSA::Parse::public_pkcs8($pkcs8_str); \& $private_rsa = Crypt::RSA::Parse::private_pkcs8($pkcs8_str); \& \& { \& #If, for whatever reason, you don’t like MIME::Base64, \& #then customize this. The module must have a decode() function. \& # \& local $Crypt::RSA::Parse::BASE64_MODULE = \*(Aq..\*(Aq; \& \& Crypt::RSA::Parse::... \& } .Ve .SH "DEPRECATION NOTICE" .IX Header "DEPRECATION NOTICE" \&\fB\s-1IMPORTANT:\s0\fR This distribution is no longer maintained. See its successor, Crypt::Perl, for a much more comprehensive toolkit. .SH "DESCRIPTION" .IX Header "DESCRIPTION" Not much else to say: it parses \s-1RSA\s0 keys for useful information! .PP The public keys are represented via the \f(CW\*(C`Crypt::RSA::Parse::Public\*(C'\fR class, while private keys are represented via \f(CW\*(C`Crypt::RSA::Parse::Private\*(C'\fR. .SH "AUTHOR" .IX Header "AUTHOR" .Vb 2 \& Felipe M. L. Gasper \& CPAN ID: FELIPE .Ve .SH "REPOSITORY" .IX Header "REPOSITORY" .Vb 1 \& https://github.com/FGasper/p5\-Crypt\-RSA\-Parse .Ve .SH "COPYRIGHT" .IX Header "COPYRIGHT" This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. .PP The full text of the license can be found in the \&\s-1LICENSE\s0 file included with this module.