GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CRYPT::RSA::SS::PKCS1V15 (3)

.ds Aq ’

NAME

Crypt::RSA::SS::PKCS1v15 - PKCS #1 v1.5 signatures.

CONTENTS

SYNOPSIS



    my $pkcs = new Crypt::RSA::SS::PKCS1v15 (
                        Digest => MD5
                    );

    my $signature = $pkcs->sign (
                        Message => $message,
                        Key     => $private,
                    ) || die $pss->errstr;

    my $verify    = $pkcs->verify (
                        Message   => $message,
                        Key       => $key,
                        Signature => $signature,
                    ) || die $pss->errstr;



DESCRIPTION

This module implements PKCS #1 v1.5 signatures based on RSA. See [13] for details on the scheme.

METHODS

BInew()

Constructor. Takes a hash as argument with the following key:
<B>DigestB> Name of the Message Digest algorithm. Three Digest algorithms are supported: MD2, MD5 and SHA1. Digest defaults to SHA1.

BIversion()

Returns the version number of the module.

BIsign()

Computes a PKCS #1 v1.5 signature on a message with the private key of the signer. sign() takes a hash argument with the following mandatory keys:
<B>MessageB> Message to be signed, a string of arbitrary length.
<B>KeyB> Private key of the signer, a Crypt::RSA::Key::Private object.

BIverify()

Verifies a signature generated with sign(). Returns a true value on success and false on failure. $self->errstr is set to Invalid signature. or appropriate error on failure. verify() takes a hash argument with the following mandatory keys:
<B>KeyB> Public key of the signer, a Crypt::RSA::Key::Public object.
<B>MessageB> The original signed message, a string of arbitrary length.
<B>SignatureB> Signature computed with sign(), a string.

ERROR HANDLING

See ERROR HANDLING in Crypt::RSA(3) manpage.

BIBLIOGRAPHY

See BIBLIOGRAPHY in Crypt::RSA(3) manpage.

AUTHOR

Vipul Ved Prakash, <mail@vipul.net>

SEE ALSO

Crypt::RSA(3), Crypt::RSA::Primitives(3), Crypt::RSA::Keys(3), Crypt::RSA::EME::OAEP(3)
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CRYPT::RSA::SS::PKCS1V15 (3) 2009-06-07

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.