CRSAPKCS1v15Verifier Class Reference
class CRSAPKCS1v15Verifier : public CRSAVerifier
|
This class verifies RSA signatures given a message and its supposed signature. It follows the RSA PKCS#1 v1.5 with PKCS#1 v1.5 padding specification with the following exception: the
VerifyL()
function does
not
hash or in any way manipulate the input data before checking. Thus in order to verify RSA signatures in PKCS#1 v1.5 format, the input data needs to follow PKCS#1 v1.5 specification, i.e. be ASN.1 encoded and prefixed by ASN.1 encoded digestId.
Constructor & Destructor Documentation
CRSAPKCS1v15Verifier(const CRSAPublicKey &)
CRSAPKCS1v15Verifier(const CRSAPKCS1v15Verifier &)
~CRSAPKCS1v15Verifier(void)
~CRSAPKCS1v15Verifier
|
(
|
void
|
|
)
|
[virtual]
|
The destructor frees all resources owned by the object, prior to its destruction.
Member Functions Documentation
ConstructL(void)
void
|
ConstructL
|
(
|
void
|
|
)
|
[protected]
|
InverseSignLC(const CRSASignature &)
Performs a decryption operation on a signature using the public key.
This is the inverse of the sign operation, which performs a encryption operation on its input data using the private key. Although this can be used to verify signatures,
CRSAVerifier::VerifyL
should be used in preference. This method is however required by some security protocols.
MaxInputLength(void)
TInt
|
MaxInputLength
|
(
|
void
|
|
)
|
const [virtual]
|
MaxOutputLength(void)
TInt
|
MaxOutputLength
|
(
|
void
|
|
)
|
const [virtual]
|
Gets the maximum size of output that can be generated by this object.
NewL(const CRSAPublicKey &)
Creates a new
CRSAPKCS1v15Verifier
object from a specified RSA public key.
-
leave
-
KErrKeySize If the key length is too small
Parameters
const
CRSAPublicKey
& aKey
|
The RSA public key to be used for verifying
|
NewLC(const CRSAPublicKey &)
Creates a new
CRSAPKCS1v15Verifier
object from a specified RSA public key.
The returned pointer is put onto the cleanup stack.
-
leave
-
KErrKeySize If the key length is too small
Parameters
const
CRSAPublicKey
& aKey
|
The RSA public key to be used for verifying
|
operator=(const CRSAPKCS1v15Verifier &)
Member Data Documentation
CPaddingPKCS1Signature * iPadding
The PKCS#1 v1.5 signature padding
const CRSAPublicKey & iPublicKey
The RSA public key to be used for verification
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.