sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
* ** IMPORTANT ** PublishedPartner API's in this file are published to 3rd party developers via the
|
sl@0
|
16 |
* Symbian website. Changes to these API's should be treated as PublishedAll API changes and the Security TA should be consulted.
|
sl@0
|
17 |
* CNullCipher class implementation
|
sl@0
|
18 |
*
|
sl@0
|
19 |
*/
|
sl@0
|
20 |
|
sl@0
|
21 |
|
sl@0
|
22 |
/**
|
sl@0
|
23 |
@file
|
sl@0
|
24 |
@publishedPartner
|
sl@0
|
25 |
@released
|
sl@0
|
26 |
*/
|
sl@0
|
27 |
|
sl@0
|
28 |
#ifndef __NULLCIPHER_H__
|
sl@0
|
29 |
#define __NULLCIPHER_H__
|
sl@0
|
30 |
|
sl@0
|
31 |
#include <streamcipher.h>
|
sl@0
|
32 |
|
sl@0
|
33 |
/**
|
sl@0
|
34 |
* Stream cipher that does no encryption or decryption, but simply returns the
|
sl@0
|
35 |
* data given to it.
|
sl@0
|
36 |
* From CBlockTransformation
|
sl@0
|
37 |
*
|
sl@0
|
38 |
*/
|
sl@0
|
39 |
class CNullCipher : public CStreamCipher
|
sl@0
|
40 |
{
|
sl@0
|
41 |
public:
|
sl@0
|
42 |
/**
|
sl@0
|
43 |
* Creates a new CNullCipher object.
|
sl@0
|
44 |
*
|
sl@0
|
45 |
* @return A pointer to a new CNullCipher object
|
sl@0
|
46 |
*/
|
sl@0
|
47 |
IMPORT_C static CNullCipher* NewL(void);
|
sl@0
|
48 |
|
sl@0
|
49 |
/**
|
sl@0
|
50 |
* Creates a new CNullCipher object.
|
sl@0
|
51 |
*
|
sl@0
|
52 |
* The returned pointer is put onto the cleanup stack.
|
sl@0
|
53 |
*
|
sl@0
|
54 |
* @return A pointer to a new CNullCipher object
|
sl@0
|
55 |
*/
|
sl@0
|
56 |
IMPORT_C static CNullCipher* NewLC(void);
|
sl@0
|
57 |
virtual void Reset(void);
|
sl@0
|
58 |
virtual TInt KeySize(void) const;
|
sl@0
|
59 |
protected:
|
sl@0
|
60 |
virtual void DoProcess(TDes8& aData);
|
sl@0
|
61 |
/**
|
sl@0
|
62 |
* @internalAll
|
sl@0
|
63 |
*/
|
sl@0
|
64 |
CNullCipher();
|
sl@0
|
65 |
};
|
sl@0
|
66 |
|
sl@0
|
67 |
#endif // __NULLCIPHER_H__
|