00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef MMCCSRTPMASTERSALT_H
00022 #define MMCCSRTPMASTERSALT_H
00023
00024 #include <e32base.h>
00025
00026
00027
00028 const TUint KMccSRTPDefSessionSaltingKeyLength = 0x70;
00029
00030
00031
00032 const TUint KMasterSaltMaxLength = 14;
00033
00034
00035
00036 const TUint16 KMccSRTPDefaultMasterSaltLength = 0x70;
00037
00044 class TMccSrtpMasterSalt
00045 {
00046 public:
00047
00048 inline TMccSrtpMasterSalt( const TDesC8& aMasterSalt,
00049 TUint aSaltKeyLength = KMccSRTPDefSessionSaltingKeyLength ) :
00050 iMasterSalt( aMasterSalt ),
00051 iSaltKeyLength( aSaltKeyLength )
00052 {
00053 };
00054
00055 private:
00056
00057 TMccSrtpMasterSalt() :
00058 iMasterSalt( KNullDesC8 ),
00059 iSaltKeyLength( KMccSRTPDefSessionSaltingKeyLength )
00060 {
00061 };
00062
00063 public:
00064
00068 TBufC8< KMasterSaltMaxLength > iMasterSalt;
00069
00073 TUint iSaltKeyLength;
00074 };
00075
00076 typedef TPckgBuf<TMccSrtpMasterSalt> TMccSrtpMasterSaltPckg;
00077
00078 #endif