Update contrib.
2 * Copyright (c) 2007-2010 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.
25 #ifndef SYMMETRICCIPHERSTEPBASE_H
26 #define SYMMETRICCIPHERSTEPBASE_H
28 #include <cryptospi/cryptosymmetriccipherapi.h>
29 #include <cryptospi/keys.h>
30 #include "te_cryptospistepbase.h"
31 #include "filereader.h"
33 using namespace CryptoSpi;
35 class CSymmetricCipherStepBase : public CTe_CryptoSpiStepBase
38 void SetupCipherL(TBool aArc4Check, TBool aRc2Check, TVariantPtrC& aOperationMode, CSymmetricCipher*& aCipher, CKey*& aKey);
39 HBufC8* ReadInPlaintextL();
40 HBufC8* ReadInCiphertextL();
42 TInt CtrModeCalcBlockSizeL(CSymmetricCipher& aCipher);
43 HBufC8* CtrModeIncrementCounterL(TDesC8& aCounter);
44 HBufC8* ReadInHexCiphertextL();
45 HBufC8* ReadInHexPlaintextL();
46 HBufC8* ReadInHexPlainTextL(TPtrC aFile);
47 HBufC8* ReadInHexIvL();
48 HBufC8* ConvertFromHexFormatToRawL(TDesC8& aInput);
51 HBufC8* ReadFileL(TPtrC aFile);
54 #endif //SYMMETRICCIPHERSTEPBASE_H