sl@0: /* sl@0: * Copyright (c) 2002-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: * ** IMPORTANT ** PublishedPartner API's in this file are published to 3rd party developers via the sl@0: * Symbian website. Changes to these API's should be treated as PublishedAll API changes and the Security TA should be consulted. sl@0: * CNullCipher class implementation sl@0: * sl@0: */ sl@0: sl@0: sl@0: /** sl@0: @file sl@0: @publishedPartner sl@0: @released sl@0: */ sl@0: sl@0: #ifndef __NULLCIPHER_H__ sl@0: #define __NULLCIPHER_H__ sl@0: sl@0: #include sl@0: sl@0: /** sl@0: * Stream cipher that does no encryption or decryption, but simply returns the sl@0: * data given to it. sl@0: * From CBlockTransformation sl@0: * sl@0: */ sl@0: class CNullCipher : public CStreamCipher sl@0: { sl@0: public: sl@0: /** sl@0: * Creates a new CNullCipher object. sl@0: * sl@0: * @return A pointer to a new CNullCipher object sl@0: */ sl@0: IMPORT_C static CNullCipher* NewL(void); sl@0: sl@0: /** sl@0: * Creates a new CNullCipher object. sl@0: * sl@0: * The returned pointer is put onto the cleanup stack. sl@0: * sl@0: * @return A pointer to a new CNullCipher object sl@0: */ sl@0: IMPORT_C static CNullCipher* NewLC(void); sl@0: virtual void Reset(void); sl@0: virtual TInt KeySize(void) const; sl@0: protected: sl@0: virtual void DoProcess(TDes8& aData); sl@0: /** sl@0: * @internalAll sl@0: */ sl@0: CNullCipher(); sl@0: }; sl@0: sl@0: #endif // __NULLCIPHER_H__