sl@0: /* sl@0: * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: /** sl@0: @file sl@0: @@internalComponent sl@0: @released sl@0: */ sl@0: sl@0: #ifndef __CRYPTOAPI_SOFTWAREPLUGINCONFIG_H__ sl@0: #define __CRYPTOAPI_SOFTWAREPLUGINCONFIG_H__ sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: namespace SoftwareCrypto sl@0: { sl@0: using namespace CryptoSpi; sl@0: sl@0: /** sl@0: Creator Name sl@0: */ sl@0: _ROMLIT16(KSymbian, "Symbian"); sl@0: sl@0: /** sl@0: implementation Name sl@0: */ sl@0: _ROMLIT16(KMd2Description, "Md2"); sl@0: _ROMLIT16(KMd4Description, "Md4"); sl@0: _ROMLIT16(KMd5Description, "Md5"); sl@0: _ROMLIT16(KSha1Description, "Sha1"); sl@0: _ROMLIT16(KSha224Description, "Sha224"); sl@0: _ROMLIT16(KSha256Description, "Sha256"); sl@0: _ROMLIT16(KSha384Description, "Sha384"); sl@0: _ROMLIT16(KSha512Description, "Sha512"); sl@0: sl@0: _ROMLIT16(KRandomDescription, "Random"); sl@0: _ROMLIT16(KDesDescription, "Des"); sl@0: _ROMLIT16(K3DesDescription, "3Des"); sl@0: _ROMLIT16(KAesDescription, "Aes"); sl@0: _ROMLIT16(KRC2Description, "RC2"); sl@0: _ROMLIT16(KARC4Description, "ARC4"); sl@0: _ROMLIT16(KRsaCipherDescription, "Rsa"); sl@0: _ROMLIT16(KRsaSignerDescription, "RsaSigner"); sl@0: _ROMLIT16(KDsaSignerDescription, "DsaSigner"); sl@0: _ROMLIT16(KRsaVerifierDescription, "RsaVerifier"); sl@0: _ROMLIT16(KDsaVerifierDescription, "DsaVerifier"); sl@0: _ROMLIT16(KDHDescription, "DH"); sl@0: _ROMLIT16(KSymmetricKeyGeneratorDescription, "Symmetric Key Generator"); sl@0: _ROMLIT16(KRsaKeyPairDescription, "Rsa Key Pair Generator"); sl@0: _ROMLIT16(KDsaKeyPairDescription, "Dsa Key Pair Generator"); sl@0: _ROMLIT16(KDhKeyPairDescription, "DH Key Pair Generator"); sl@0: /** sl@0: For each crypto algorithm implemented in this plugin define sl@0: a plugin-wide unique id to identify it sl@0: a UID that contains the above id sl@0: a table of characteristics sl@0: */ sl@0: sl@0: sl@0: /** sl@0: Md2 Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginMd2 = 0x102831D0; sl@0: static const TUid KCryptoPluginMd2Uid={KCryptoPluginMd2}; sl@0: static const TInt32 KMd2OperationModes[]={KHashMode, KHmacMode}; sl@0: static const THashCharacteristics KMd2_1 = {KHashInterface, KAlgorithmHashMd2, KCryptoPluginMd2, &KSymbian, EFalse, EFalse, 6, &KMd2Description, 100, 90, 128, 128, KMd2OperationModes, sizeof(KMd2OperationModes)/sizeof(KMd2OperationModes[0])}; sl@0: sl@0: /** sl@0: Md5 Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginMd5 = 0x102831D1; sl@0: static const TUid KCryptoPluginMd5Uid={KCryptoPluginMd5}; sl@0: static const TInt32 KMd5OperationModes[]={KHashMode, KHmacMode}; sl@0: static const THashCharacteristics KMd5_1 = {KHashInterface, KAlgorithmHashMd5, KCryptoPluginMd5, &KSymbian, EFalse, EFalse, 6, &KMd5Description, 100, 90, 512, 128, KMd5OperationModes, sizeof(KMd5OperationModes)/sizeof(KMd5OperationModes[0])}; sl@0: sl@0: /** sl@0: Sha1 Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginSha1 = 0x102831D2; sl@0: static const TUid KCryptoPluginSha1Uid={KCryptoPluginSha1}; sl@0: static const TInt32 KSha1OperationModes[]={KHashMode, KHmacMode}; sl@0: static const THashCharacteristics KSha1_1 = {KHashInterface, KAlgorithmHashSha1, KCryptoPluginSha1, &KSymbian, EFalse, EFalse, 6, &KSha1Description, 100, 90, 512, 160, KSha1OperationModes, sizeof(KSha1OperationModes)/sizeof(KSha1OperationModes[0])}; sl@0: sl@0: /** sl@0: Md4 Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginMd4 = 0x2000B340; sl@0: static const TUid KCryptoPluginMd4Uid={KCryptoPluginMd4}; sl@0: static const TInt32 KMd4OperationModes[]={KHashMode, KHmacMode}; sl@0: static const THashCharacteristics KMd4_1 = {KHashInterface, KAlgorithmHashMd4, KCryptoPluginMd4, &KSymbian, EFalse, EFalse, 6, &KMd4Description, 100, 90, 512, 128, KMd4OperationModes, sizeof(KMd4OperationModes)/sizeof(KMd4OperationModes[0])}; sl@0: sl@0: /** sl@0: Sha224 Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginSha224 = 0x2000E25C; sl@0: static const TUid KCryptoPluginSha224Uid={KCryptoPluginSha224}; sl@0: static const TInt32 KSha224OperationModes[]={KHashMode, KHmacMode}; sl@0: static const THashCharacteristics KSha224_1 = {KHashInterface, KAlgorithmHashSha224, KCryptoPluginSha224, &KSymbian, EFalse, EFalse, 6, &KSha224Description, 100, 90, 512, 224, KSha224OperationModes, sizeof(KSha224OperationModes)/sizeof(KSha224OperationModes[0])}; sl@0: sl@0: /** sl@0: Sha256 Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginSha256 = 0x2000E25D; sl@0: static const TUid KCryptoPluginSha256Uid={KCryptoPluginSha256}; sl@0: static const TInt32 KSha256OperationModes[]={KHashMode, KHmacMode}; sl@0: static const THashCharacteristics KSha256_1 = {KHashInterface, KAlgorithmHashSha256, KCryptoPluginSha256, &KSymbian, EFalse, EFalse, 6, &KSha256Description, 100, 90, 512, 256, KSha256OperationModes, sizeof(KSha256OperationModes)/sizeof(KSha256OperationModes[0])}; sl@0: sl@0: /** sl@0: Sha384 Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginSha384 = 0x2000E25E; sl@0: static const TUid KCryptoPluginSha384Uid={KCryptoPluginSha384}; sl@0: static const TInt32 KSha384OperationModes[]={KHashMode, KHmacMode}; sl@0: static const THashCharacteristics KSha384_1 = {KHashInterface, KAlgorithmHashSha384, KCryptoPluginSha384, &KSymbian, EFalse, EFalse, 6, &KSha384Description, 100, 90, 1024, 384, KSha384OperationModes, sizeof(KSha384OperationModes)/sizeof(KSha384OperationModes[0])}; sl@0: sl@0: /** sl@0: Sha512 Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginSha512 = 0x2000E25F; sl@0: static const TUid KCryptoPluginSha512Uid={KCryptoPluginSha512}; sl@0: static const TInt32 KSha512OperationModes[]={KHashMode, KHmacMode}; sl@0: static const THashCharacteristics KSha512_1 = {KHashInterface, KAlgorithmHashSha512, KCryptoPluginSha512, &KSymbian, EFalse, EFalse, 6, &KSha512Description, 100, 90, 1024, 512, KSha512OperationModes, sizeof(KSha512OperationModes)/sizeof(KSha512OperationModes[0])}; sl@0: sl@0: sl@0: /** sl@0: Random Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginRandom = 0x102831D3; sl@0: static const TUid KCryptoPluginRandomUid={KCryptoPluginRandom}; sl@0: static const TRandomCharacteristics KRandom_1 = {KRandomInterface, KAlgorithmRandom, KCryptoPluginRandom, &KSymbian, EFalse, EFalse, 6, &KRandomDescription, 100, 90, 3}; sl@0: sl@0: sl@0: sl@0: /** sl@0: DES Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginDes = 0x102831D4; sl@0: static const TUid KCryptoPluginDesUid={KCryptoPluginDes}; sl@0: static const TInt32 KDesPaddingModes[]={KPaddingModeNone, KPaddingModeSSLv3, KPaddingModePKCS7}; sl@0: static const TInt32 KDesCryptoModes[]={KOperationModeNone, KOperationModeECB, KOperationModeCBC, KOperationModeCTR}; sl@0: sl@0: static const TSymmetricCipherCharacteristics KDes_1 = {KSymmetricCipherInterface, KAlgorithmCipherDes, KCryptoPluginDes, &KSymbian, EFalse, EFalse, 6, &KDesDescription, 100, 90, sl@0: 64 /* max key bits */, 64 /* block bits */, KDesPaddingModes, sizeof(KDesPaddingModes)/sizeof(KDesPaddingModes[0]), KDesCryptoModes, sizeof(KDesCryptoModes)/sizeof(KDesCryptoModes[0]), 3}; sl@0: sl@0: /** sl@0: 3DES-EDE Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPlugin3Des = 0x102831D5; sl@0: static const TUid KCryptoPlugin3DesUid={KCryptoPlugin3Des}; sl@0: static const TInt32 K3DesPaddingModes[]={KPaddingModeNone, KPaddingModeSSLv3, KPaddingModePKCS7}; sl@0: static const TInt32 K3DesCryptoModes[]={KOperationModeNone, KOperationModeECB, KOperationModeCBC, KOperationModeCTR}; sl@0: sl@0: static const TSymmetricCipherCharacteristics K3Des_1 = {KSymmetricCipherInterface, KAlgorithmCipher3Des, KCryptoPlugin3Des, &KSymbian, EFalse, EFalse, 6, &K3DesDescription, 100, 90, sl@0: 192 /* max key bits */, 64 /* block bits */, K3DesPaddingModes, sizeof(K3DesPaddingModes)/sizeof(K3DesPaddingModes[0]), K3DesCryptoModes, sizeof(K3DesCryptoModes)/sizeof(K3DesCryptoModes[0]), 3}; sl@0: sl@0: /** sl@0: AES Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginAes = 0x102831D6; sl@0: static const TUid KCryptoPluginAesUid={KCryptoPluginAes}; sl@0: static const TInt32 KAesPaddingModes[]={KPaddingModeNone, KPaddingModeSSLv3, KPaddingModePKCS7}; sl@0: static const TInt32 KAesCryptoModes[]={KOperationModeNone, KOperationModeECB, KOperationModeCBC, KOperationModeCTR}; sl@0: sl@0: static const TSymmetricCipherCharacteristics KAes_1 = {KSymmetricCipherInterface, KAlgorithmCipherAes, KCryptoPluginAes, &KSymbian, EFalse, EFalse, 6, &KAesDescription, 100, 90, sl@0: 256 /* max key bits */, 128 /* block bits */, KAesPaddingModes, sizeof(KAesPaddingModes)/sizeof(KAesPaddingModes[0]), KAesCryptoModes, sizeof(KAesCryptoModes)/sizeof(KAesCryptoModes[0]), 3}; sl@0: sl@0: sl@0: /** sl@0: RC2 Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginRc2 = 0x102831D7; sl@0: static const TUid KCryptoPluginRc2Uid={KCryptoPluginRc2}; sl@0: static const TInt32 KRc2PaddingModes[]={KPaddingModeNone, KPaddingModeSSLv3, KPaddingModePKCS7}; sl@0: static const TInt32 KRc2CryptoModes[]={KOperationModeNone, KOperationModeECB, KOperationModeCBC, KOperationModeCTR}; sl@0: sl@0: static const TSymmetricCipherCharacteristics KRc2_1 = {KSymmetricCipherInterface, KAlgorithmCipherRc2, KCryptoPluginRc2, &KSymbian, EFalse, EFalse, 6, &KRC2Description, 100, 90, sl@0: 1024 /* max key bits */, 64 /* block bits */, KRc2PaddingModes, sizeof(KRc2PaddingModes)/sizeof(KRc2PaddingModes[0]), KRc2CryptoModes, sizeof(KRc2CryptoModes)/sizeof(KRc2CryptoModes[0]), 3}; sl@0: sl@0: sl@0: /** sl@0: ARC4 Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginArc4 = 0x102831D8; sl@0: static const TUid KCryptoPluginArc4Uid={KCryptoPluginArc4}; sl@0: static const TInt32 KArc4PaddingModes[]={KPaddingModeNone}; sl@0: static const TInt32 KArc4CryptoModes[]={KOperationModeNone}; sl@0: sl@0: static const TSymmetricCipherCharacteristics KArc4_1 = {KSymmetricCipherInterface, KAlgorithmCipherArc4, KCryptoPluginArc4, &KSymbian, EFalse, EFalse, 6, &KARC4Description, 100, 90, sl@0: 2048 /* max key bits */, 8 /* block bits */, KArc4PaddingModes, sizeof(KArc4PaddingModes)/sizeof(KArc4PaddingModes[0]), KArc4CryptoModes, sizeof(KArc4CryptoModes)/sizeof(KArc4CryptoModes[0]), 3}; sl@0: sl@0: sl@0: /** sl@0: RSA Cipher Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginRsaCipher = 0x102831D9; sl@0: static const TUid KCryptoPluginRsaCipherUid={KCryptoPluginRsaCipher}; sl@0: static const TInt32 KRSACipherPaddingModes[]={KPaddingModeNone, KPaddingModePkcs1_v1_5_Encryption}; sl@0: sl@0: static const TAsymmetricCipherCharacteristics KRSA_1 = {KAsymmetricCipherInterface, KAlgorithmCipherRsa, KCryptoPluginRsaCipher, &KSymbian, EFalse, EFalse, 6, &KRsaCipherDescription, 100, 90, sl@0: 256, KRSACipherPaddingModes, sizeof(KRSACipherPaddingModes)/sizeof(KRSACipherPaddingModes[0]), 3}; sl@0: sl@0: sl@0: /** sl@0: RSA Signer Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginRsaSigner = 0x102831DA; sl@0: static const TUid KCryptoPluginRsaSignerUid={KCryptoPluginRsaSigner}; sl@0: static const TInt32 KRSASignerPaddingModes[]={KPaddingModeNone, KPaddingModePkcs1_v1_5_Signature}; sl@0: sl@0: static const TAsymmetricSignatureCharacteristics KRSASigner_1 = {KSignerInterface, KAlgorithmSignerRsa, KCryptoPluginRsaSigner, &KSymbian, EFalse, EFalse, 6, &KRsaSignerDescription, 100, 90, sl@0: 256, KRSASignerPaddingModes, sizeof(KRSASignerPaddingModes)/sizeof(KRSASignerPaddingModes[0]), 3}; sl@0: sl@0: /** sl@0: DSA Signer Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginDsaSigner = 0x102831DB; sl@0: static const TUid KCryptoPluginDsaSignerUid={KCryptoPluginDsaSigner}; sl@0: static const TInt32 KDSASignerPaddingModes[]={KPaddingModeNone}; sl@0: sl@0: static const TAsymmetricSignatureCharacteristics KDSASigner_1 = {KSignerInterface, KAlgorithmSignerDsa, KCryptoPluginDsaSigner, &KSymbian, EFalse, EFalse, 6, &KDsaSignerDescription, 100, 90, sl@0: 256, KDSASignerPaddingModes, sizeof(KDSASignerPaddingModes)/sizeof(KDSASignerPaddingModes[0]), 3}; sl@0: sl@0: sl@0: /** sl@0: RSA verifier Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginRsaVerifier = 0x102831DC; sl@0: static const TUid KCryptoPluginRsaVerifierUid={KCryptoPluginRsaVerifier}; sl@0: static const TInt32 KRSAVerifierPaddingModes[]={KPaddingModeNone, KPaddingModePkcs1_v1_5_Signature}; sl@0: sl@0: static const TAsymmetricSignatureCharacteristics KRSAVerifier_1 = {KVerifierInterface, KAlgorithmVerifierRsa, KCryptoPluginRsaVerifier, &KSymbian, EFalse, EFalse, 6, &KRsaVerifierDescription, 100, 90, sl@0: 256, KRSAVerifierPaddingModes, sizeof(KRSAVerifierPaddingModes)/sizeof(KRSAVerifierPaddingModes[0]), 3}; sl@0: sl@0: /** sl@0: DSA verifier Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginDsaVerifier = 0x102831DD; sl@0: static const TUid KCryptoPluginDsaVerifierUid={KCryptoPluginDsaVerifier}; sl@0: static const TInt32 KDSAVerifierPaddingModes[]={KPaddingModeNone}; sl@0: sl@0: static const TAsymmetricSignatureCharacteristics KDSAVerifier_1 = {KVerifierInterface, KAlgorithmVerifierDsa, KCryptoPluginDsaVerifier, &KSymbian, EFalse, EFalse, 6, &KDsaVerifierDescription, 100, 90, sl@0: 256, KDSAVerifierPaddingModes, sizeof(KDSAVerifierPaddingModes)/sizeof(KDSAVerifierPaddingModes[0]), 3}; sl@0: sl@0: /** sl@0: DH Key Agreement Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginDhKeyAgreement = 0x102831DE; // used to identify the CKeyAgreementImpl derived class within the plugin to use sl@0: static const TUid KCryptoPluginDhKeyAgreementUid={KCryptoPluginDhKeyAgreement}; // returned by the CKeyAgreementImpl derived class sl@0: static const TKeyAgreementCharacteristics KDH_1 = {KKeyAgreementInterface, KAlgorithmKeyAgreementDH, KCryptoPluginDhKeyAgreement, &KSymbian, EFalse, EFalse, 6, &KDHDescription, 100, 90}; sl@0: sl@0: /** sl@0: DH Key Pair Generator Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginDhKeyPairGen = 0x102831DF; sl@0: static const TUid KCryptoPluginDhKeyPairGenUid={KCryptoPluginDhKeyPairGen}; sl@0: static const TAsymmetricKeypairGeneratorCharacteristics KDHKeyPairGenerator_1 = {KKeypairGeneratorInterface, KAlgorithmDHKeyPairGenerator, KCryptoPluginDhKeyPairGen, &KSymbian, EFalse, EFalse, 6, &KDhKeyPairDescription, 100, 90, 1024}; sl@0: sl@0: /** sl@0: RSA Key Pair Generator Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginRsaKeyPairGen = 0x102831E0; sl@0: static const TUid KCryptoPluginRsaKeyPairGenUid={KCryptoPluginRsaKeyPairGen}; sl@0: static const TAsymmetricKeypairGeneratorCharacteristics KRSAKeyPairGenerator_1 = {KKeypairGeneratorInterface, KAlgorithmRSAKeyPairGenerator, KCryptoPluginRsaKeyPairGen, &KSymbian, EFalse, EFalse, 6, &KRsaKeyPairDescription, 100, 90, 1024}; sl@0: sl@0: /** sl@0: DSA Key Pair Generator Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginDsaKeyPairGen = 0x102831E1; sl@0: static const TUid KCryptoPluginDsaKeyPairGenUid={KCryptoPluginDsaKeyPairGen}; sl@0: static const TAsymmetricKeypairGeneratorCharacteristics KDSAKeyPairGenerator_1 = {KKeypairGeneratorInterface, KAlgorithmDSAKeyPairGenerator, KCryptoPluginDsaKeyPairGen, &KSymbian, EFalse, EFalse, 6, &KDsaKeyPairDescription, 100, 90, 1024}; sl@0: sl@0: sl@0: /******************************MAC INTERFACE PLUG-INS' CHARACTERISTICS***************************/ sl@0: #ifdef SYMBIAN_SDP_IPSEC_VOIP_SUPPORT sl@0: _ROMLIT16(KHmacMd2Description, "HmacMd2"); sl@0: _ROMLIT16(KHmacMd4Description, "HmacMd4"); sl@0: _ROMLIT16(KHmacMd5Description, "HmacMd5"); sl@0: _ROMLIT16(KHmacSha1Description, "HmacSha1"); sl@0: _ROMLIT16(KHmacSha224Description, "HmacSha224"); sl@0: _ROMLIT16(KHmacSha256Description, "HmacSha256"); sl@0: _ROMLIT16(KHmacSha384Description, "HmacSha384"); sl@0: _ROMLIT16(KHmacSha512Description, "HmacSha512"); sl@0: _ROMLIT16(KMacAesXcbcMac96Description, "AesXcbcMac96"); sl@0: _ROMLIT16(KMacAesXcbcPrf128Description, "AesXcbcPrf128"); sl@0: /** sl@0: * AES-XCBC-MAC-96 MAC Plugin Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginMacAesXcbcMac96 = 0x2001EDA8; sl@0: static const TUid KCryptoPluginMacAesXcbcMac96Uid= {KCryptoPluginMacAesXcbcMac96}; sl@0: static const TMacCharacteristics KMac_1 = { sl@0: KMacInterface, sl@0: KAlgorithmCipherAesXcbcMac96, sl@0: KCryptoPluginMacAesXcbcMac96, sl@0: &KSymbian, sl@0: EFalse, EFalse, 6, sl@0: &KMacAesXcbcMac96Description, sl@0: 100, 90, KSymmetricCipherMode, sl@0: NULL,&KAes_1 sl@0: }; sl@0: /** sl@0: * AES-XCBC-PRF-128 MAC Plugin Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginMacAesXcbcPrf128 = 0x2001EDA9; sl@0: static const TUid KCryptoPluginMacAesXcbcPrf128Uid = {KCryptoPluginMacAesXcbcPrf128}; sl@0: static const TMacCharacteristics KMac_2 = { sl@0: KMacInterface, sl@0: KAlgorithmCipherAesXcbcPrf128, sl@0: KCryptoPluginMacAesXcbcPrf128, sl@0: &KSymbian, sl@0: EFalse, EFalse, 6, sl@0: &KMacAesXcbcPrf128Description, sl@0: 100, 90, KSymmetricCipherMode, sl@0: NULL,&KAes_1 sl@0: }; sl@0: /** sl@0: * HASH-MD2 MAC Plugin Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginMacHashMd2 = 0x2001EDA0; sl@0: static const TUid KCryptoPluginMacHashMd2Uid = {KCryptoPluginMacHashMd2}; sl@0: static const TMacCharacteristics KMac_3 = { sl@0: KMacInterface, sl@0: KAlgorithmHashMd2, sl@0: KCryptoPluginMacHashMd2, sl@0: &KSymbian, sl@0: EFalse, EFalse, 6, sl@0: &KHmacMd2Description, sl@0: 100, 90, KHmacMode, sl@0: &KMd2_1, NULL sl@0: }; sl@0: /** sl@0: * HASH-MD4 MAC Plugin Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginMacHashMd4 = 0x2001EDA1; sl@0: static const TUid KCryptoPluginMacHashMd4Uid = {KCryptoPluginMacHashMd4}; sl@0: static const TMacCharacteristics KMac_4 = { sl@0: KMacInterface, sl@0: KAlgorithmHashMd4, sl@0: KCryptoPluginMacHashMd4, sl@0: &KSymbian, sl@0: EFalse, EFalse, 6, sl@0: &KHmacMd4Description, sl@0: 100, 90, KHmacMode, sl@0: &KMd4_1, NULL sl@0: }; sl@0: /** sl@0: * HASH-MD5 MAC Plugin Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginMacHashMd5 = 0x2001EDA2; sl@0: static const TUid KCryptoPluginMacHashMd5Uid = {KCryptoPluginMacHashMd5}; sl@0: static const TMacCharacteristics KMac_5 = { sl@0: KMacInterface, sl@0: KAlgorithmHashMd5, sl@0: KCryptoPluginMacHashMd5, sl@0: &KSymbian, sl@0: EFalse, EFalse, 6, sl@0: &KHmacMd5Description, sl@0: 100, 90, KHmacMode, sl@0: &KMd5_1, NULL sl@0: }; sl@0: /** sl@0: * HASH-SHA1 MAC Plugin Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginMacHashSha1 = 0x2001EDA3; sl@0: static const TUid KCryptoPluginMacHashSha1Uid = {KCryptoPluginMacHashSha1}; sl@0: static const TMacCharacteristics KMac_6 = { sl@0: KMacInterface, sl@0: KAlgorithmHashSha1, sl@0: KCryptoPluginMacHashSha1, sl@0: &KSymbian, sl@0: EFalse, EFalse, 6, sl@0: &KHmacSha1Description, sl@0: 100, 90, KHmacMode, sl@0: &KSha1_1, NULL sl@0: }; sl@0: /** sl@0: * HASH-SHA224 MAC Plugin Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginMacHashSha224 = 0x2001EDA4; sl@0: static const TUid KCryptoPluginMacHashSha224Uid = {KCryptoPluginMacHashSha224}; sl@0: static const TMacCharacteristics KMac_7 = { sl@0: KMacInterface, sl@0: KAlgorithmHashSha224, sl@0: KCryptoPluginMacHashSha224, sl@0: &KSymbian, sl@0: EFalse, EFalse, 6, sl@0: &KHmacSha224Description, sl@0: 100, 90, KHmacMode, sl@0: &KSha224_1, NULL sl@0: }; sl@0: /** sl@0: * HASH-SHA256 MAC Plugin Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginMacHashSha256 = 0x2001EDA5; sl@0: static const TUid KCryptoPluginMacHashSha256Uid = {KCryptoPluginMacHashSha256}; sl@0: static const TMacCharacteristics KMac_8 = { sl@0: KMacInterface, sl@0: KAlgorithmHashSha256, sl@0: KCryptoPluginMacHashSha256, sl@0: &KSymbian, sl@0: EFalse, EFalse, 6, sl@0: &KHmacSha256Description, sl@0: 100, 90, KHmacMode, sl@0: &KSha256_1, NULL sl@0: }; sl@0: /** sl@0: * HASH-SHA384 MAC Plugin Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginMacHashSha384 = 0x2001EDA6; sl@0: static const TUid KCryptoPluginMacHashSha384Uid = {KCryptoPluginMacHashSha384}; sl@0: static const TMacCharacteristics KMac_9 = { sl@0: KMacInterface, sl@0: KAlgorithmHashSha384, sl@0: KCryptoPluginMacHashSha384, sl@0: &KSymbian, sl@0: EFalse, EFalse, 6, sl@0: &KHmacSha384Description, sl@0: 100, 90, KHmacMode, sl@0: &KSha384_1, NULL sl@0: }; sl@0: /** sl@0: * HASH-SHA512 MAC Plugin Characteristics sl@0: */ sl@0: static const TInt32 KCryptoPluginMacHashSha512 = 0x2001EDA7; sl@0: static const TUid KCryptoPluginMacHashSha512Uid = {KCryptoPluginMacHashSha512}; sl@0: static const TMacCharacteristics KMac_10 = { sl@0: KMacInterface, sl@0: KAlgorithmHashSha512, sl@0: KCryptoPluginMacHashSha512, sl@0: &KSymbian, sl@0: EFalse, EFalse, 6, sl@0: &KHmacSha512Description, sl@0: 100, 90, KHmacMode, sl@0: &KSha512_1, NULL sl@0: }; sl@0: /** sl@0: * Mac implementation characteristic table sl@0: */ sl@0: static const TMacCharacteristics* const KMacCharacteristics[] = { sl@0: &KMac_1, &KMac_2, &KMac_3, sl@0: &KMac_4, &KMac_5, &KMac_6, sl@0: &KMac_7, &KMac_8, &KMac_9, sl@0: &KMac_10 sl@0: }; sl@0: sl@0: #endif sl@0: /***********************************************************************************************/ sl@0: sl@0: /** sl@0: For each crypto algorithm type implemented in this plugin list the characteristics sl@0: */ sl@0: sl@0: /** sl@0: Hash implementation characteristic table sl@0: */ sl@0: static const THashCharacteristics* const KHashCharacteristics[] = sl@0: { sl@0: &KMd2_1, &KMd5_1, &KSha1_1, &KMd4_1, &KSha224_1, &KSha256_1, &KSha384_1, &KSha512_1 sl@0: }; sl@0: sl@0: /** sl@0: Random implementation characteristic table sl@0: */ sl@0: sl@0: static const TRandomCharacteristics* const KRandomCharacteristics[]= sl@0: { sl@0: &KRandom_1 sl@0: }; sl@0: sl@0: /** sl@0: Symmetric Cipher implementation characteristic table sl@0: */ sl@0: static const TSymmetricCipherCharacteristics* const KSymmetricCipherCharacteristics[]= sl@0: { sl@0: &KDes_1, &K3Des_1, &KAes_1, &KRc2_1, &KArc4_1 sl@0: }; sl@0: sl@0: sl@0: /** sl@0: Asymmetric Cipher implementation characteristic table sl@0: */ sl@0: static const TAsymmetricCipherCharacteristics* const KAsymmetricCipherCharacteristics[]= sl@0: { sl@0: &KRSA_1 sl@0: }; sl@0: sl@0: /** sl@0: Signer implementation characteristic table sl@0: */ sl@0: static const TAsymmetricSignatureCharacteristics* const KSignerCharacteristics[]= sl@0: { sl@0: &KRSASigner_1, &KDSASigner_1 sl@0: }; sl@0: sl@0: sl@0: /** sl@0: Verifier implementation characteristic table sl@0: */ sl@0: static const TAsymmetricSignatureCharacteristics* const KVerifierCharacteristics[]= sl@0: { sl@0: &KRSAVerifier_1, &KDSAVerifier_1 sl@0: }; sl@0: sl@0: /** sl@0: Key Agreement implementation characteristic table sl@0: */ sl@0: static const TKeyAgreementCharacteristics* const KKeyAgreementCharacteristics[]= sl@0: { sl@0: &KDH_1 sl@0: }; sl@0: sl@0: /** sl@0: Key pair generator implementation characteristic table sl@0: */ sl@0: static const TAsymmetricKeypairGeneratorCharacteristics* const KKeyPairGeneratorCharacteristics[]= sl@0: { sl@0: &KDHKeyPairGenerator_1, &KRSAKeyPairGenerator_1, &KDSAKeyPairGenerator_1 sl@0: }; sl@0: } sl@0: sl@0: #endif //__CRYPTOAPI_SOFTWAREPLUGINCONFIG_H__