remotemgmt_plat/terminal_security_device_lock_api/inc/dmencryptionutilinterface.h
changeset 24 bf47f3b79154
equal deleted inserted replaced
22:19fb38abab1d 24:bf47f3b79154
       
     1 /*
       
     2 * Copyright (c) 2009 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:  E/D Interface definition
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef _MDMEncryptionUtilInterface_H__
       
    19 #define _MDMEncryptionUtilInterface_H__
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <ecom/ecom.h>
       
    23 
       
    24 // UID of this interface
       
    25 const TUid KDMEncryptionUtilInterfaceUid = {0x2002C2F4};
       
    26 
       
    27 /**
       
    28 	An CDMEncryptionUtil abstract class being representative of the
       
    29 	concrete class which the client wishes to use.
       
    30 
       
    31 	It acts as a base, for a real class to provide all the 
       
    32 	functionality that a client requires.  
       
    33 	It supplies instantiation & destruction by using
       
    34 	the ECom framework, and functional services
       
    35 	by using the methods of the actual class.
       
    36  */
       
    37 
       
    38 
       
    39 class MDMEncryptionUtilInterface
       
    40 	{
       
    41 public:
       
    42 
       
    43 	// Pure interface methods
       
    44 	// Representative of a method provided on the interface by 
       
    45 	// the interface definer.
       
    46 	
       
    47 	/**
       
    48    * Encrypts the data.
       
    49    * @param aInput - is the input string which has to be encrypted.
       
    50    * @param aOutput - the encrypted information is stored parameter.
       
    51    * @return Return is KErrNone if successful or any System wide error code.
       
    52    * 
       
    53    */	
       
    54 	virtual TInt  EncryptL( TDes& aInput, TDes& aOutput) = 0;	
       
    55 	/**
       
    56    * Decrypts the data.
       
    57    * @param Input - is the input string which has to be decrypted.
       
    58    * @param aOutput - the decrypted information is stored in this parameter.
       
    59    * @return Return is KErrNone if successful or any System wide error code.
       
    60  	 */	
       
    61 	virtual TInt DecryptL( TDes& aInput, TDes& aOutput) = 0;
       
    62 	
       
    63 	};
       
    64 
       
    65 #endif  // _MDMEncryptionUtilInterface_H_
       
    66