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