equal
deleted
inserted
replaced
|
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 an abstract class for ecryption operations |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __MSRTP_ENCRYPTION_H__ |
|
22 #define __MSRTP_ENCRYPTION_H__ |
|
23 |
|
24 #include <e32base.h> |
|
25 |
|
26 class MSRTPEncryption |
|
27 { |
|
28 public: |
|
29 /** |
|
30 * This function is called by SRTP for cipher operation |
|
31 * regardless of the algorithm, the default is AESCM-128 |
|
32 * Produces key stream and performs an XOR operation for the plain text |
|
33 * @param aKey Input key. |
|
34 * @param aIV Integer Value (IV). |
|
35 * Returns HBufC8* decrypted/encrypted source |
|
36 */ |
|
37 virtual HBufC8* EncryptL(const TDesC8& aKey, |
|
38 const TDesC8& aIV, |
|
39 const TDesC8& aSrc ) = 0; |
|
40 virtual ~MSRTPEncryption() { }; |
|
41 }; |
|
42 |
|
43 #endif // __MSRTP_ENCRYPTION_H__ |