First public contribution.
2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
23 EXPORT_C CRSAVerifier::CRSAVerifier(void)
27 /* CRSAPKCS1v15Verifier */
28 EXPORT_C CRSAPKCS1v15Verifier* CRSAPKCS1v15Verifier::NewL(const CRSAPublicKey& aKey)
30 return CRSAPKCS1v15VerifierShim::NewL(aKey);
33 EXPORT_C CRSAPKCS1v15Verifier* CRSAPKCS1v15Verifier::NewLC(const CRSAPublicKey& aKey)
35 return CRSAPKCS1v15VerifierShim::NewLC(aKey);
38 CRSAPKCS1v15Verifier::~CRSAPKCS1v15Verifier(void)
42 CRSAPKCS1v15Verifier::CRSAPKCS1v15Verifier(const CRSAPublicKey& aKey)
47 // All these methods have been replaced by the shim
48 #ifdef _BullseyeCoverage
49 #pragma suppress_warnings on
50 #pragma BullseyeCoverage off
51 #pragma suppress_warnings off
53 TInt CRSAPKCS1v15Verifier::MaxInputLength(void) const
55 // Method replaced by shim
60 TInt CRSAPKCS1v15Verifier::MaxOutputLength(void) const
62 // Method replaced by shim
67 HBufC8* CRSAPKCS1v15Verifier::InverseSignLC(const CRSASignature& /*aSignature*/) const
69 // Method replaced by shim
74 void CRSAPKCS1v15Verifier::ConstructL(void)
76 // Method replaced by shim
80 // InverseSignLC is replaced by shim. So, VerifyL also can not be used properly, hence excluded from coverage.
81 EXPORT_C TBool CRSAVerifier::VerifyL(const TDesC8& aInput, const CRSASignature& aSignature) const
83 TBool retval = EFalse;
84 HBufC8* inverseSign = InverseSignLC(aSignature);
86 if (inverseSign->Compare(aInput)==0)
90 CleanupStack::PopAndDestroy(inverseSign);