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