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 sl@0: #include sl@0: sl@0: /* MCryptoSystem */ sl@0: sl@0: EXPORT_C MCryptoSystem::MCryptoSystem(void) sl@0: { sl@0: } sl@0: sl@0: /* CEncryptor */ sl@0: sl@0: EXPORT_C CEncryptor::CEncryptor(void) sl@0: { sl@0: } sl@0: sl@0: /* CDecryptor */ sl@0: sl@0: EXPORT_C CDecryptor::CDecryptor(void) sl@0: { sl@0: } sl@0: sl@0: /* MSignatureSystem */ sl@0: sl@0: EXPORT_C MSignatureSystem::MSignatureSystem(void) sl@0: { sl@0: } sl@0: sl@0: /* CRSASignature */ sl@0: sl@0: EXPORT_C CRSASignature* CRSASignature::NewL(RInteger& aS) sl@0: { sl@0: CRSASignature* self = new(ELeave)CRSASignature(aS); sl@0: return self; sl@0: } sl@0: sl@0: EXPORT_C CRSASignature* CRSASignature::NewLC(RInteger& aS) sl@0: { sl@0: CRSASignature* self = NewL(aS); sl@0: CleanupStack::PushL(self); sl@0: return self; sl@0: } sl@0: sl@0: EXPORT_C const TInteger& CRSASignature::S(void) const sl@0: { sl@0: return iS; sl@0: } sl@0: sl@0: EXPORT_C TBool CRSASignature::operator==(const CRSASignature& aSig) const sl@0: { sl@0: return ( S() == aSig.S() ); sl@0: } sl@0: sl@0: EXPORT_C CRSASignature::~CRSASignature(void) sl@0: { sl@0: iS.Close(); sl@0: } sl@0: sl@0: EXPORT_C CRSASignature::CRSASignature(RInteger& aS) : iS(aS) sl@0: { sl@0: } sl@0: sl@0: /* CDSASignature */ sl@0: sl@0: EXPORT_C CDSASignature* CDSASignature::NewL(RInteger& aR, RInteger& aS) sl@0: { sl@0: CDSASignature* self = new(ELeave)CDSASignature(aR, aS); sl@0: return self; sl@0: } sl@0: sl@0: EXPORT_C CDSASignature* CDSASignature::NewLC(RInteger& aR, RInteger& aS) sl@0: { sl@0: CDSASignature* self = NewL(aR, aS); sl@0: CleanupStack::PushL(self); sl@0: return self; sl@0: } sl@0: sl@0: EXPORT_C const TInteger& CDSASignature::R(void) const sl@0: { sl@0: return iR; sl@0: } sl@0: sl@0: EXPORT_C const TInteger& CDSASignature::S(void) const sl@0: { sl@0: return iS; sl@0: } sl@0: sl@0: EXPORT_C TBool CDSASignature::operator==(const CDSASignature& aSig) const sl@0: { sl@0: return ( R() == aSig.R() && S() == aSig.S() ); sl@0: } sl@0: sl@0: EXPORT_C CDSASignature::~CDSASignature(void) sl@0: { sl@0: iR.Close(); sl@0: iS.Close(); sl@0: } sl@0: sl@0: EXPORT_C CDSASignature::CDSASignature() sl@0: { sl@0: } sl@0: sl@0: EXPORT_C CDSASignature::CDSASignature(RInteger& aR, RInteger& aS) sl@0: : iR(aR), iS(aS) sl@0: { sl@0: } sl@0: