os/security/crypto/weakcryptospi/test/tcryptospi/src/plugincharschecker.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/security/crypto/weakcryptospi/test/tcryptospi/src/plugincharschecker.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,109 @@
     1.4 +/*
     1.5 +* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of the License "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description: 
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +
    1.23 +
    1.24 +/**
    1.25 + @file
    1.26 + @internalTechnology
    1.27 +*/
    1.28 +#if (!defined __PLUGINCHARSCHECKER_H__)
    1.29 +#define __PLUGINCHARSCHECKER_H__
    1.30 +
    1.31 +#include <cryptospi/plugincharacteristics.h>
    1.32 +#include <cryptospi/extendedcharacteristics.h>
    1.33 +#include "te_cryptospiconversion.h"
    1.34 +
    1.35 +class CPluginCharsChecker : public CBase
    1.36 +	{
    1.37 +public:
    1.38 +
    1.39 +	static CPluginCharsChecker* NewL();
    1.40 +	static CPluginCharsChecker* NewLC();
    1.41 +	
    1.42 +	~CPluginCharsChecker();
    1.43 +	
    1.44 +	TBool checkCommonCharacteristics(const CryptoSpi::TCommonCharacteristics* aCharacteristics,
    1.45 +										TVariantPtrC aInterfaceUid,
    1.46 +										TVariantPtrC aAlgorithmUid,
    1.47 +										TVariantPtrC aImplementationUid,
    1.48 +										TVariantPtrC aCreatorName,
    1.49 +										TBool aFIPSApproved,
    1.50 +										TBool aHardwareSupported,
    1.51 +										TInt aMaxConcurrencySupported,
    1.52 +										TVariantPtrC aAlgorithmName,
    1.53 +										TInt aLatency,
    1.54 +										TInt aThroughput,
    1.55 +										TPtrC& aErrorMessage);
    1.56 +									
    1.57 +	TBool checkSymmetricCharacteristics(const CryptoSpi::TSymmetricCipherCharacteristics* aCharacteristics,
    1.58 +										TInt aSymmetricMaxKeyLength,
    1.59 +										TInt aSymmetricBlockSize,
    1.60 +										TVariantPtrC aSymmetricPaddingModes,
    1.61 +										TInt aSymmetricPaddingModeNum,
    1.62 +										TVariantPtrC aSymmetricOperationModes,
    1.63 +										TInt aSymmetricOperationModeNum,
    1.64 +										TInt aSymmetricKeySupportMode,
    1.65 +										TPtrC& aErrorMessage);
    1.66 +									
    1.67 +	TBool checkAsymmetricCharacteristics(const CryptoSpi::TAsymmetricCipherCharacteristics* aCharacteristics,
    1.68 +										TInt aAsymmetricMaxKeyLength,
    1.69 +										TVariantPtrC aAsymmetricPaddingModes,
    1.70 +										TInt aAsymmetricPaddingModeNum,
    1.71 +										TInt aAsymmetricKeySupportMode,
    1.72 +										TPtrC& aErrorMessage);
    1.73 +									
    1.74 +	TBool checkHashCharacteristics(const CryptoSpi::THashCharacteristics* aCharacteristics,
    1.75 +										TInt aBlockSize,
    1.76 +										TInt aOutputSize,
    1.77 +										TVariantPtrC aHashOperationModes,
    1.78 +										TInt aHashOperationModeNum,
    1.79 +										TPtrC& aErrorMessage);
    1.80 +#ifdef SYMBIAN_SDP_IPSEC_VOIP_SUPPORT	
    1.81 +	TBool checkMacCharacteristics(const CryptoSpi::TMacCharacteristics* aCharacteristics,
    1.82 +									TVariantPtrC aMacMode, 
    1.83 +									TPtrC& aErrorMessage);
    1.84 +#endif
    1.85 +									
    1.86 +	TBool checkRandomCharacteristics(const CryptoSpi::TRandomCharacteristics* aCharacteristics,
    1.87 +										TInt aRandomBlockingMode,
    1.88 +										TPtrC& aErrorMessage);
    1.89 +										
    1.90 +	TBool checkAsymSignatureCharacteristics(const CryptoSpi::TAsymmetricSignatureCharacteristics* aCharacteristics,
    1.91 +										TInt aAsymSignMaxKeyLength,
    1.92 +										TVariantPtrC aAsymSignPaddingModes,
    1.93 +										TInt aAsymSignPaddingModeNum,
    1.94 +										TInt aAsymSignKeySupportMode,
    1.95 +										TPtrC& aErrorMessage);
    1.96 +										
    1.97 +	TBool checkAsymKeypairGenCharacteristics(const CryptoSpi::TAsymmetricKeypairGeneratorCharacteristics* aCharacteristics,
    1.98 +										TInt aAsymKeypairGenMaxKeyLength,
    1.99 +										TPtrC& aErrorMessage);
   1.100 +										
   1.101 +	TBool checkSelectedPlugin(const CryptoSpi::TCharacteristics* aCharacteristics,
   1.102 +												TVariantPtrC aAlgorithmUid,
   1.103 +												TVariantPtrC aImplementationUid,
   1.104 +												TPtrC& aErrorMessage);
   1.105 +
   1.106 +private:
   1.107 +
   1.108 +	CPluginCharsChecker();
   1.109 +	};
   1.110 +
   1.111 +
   1.112 +#endif