pkiutilities/DeviceToken/Inc/SimpleDHKey.h
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     1 /*
       
     2 * Copyright (c) 2006 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:   The header file of SimpleDHKey
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __SIMPLEDHKEY_H__
       
    20 #define __SIMPLEDHKEY_H__
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 /**
       
    25  * Wrapper class because we differ from crypto on what a DH key is
       
    26  *
       
    27  *  @lib
       
    28  *  @since S60 v3.2
       
    29  */
       
    30 class CSimpleDHKey : public CBase
       
    31     {
       
    32     public:
       
    33         
       
    34         static CSimpleDHKey* NewL(TInt aSize);
       
    35         
       
    36         ~CSimpleDHKey();
       
    37     
       
    38     public:
       
    39         
       
    40         inline RInteger& DHKey() {return (iKey);};
       
    41     
       
    42     private:
       
    43         
       
    44         CSimpleDHKey() {};
       
    45         
       
    46         void ConstructL(TInt aSize);
       
    47     
       
    48     private:
       
    49         
       
    50         RInteger iKey;
       
    51     };
       
    52 
       
    53 #endif //__SIMPLEDHKEY_H__