sl@0: /* sl@0: * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: #include "rsashim.h" sl@0: sl@0: /* CRSASigner */ sl@0: sl@0: EXPORT_C CRSASigner::CRSASigner(void) sl@0: { sl@0: } sl@0: sl@0: /* CRSAPKCS1v15Signer */ sl@0: EXPORT_C CRSAPKCS1v15Signer* CRSAPKCS1v15Signer::NewL(const CRSAPrivateKey& aKey) sl@0: { sl@0: return CRSAPKCS1v15SignerShim::NewL(aKey); sl@0: } sl@0: sl@0: EXPORT_C CRSAPKCS1v15Signer* CRSAPKCS1v15Signer::NewLC(const CRSAPrivateKey& aKey) sl@0: { sl@0: return CRSAPKCS1v15SignerShim::NewLC(aKey); sl@0: } sl@0: sl@0: CRSAPKCS1v15Signer::CRSAPKCS1v15Signer(const CRSAPrivateKey& aKey) sl@0: : iPrivateKey(aKey) sl@0: { sl@0: } sl@0: sl@0: CRSAPKCS1v15Signer::~CRSAPKCS1v15Signer(void) sl@0: { sl@0: } sl@0: sl@0: // All these methods have been replaced by the shim sl@0: #ifdef _BullseyeCoverage sl@0: #pragma suppress_warnings on sl@0: #pragma BullseyeCoverage off sl@0: #pragma suppress_warnings off sl@0: #endif sl@0: TInt CRSAPKCS1v15Signer::MaxInputLength(void) const sl@0: { sl@0: // Method replaced by shim sl@0: ASSERT(EFalse); sl@0: return 0; sl@0: } sl@0: sl@0: TInt CRSAPKCS1v15Signer::MaxOutputLength(void) const sl@0: { sl@0: // Method replaced by shim sl@0: ASSERT(EFalse); sl@0: return 0; sl@0: } sl@0: sl@0: CRSASignature* CRSAPKCS1v15Signer::SignL(const TDesC8& /*aInput*/) const sl@0: { sl@0: // Method replaced by shim sl@0: User::Leave(KErrNotSupported); sl@0: return 0; sl@0: } sl@0: sl@0: void CRSAPKCS1v15Signer::ConstructL(void) sl@0: { sl@0: // Method replaced by shim sl@0: User::Leave(KErrNotSupported); sl@0: }