|
1 /* |
|
2 * Copyright (c) 2004 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 "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: Provides class for NULL encryption/decryption. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __SRTP_CIPHER_NULL_H__ |
|
22 #define __SRTP_CIPHER_NULL_H__ |
|
23 |
|
24 #include "msrtpcipher.h" |
|
25 |
|
26 //FORWARD declarations |
|
27 class CSrtpAESCTRCrypto; |
|
28 |
|
29 class CSRTPCipherNULL: public CBase, public MSRTPCipher |
|
30 { |
|
31 public: |
|
32 /** |
|
33 * Constructor. |
|
34 * @leave KErrNone if success, system-wide error code otherwise |
|
35 */ |
|
36 static CSRTPCipherNULL* NewL(); |
|
37 |
|
38 /** |
|
39 * Destructor. |
|
40 */ |
|
41 ~CSRTPCipherNULL(); |
|
42 |
|
43 /** |
|
44 * Inherited from MSRTPCipher. |
|
45 * This function is called by SRTP for NULL encryption/decryption |
|
46 * Just copies the input text to output text. |
|
47 * @param aKey Input key. |
|
48 * @param aIV Integer Value (IV). |
|
49 * @param aSrc source data which will be transformed. |
|
50 * Returns HBufC8* decrypted/encrypted source |
|
51 */ |
|
52 HBufC8* TransformL(const TDesC8& aKey, |
|
53 const TDesC8& aIV, |
|
54 const TDesC8& aSrc ); |
|
55 |
|
56 private: // Data |
|
57 |
|
58 private: // methods |
|
59 /** |
|
60 * Default constructor. |
|
61 */ |
|
62 CSRTPCipherNULL(); |
|
63 }; |
|
64 |
|
65 #endif // __SRTP_CIPHER_NULL_H__ |