sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
*
|
sl@0
|
16 |
*/
|
sl@0
|
17 |
|
sl@0
|
18 |
|
sl@0
|
19 |
/**
|
sl@0
|
20 |
@file
|
sl@0
|
21 |
@internalComponent
|
sl@0
|
22 |
@released
|
sl@0
|
23 |
*/
|
sl@0
|
24 |
#ifndef CCRYPTOAPI_DUMMYECCHWPLUGINCONFIG_H
|
sl@0
|
25 |
#define CCRYPTOAPI_DUMMYECCHWPLUGINCONFIG_H
|
sl@0
|
26 |
|
sl@0
|
27 |
#include <cryptospi/cryptoparams.h>
|
sl@0
|
28 |
#include <e32cmn.h>
|
sl@0
|
29 |
#include <cryptospi/romlit.h>
|
sl@0
|
30 |
#include "cryptospi/cryptospidef.h"
|
sl@0
|
31 |
|
sl@0
|
32 |
namespace DummyEccHwCrypto
|
sl@0
|
33 |
{
|
sl@0
|
34 |
using namespace CryptoSpi;
|
sl@0
|
35 |
/**
|
sl@0
|
36 |
Creator Name
|
sl@0
|
37 |
*/
|
sl@0
|
38 |
_ROMLIT16(KNokia, "Nokia");
|
sl@0
|
39 |
/**
|
sl@0
|
40 |
implementation Name
|
sl@0
|
41 |
*/
|
sl@0
|
42 |
_ROMLIT16(KEccCipherDescription, "Ecc");
|
sl@0
|
43 |
_ROMLIT16(KEccSignerDescription, "EccSigner");
|
sl@0
|
44 |
|
sl@0
|
45 |
/**
|
sl@0
|
46 |
ECC Cipher Characteristics
|
sl@0
|
47 |
*/
|
sl@0
|
48 |
static const TInt32 KCryptoPluginEccCipher = 0xA000D697;
|
sl@0
|
49 |
static const TUid KCryptoPluginEccCipherUid =
|
sl@0
|
50 |
{
|
sl@0
|
51 |
KCryptoPluginEccCipher
|
sl@0
|
52 |
};
|
sl@0
|
53 |
static const TInt32 KECCCipherPaddingModes[] =
|
sl@0
|
54 |
{
|
sl@0
|
55 |
KPaddingModeNone
|
sl@0
|
56 |
};
|
sl@0
|
57 |
|
sl@0
|
58 |
static const TAsymmetricCipherCharacteristics KECC_1 =
|
sl@0
|
59 |
{
|
sl@0
|
60 |
KAsymmetricCipherInterface, /* iInterfaceUID */
|
sl@0
|
61 |
KAlgorithmCipherEcc, /* iAlgorithmUID */
|
sl@0
|
62 |
KCryptoPluginEccCipher, /* iImplementationUID */
|
sl@0
|
63 |
&KNokia, /* iCreatorName */
|
sl@0
|
64 |
EFalse, /* iIsFIPSApproved */
|
sl@0
|
65 |
ETrue, /* iIsHardwareSupported */
|
sl@0
|
66 |
6, /* iMaxConcurrencySupported */
|
sl@0
|
67 |
&KEccCipherDescription, /* iAlgorithmName */
|
sl@0
|
68 |
100, /* iLatency */
|
sl@0
|
69 |
90, /* iThroughput */
|
sl@0
|
70 |
360, /* iMaximumKeyLength */
|
sl@0
|
71 |
KECCCipherPaddingModes, /* iSupportedPaddingModes */
|
sl@0
|
72 |
sizeof(KECCCipherPaddingModes) / sizeof(KECCCipherPaddingModes[0]), /* iPaddingModeNum */
|
sl@0
|
73 |
3
|
sl@0
|
74 |
/* iKeySupportMode */
|
sl@0
|
75 |
};
|
sl@0
|
76 |
|
sl@0
|
77 |
/**
|
sl@0
|
78 |
ECC Signer Characteristics
|
sl@0
|
79 |
*/
|
sl@0
|
80 |
static const TInt32 KCryptoPluginEccSigner = 0xA000D698;
|
sl@0
|
81 |
static const TUid KCryptoPluginEccSignerUid =
|
sl@0
|
82 |
{
|
sl@0
|
83 |
KCryptoPluginEccSigner
|
sl@0
|
84 |
};
|
sl@0
|
85 |
static const TInt32 KECCSignerPaddingModes[] =
|
sl@0
|
86 |
{
|
sl@0
|
87 |
KPaddingModeNone
|
sl@0
|
88 |
};
|
sl@0
|
89 |
|
sl@0
|
90 |
static const TAsymmetricSignatureCharacteristics KECCSigner_1 =
|
sl@0
|
91 |
{
|
sl@0
|
92 |
KSignerInterface, /* iInterfaceUID */
|
sl@0
|
93 |
KAlgorithmSignerEcc, /* iAlgorithmUID */
|
sl@0
|
94 |
KCryptoPluginEccSigner, /* iImplementationUID */
|
sl@0
|
95 |
&KNokia, /* iCreatorName */
|
sl@0
|
96 |
EFalse, /* iIsFIPSApproved */
|
sl@0
|
97 |
ETrue, /* iIsHardwareSupported */
|
sl@0
|
98 |
6, /* iMaxConcurrencySupported */
|
sl@0
|
99 |
&KEccSignerDescription, /* iAlgorithmName */
|
sl@0
|
100 |
100, /* iLatency */
|
sl@0
|
101 |
90, /* iThroughput */
|
sl@0
|
102 |
360, /* iMaximumKeyLength */
|
sl@0
|
103 |
KECCCipherPaddingModes, /* iSupportedPaddingModes */
|
sl@0
|
104 |
sizeof(KECCCipherPaddingModes) / sizeof(KECCCipherPaddingModes[0]), /* iPaddingModeNum */
|
sl@0
|
105 |
3
|
sl@0
|
106 |
/* iKeySupportMode */
|
sl@0
|
107 |
};
|
sl@0
|
108 |
|
sl@0
|
109 |
/**
|
sl@0
|
110 |
For each crypto algorithm type implemented in this plugin list the characteristics
|
sl@0
|
111 |
*/
|
sl@0
|
112 |
|
sl@0
|
113 |
/**
|
sl@0
|
114 |
Asymmetric Cipher implementation characteristic table
|
sl@0
|
115 |
*/
|
sl@0
|
116 |
static const TAsymmetricCipherCharacteristics
|
sl@0
|
117 |
* const KAsymmetricCipherCharacteristics[] =
|
sl@0
|
118 |
{
|
sl@0
|
119 |
&KECC_1
|
sl@0
|
120 |
};
|
sl@0
|
121 |
|
sl@0
|
122 |
/**
|
sl@0
|
123 |
Signer implementation characteristic table
|
sl@0
|
124 |
*/
|
sl@0
|
125 |
static const TAsymmetricSignatureCharacteristics
|
sl@0
|
126 |
* const KSignerCharacteristics[] =
|
sl@0
|
127 |
{
|
sl@0
|
128 |
&KECCSigner_1
|
sl@0
|
129 |
};
|
sl@0
|
130 |
|
sl@0
|
131 |
}
|
sl@0
|
132 |
|
sl@0
|
133 |
#endif //CCRYPTOAPI_DUMMYECCHWPLUGINCONFIG_H
|