sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2007-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 |
|
sl@0
|
21 |
/**
|
sl@0
|
22 |
@file
|
sl@0
|
23 |
@internalTechnology
|
sl@0
|
24 |
*/
|
sl@0
|
25 |
#if (!defined __PLUGINCHARSCHECKER_H__)
|
sl@0
|
26 |
#define __PLUGINCHARSCHECKER_H__
|
sl@0
|
27 |
|
sl@0
|
28 |
#include <cryptospi/plugincharacteristics.h>
|
sl@0
|
29 |
#include <cryptospi/extendedcharacteristics.h>
|
sl@0
|
30 |
#include "te_cryptospiconversion.h"
|
sl@0
|
31 |
|
sl@0
|
32 |
class CPluginCharsChecker : public CBase
|
sl@0
|
33 |
{
|
sl@0
|
34 |
public:
|
sl@0
|
35 |
|
sl@0
|
36 |
static CPluginCharsChecker* NewL();
|
sl@0
|
37 |
static CPluginCharsChecker* NewLC();
|
sl@0
|
38 |
|
sl@0
|
39 |
~CPluginCharsChecker();
|
sl@0
|
40 |
|
sl@0
|
41 |
TBool checkCommonCharacteristics(const CryptoSpi::TCommonCharacteristics* aCharacteristics,
|
sl@0
|
42 |
TVariantPtrC aInterfaceUid,
|
sl@0
|
43 |
TVariantPtrC aAlgorithmUid,
|
sl@0
|
44 |
TVariantPtrC aImplementationUid,
|
sl@0
|
45 |
TVariantPtrC aCreatorName,
|
sl@0
|
46 |
TBool aFIPSApproved,
|
sl@0
|
47 |
TBool aHardwareSupported,
|
sl@0
|
48 |
TInt aMaxConcurrencySupported,
|
sl@0
|
49 |
TVariantPtrC aAlgorithmName,
|
sl@0
|
50 |
TInt aLatency,
|
sl@0
|
51 |
TInt aThroughput,
|
sl@0
|
52 |
TPtrC& aErrorMessage);
|
sl@0
|
53 |
|
sl@0
|
54 |
TBool checkSymmetricCharacteristics(const CryptoSpi::TSymmetricCipherCharacteristics* aCharacteristics,
|
sl@0
|
55 |
TInt aSymmetricMaxKeyLength,
|
sl@0
|
56 |
TInt aSymmetricBlockSize,
|
sl@0
|
57 |
TVariantPtrC aSymmetricPaddingModes,
|
sl@0
|
58 |
TInt aSymmetricPaddingModeNum,
|
sl@0
|
59 |
TVariantPtrC aSymmetricOperationModes,
|
sl@0
|
60 |
TInt aSymmetricOperationModeNum,
|
sl@0
|
61 |
TInt aSymmetricKeySupportMode,
|
sl@0
|
62 |
TPtrC& aErrorMessage);
|
sl@0
|
63 |
|
sl@0
|
64 |
TBool checkAsymmetricCharacteristics(const CryptoSpi::TAsymmetricCipherCharacteristics* aCharacteristics,
|
sl@0
|
65 |
TInt aAsymmetricMaxKeyLength,
|
sl@0
|
66 |
TVariantPtrC aAsymmetricPaddingModes,
|
sl@0
|
67 |
TInt aAsymmetricPaddingModeNum,
|
sl@0
|
68 |
TInt aAsymmetricKeySupportMode,
|
sl@0
|
69 |
TPtrC& aErrorMessage);
|
sl@0
|
70 |
|
sl@0
|
71 |
TBool checkHashCharacteristics(const CryptoSpi::THashCharacteristics* aCharacteristics,
|
sl@0
|
72 |
TInt aBlockSize,
|
sl@0
|
73 |
TInt aOutputSize,
|
sl@0
|
74 |
TVariantPtrC aHashOperationModes,
|
sl@0
|
75 |
TInt aHashOperationModeNum,
|
sl@0
|
76 |
TPtrC& aErrorMessage);
|
sl@0
|
77 |
#ifdef SYMBIAN_SDP_IPSEC_VOIP_SUPPORT
|
sl@0
|
78 |
TBool checkMacCharacteristics(const CryptoSpi::TMacCharacteristics* aCharacteristics,
|
sl@0
|
79 |
TVariantPtrC aMacMode,
|
sl@0
|
80 |
TPtrC& aErrorMessage);
|
sl@0
|
81 |
#endif
|
sl@0
|
82 |
|
sl@0
|
83 |
TBool checkRandomCharacteristics(const CryptoSpi::TRandomCharacteristics* aCharacteristics,
|
sl@0
|
84 |
TInt aRandomBlockingMode,
|
sl@0
|
85 |
TPtrC& aErrorMessage);
|
sl@0
|
86 |
|
sl@0
|
87 |
TBool checkAsymSignatureCharacteristics(const CryptoSpi::TAsymmetricSignatureCharacteristics* aCharacteristics,
|
sl@0
|
88 |
TInt aAsymSignMaxKeyLength,
|
sl@0
|
89 |
TVariantPtrC aAsymSignPaddingModes,
|
sl@0
|
90 |
TInt aAsymSignPaddingModeNum,
|
sl@0
|
91 |
TInt aAsymSignKeySupportMode,
|
sl@0
|
92 |
TPtrC& aErrorMessage);
|
sl@0
|
93 |
|
sl@0
|
94 |
TBool checkAsymKeypairGenCharacteristics(const CryptoSpi::TAsymmetricKeypairGeneratorCharacteristics* aCharacteristics,
|
sl@0
|
95 |
TInt aAsymKeypairGenMaxKeyLength,
|
sl@0
|
96 |
TPtrC& aErrorMessage);
|
sl@0
|
97 |
|
sl@0
|
98 |
TBool checkSelectedPlugin(const CryptoSpi::TCharacteristics* aCharacteristics,
|
sl@0
|
99 |
TVariantPtrC aAlgorithmUid,
|
sl@0
|
100 |
TVariantPtrC aImplementationUid,
|
sl@0
|
101 |
TPtrC& aErrorMessage);
|
sl@0
|
102 |
|
sl@0
|
103 |
private:
|
sl@0
|
104 |
|
sl@0
|
105 |
CPluginCharsChecker();
|
sl@0
|
106 |
};
|
sl@0
|
107 |
|
sl@0
|
108 |
|
sl@0
|
109 |
#endif
|