Update contrib.
2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * cryptoplugin abstract interface
26 #ifndef __CRYPTOAPI_CRYPTOPLUGIN_H__
27 #define __CRYPTOAPI_CRYPTOPLUGIN_H__
29 #include <cryptospi/cryptobaseapi.h>
30 #include <cryptospi/plugincharacteristics.h>
31 #include <cryptospi/extendedcharacteristics.h>
37 The crypto plugin base class definition
42 virtual void Close() = 0;
45 Resets the crypto plugin.
47 virtual void Reset() = 0;
50 Retrieves the plugin's common characteristics
51 @param aPluginCharacteristics The plugin characteristics value retrieved
52 @leave ... Any of the crypto error codes defined in
53 cryptospi_errs.h or any of the system-wide error codes.
55 virtual void GetCharacteristicsL(const TCharacteristics*& aPluginCharacteristics) = 0;
58 Retrieves the plugin's extended characteristics
59 @return The extended plugin characteristics, on the heap.
60 This should be deleted by the caller when finished with.
61 @leave ... Any of the crypto error codes defined in
62 cryptospi_errs.h or any of the system-wide error codes.
64 virtual const CExtendedCharacteristics* GetExtendedCharacteristicsL() = 0;
67 Interface that enable plugin to extend functionality
68 @param aExtensionId The UID for the extended functionality
69 @return The extended handler pointer
71 virtual TAny* GetExtension(TUid aExtensionId) = 0;
75 #endif //__CRYPTOAPI_CRYPTOPLUGIN_H__