os/security/cryptoplugins/cryptospiplugins/test/h4drv/crypto_h4_plugin/pluginconfig.h
Update contrib.
2 * Copyright (c) 2007-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 __CRYPTOAPI_H4PLUGINCONFIG_H__
25 #define __CRYPTOAPI_H4PLUGINCONFIG_H__
27 #include <cryptospi/cryptoparams.h>
29 #include <cryptospi/romlit.h>
30 #include "cryptospi/cryptospidef.h"
34 using namespace CryptoSpi;
39 _ROMLIT16(KSymbian, "Symbian");
44 _ROMLIT16(KRandomDescription, "Random");
45 _ROMLIT16(KAesDescription, "Aes");
49 For each crypto algorithm implemented in this plugin define
50 a plugin-wide unique id to identify it
51 a UID that contains the above id
52 a table of characteristics
57 implementation 7 Random
59 static const TInt32 KCryptoPluginRandom = 0x20001CF3;
60 static const TUid KCryptoPluginRandomUid={KCryptoPluginRandom};
61 static const TRandomCharacteristics KRandom_1 = {KRandomInterface, KAlgorithmRandom, KCryptoPluginRandom, &KSymbian, EFalse, ETrue, 6, &KRandomDescription, 100, 90, 3};
67 static const TInt32 KCryptoPluginAes = 0x20001CF4;
68 static const TUid KCryptoPluginAesUid={KCryptoPluginAes};
69 static const TInt32 KAesPaddingModes[]={KPaddingModeNone, KPaddingModeSSLv3, KPaddingModePKCS7};
70 static const TInt32 KAesCryptoModes[]={KOperationModeNone, KOperationModeECB, KOperationModeCBC};
72 static const TSymmetricCipherCharacteristics KAes_1 = {KSymmetricCipherInterface, KAlgorithmCipherAes, KCryptoPluginAes, &KSymbian, EFalse, ETrue, 6, &KAesDescription, 100, 90,
73 256, 128, KAesPaddingModes, sizeof(KAesPaddingModes)/sizeof(KAesPaddingModes[0]), KAesCryptoModes, sizeof(KAesCryptoModes)/sizeof(KAesCryptoModes[0]), 3};
78 For each crypto algorithm type implemented in this plugin list the characteristics
83 Random implementation characteristic table
86 static const TRandomCharacteristics* const KRandomCharacteristics[]=
92 Symmetric Cipher implementation characteristic table
94 static const TSymmetricCipherCharacteristics* const KSymmetricCipherCharacteristics[]=
101 #endif //__CRYPTOAPI_H4PLUGINCONFIG_H__