rtp/srtpstack/inc/srtpauthentication_null.h
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 authentication.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __SRTP_AUTHENTICATION_NULL_H__
       
    22 #define __SRTP_AUTHENTICATION_NULL_H__
       
    23 
       
    24 #include "msrtpauthentication.h"
       
    25 
       
    26 class CSRTPAuthentication_NULL : public CBase, public MSRTPAuthentication
       
    27     {
       
    28     public:
       
    29         /**
       
    30         * Constructor.
       
    31         * @leave KErrNone if success, system-wide error code otherwise
       
    32         */
       
    33 	    static CSRTPAuthentication_NULL* NewL();
       
    34     
       
    35         /**
       
    36         * Destructor.
       
    37         */
       
    38 	    ~CSRTPAuthentication_NULL();
       
    39 
       
    40         /**
       
    41         * This function is called by SRTP for NULL authentication/integrity protection
       
    42         * Returns empty tag
       
    43         * @param aBitLength  authentication tag length
       
    44         * @param aKey  authentication key (n_a)
       
    45         * @param aAuthPortion data to be integrity protected 
       
    46 	    * Returns HBufC8* authentication tag (empty) 
       
    47         */
       
    48         HBufC8* AuthenticateL(TUint aBitLength,
       
    49                             const TDesC8& aKey, 
       
    50                             const TDesC8& aAuthPortion,
       
    51                             const TDesC8& aRoc);
       
    52                                 
       
    53                  
       
    54     private:         // methods
       
    55         /**
       
    56         * Default constructor.
       
    57         */
       
    58         CSRTPAuthentication_NULL();                  
       
    59     };
       
    60 
       
    61 #endif // __SRTP_AUTHENTICATION_NULL_H__
       
    62