rtp/srtpstack/src/srtpcipher_null.cpp
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     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 class for NULL encryption/decryption.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #include "srtpcipher_null.h"
       
    22 
       
    23 // ---------------------------------------------------------------------------
       
    24 // CSRTPCipherNULL::NewL
       
    25 // ---------------------------------------------------------------------------
       
    26 //
       
    27 CSRTPCipherNULL* CSRTPCipherNULL::NewL()
       
    28     {
       
    29     CSRTPCipherNULL* self = new( ELeave ) CSRTPCipherNULL();
       
    30     return self;    
       
    31     }
       
    32 
       
    33 // ---------------------------------------------------------------------------
       
    34 // CSRTPCipherNULL::TransformL
       
    35 // ---------------------------------------------------------------------------
       
    36 //
       
    37 HBufC8* CSRTPCipherNULL::TransformL(const TDesC8& /*aKey*/, 
       
    38                                 const TDesC8& /*aIV*/, 
       
    39                                 const TDesC8& aSrc )
       
    40     {    
       
    41     HBufC8* result = HBufC8::NewMaxL(aSrc.Length());
       
    42 
       
    43     //do nothing, but just copy the plain/decrypted text to destination
       
    44     *result = aSrc;
       
    45     return result;
       
    46     }
       
    47 
       
    48 // ---------------------------------------------------------------------------
       
    49 // CSRTPCipherNULL::~CSRTPCipherNULL
       
    50 // ---------------------------------------------------------------------------
       
    51 //
       
    52 CSRTPCipherNULL::~CSRTPCipherNULL()
       
    53     {    
       
    54     }
       
    55 
       
    56 // ---------------------------------------------------------------------------
       
    57 // CSRTPCipherNULL::CSRTPCipherNULL
       
    58 // ---------------------------------------------------------------------------
       
    59 //
       
    60 CSRTPCipherNULL::CSRTPCipherNULL()
       
    61     {    
       
    62         
       
    63     }