rtp/srtpstack/inc/srtpaesctrcrypto.h
branchRCL_3
changeset 9 1e1cc61f56c3
parent 0 307788aac0a8
equal deleted inserted replaced
4:dd3853b8dc3f 9:1e1cc61f56c3
    21 #ifndef __SRTPAESCTRCRYPTO_H__
    21 #ifndef __SRTPAESCTRCRYPTO_H__
    22 #define __SRTPAESCTRCRYPTO_H__
    22 #define __SRTPAESCTRCRYPTO_H__
    23 
    23 
    24 #include <e32base.h>
    24 #include <e32base.h>
    25 
    25 
       
    26 class CAESEncryptor;
    26 
    27 
    27 class CSrtpAESCTRCrypto : public CBase
    28 class CSrtpAESCTRCrypto : public CBase
    28   	{
    29   	{
    29 public:
    30 public:
    30     /**
    31     /**
    66     * Sets IV's last 32 bits to 0 if their value is max
    67     * Sets IV's last 32 bits to 0 if their value is max
    67     * @param aIV  Integer Value (IV).
    68     * @param aIV  Integer Value (IV).
    68 	*/
    69 	*/
    69 	void IncreaseIV(TDes8& iv);
    70 	void IncreaseIV(TDes8& iv);
    70 	
    71 	
       
    72 	void CreateEncryptorL(const TDesC8& aKey);
       
    73 	
       
    74 private:
       
    75     
       
    76     HBufC8* iKey;
       
    77     CAESEncryptor* iEncryptor;
       
    78 	
    71 	#ifdef EUNIT_TESTING
    79 	#ifdef EUNIT_TESTING
    72         friend class UT_CSrtpAESCTRCrypto;
    80         friend class UT_CSrtpAESCTRCrypto;
    73     #endif     
    81     #endif     
    74 	};
    82 	};
    75 
    83