|
1 /* |
|
2 * Copyright (c) 2005 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: implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MSRTPCRYPTOHANDLERCONTEXTRTCP_H |
|
21 #define MSRTPCRYPTOHANDLERCONTEXTRTCP_H |
|
22 |
|
23 #include <e32std.h> |
|
24 #include "msrtpcryptohandlercontext.h" |
|
25 |
|
26 |
|
27 // CLASS DECLARATION |
|
28 /* |
|
29 * A context for stream classes for using RTCP-specific crypto handling operations. |
|
30 * |
|
31 * @lib n/a |
|
32 */ |
|
33 class MSRTPCryptoHandlerContextRTCP: public MSRTPCryptoHandlerContext |
|
34 { |
|
35 public: // New functions |
|
36 |
|
37 /* |
|
38 * Determines the index i |
|
39 * of an SRTCP packet by incrementing one on sender's side. |
|
40 * @return void |
|
41 */ |
|
42 virtual void CountSenderPacketIndexL() = 0; |
|
43 |
|
44 /* |
|
45 * Initial the index i |
|
46 * of an SRTCP packet with initial packet index on sender's side. |
|
47 * @return void |
|
48 */ |
|
49 virtual void InitialPacketIndex()=0; |
|
50 |
|
51 /* |
|
52 * Implements pseudocode on RFC 3711 Appendix A |
|
53 * for determining the index i of an SRTP packet with given sequence number SEQ |
|
54 * and current s_l value in receiver side |
|
55 * @leave KErrNone if success, system-wide error code otherwise |
|
56 * @return void |
|
57 */ |
|
58 virtual void ReceiverPacketIndexL() =0; |
|
59 }; |
|
60 #endif //MSRTPCryptoHandlerContextRTCP_H |