sl@0: /* sl@0: * Copyright (c) 2007-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: #include "hashshim.h" sl@0: sl@0: // sl@0: // SHA-2 implementation sl@0: // sl@0: CSHA2::CSHA2() sl@0: { sl@0: } sl@0: sl@0: EXPORT_C CSHA2* CSHA2::NewL(TSH2Algo aAlgorithmId) sl@0: { sl@0: CSHA2* self = CSHA2::NewLC(aAlgorithmId); sl@0: CleanupStack::Pop(self); sl@0: return self; sl@0: } sl@0: sl@0: EXPORT_C CSHA2* CSHA2::NewLC(TSH2Algo aAlgorithmId) sl@0: { sl@0: CSHA2* self =CSHA2Shim::NewLC(aAlgorithmId); sl@0: self->Reset(); sl@0: return self; sl@0: } sl@0: sl@0: EXPORT_C CSHA2::~CSHA2(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: sl@0: void CSHA2::RestoreState() sl@0: { sl@0: ASSERT(EFalse); sl@0: } sl@0: sl@0: void CSHA2::StoreState() sl@0: { sl@0: ASSERT(EFalse); sl@0: }