os/security/cryptoplugins/cryptospiplugins/test/dummyecchwplugin/src/pluginconfig.h
Update contrib.
2 * Copyright (c) 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.
24 #ifndef CCRYPTOAPI_DUMMYECCHWPLUGINCONFIG_H
25 #define CCRYPTOAPI_DUMMYECCHWPLUGINCONFIG_H
27 #include <cryptospi/cryptoparams.h>
29 #include <cryptospi/romlit.h>
30 #include "cryptospi/cryptospidef.h"
32 namespace DummyEccHwCrypto
34 using namespace CryptoSpi;
38 _ROMLIT16(KNokia, "Nokia");
42 _ROMLIT16(KEccCipherDescription, "Ecc");
43 _ROMLIT16(KEccSignerDescription, "EccSigner");
46 ECC Cipher Characteristics
48 static const TInt32 KCryptoPluginEccCipher = 0xA000D697;
49 static const TUid KCryptoPluginEccCipherUid =
51 KCryptoPluginEccCipher
53 static const TInt32 KECCCipherPaddingModes[] =
58 static const TAsymmetricCipherCharacteristics KECC_1 =
60 KAsymmetricCipherInterface, /* iInterfaceUID */
61 KAlgorithmCipherEcc, /* iAlgorithmUID */
62 KCryptoPluginEccCipher, /* iImplementationUID */
63 &KNokia, /* iCreatorName */
64 EFalse, /* iIsFIPSApproved */
65 ETrue, /* iIsHardwareSupported */
66 6, /* iMaxConcurrencySupported */
67 &KEccCipherDescription, /* iAlgorithmName */
70 360, /* iMaximumKeyLength */
71 KECCCipherPaddingModes, /* iSupportedPaddingModes */
72 sizeof(KECCCipherPaddingModes) / sizeof(KECCCipherPaddingModes[0]), /* iPaddingModeNum */
78 ECC Signer Characteristics
80 static const TInt32 KCryptoPluginEccSigner = 0xA000D698;
81 static const TUid KCryptoPluginEccSignerUid =
83 KCryptoPluginEccSigner
85 static const TInt32 KECCSignerPaddingModes[] =
90 static const TAsymmetricSignatureCharacteristics KECCSigner_1 =
92 KSignerInterface, /* iInterfaceUID */
93 KAlgorithmSignerEcc, /* iAlgorithmUID */
94 KCryptoPluginEccSigner, /* iImplementationUID */
95 &KNokia, /* iCreatorName */
96 EFalse, /* iIsFIPSApproved */
97 ETrue, /* iIsHardwareSupported */
98 6, /* iMaxConcurrencySupported */
99 &KEccSignerDescription, /* iAlgorithmName */
101 90, /* iThroughput */
102 360, /* iMaximumKeyLength */
103 KECCCipherPaddingModes, /* iSupportedPaddingModes */
104 sizeof(KECCCipherPaddingModes) / sizeof(KECCCipherPaddingModes[0]), /* iPaddingModeNum */
106 /* iKeySupportMode */
110 For each crypto algorithm type implemented in this plugin list the characteristics
114 Asymmetric Cipher implementation characteristic table
116 static const TAsymmetricCipherCharacteristics
117 * const KAsymmetricCipherCharacteristics[] =
123 Signer implementation characteristic table
125 static const TAsymmetricSignatureCharacteristics
126 * const KSignerCharacteristics[] =
133 #endif //CCRYPTOAPI_DUMMYECCHWPLUGINCONFIG_H