crypto/weakcryptospi/test/tcryptospi/testdata/ruleselection_matrix.ini
changeset 8 35751d3474b7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/weakcryptospi/test/tcryptospi/testdata/ruleselection_matrix.ini	Thu Sep 10 14:01:51 2009 +0300
@@ -0,0 +1,587 @@
+[HashValid]
+InterfaceType			=KHashInterface
+AlgorithmUid			=KAlgorithmHashMd5
+OperationMode			=KHashMode
+AlgorithmParams			=NULL
+
+InterfaceScopeRule1		=KNone
+AlgorithmScopeRule1		=KNone
+CharacterUidRule1		=KBlockSizeType
+CompareOperatorRule1		=EOpGreaterThanOrEqual
+CharacterValueRule1		=400
+CharacterValueTypeRule1		=ERuleValueInteger
+IsOptionaRule1			=False
+
+InterfaceScopeRule2		=KNone
+AlgorithmScopeRule2		=KNone
+CharacterUidRule2		=KSupportedOperationModesType
+CompareOperatorRule2		=EOpEqual
+CharacterValueRule2		=KHmacMode
+CharacterValueTypeRule2		=ERuleValueInteger
+IsOptionaRule2			=False
+
+ExAlgorithmUid			=KAlgorithmHashMd5
+ExImplementationUid		=KTestPlugin02Md5_1
+
+//****************************************************************************
+//****************************************************************************
+
+[RandomValid]
+InterfaceType			=KRandomInterface
+AlgorithmUid			=KAlgorithmRandom
+AlgorithmParams			=NULL
+
+InterfaceScopeRule1		=KRandomInterface
+AlgorithmScopeRule1		=KAlgorithmRandom
+CharacterUidRule1		=KBlockingModeType
+CompareOperatorRule1		=EOpAscendingSort
+CharacterValueRule1		=NULL
+CharacterValueTypeRule1		=ERuleValueInteger
+IsOptionaRule1			=False
+
+ExAlgorithmUid			=KAlgorithmRandom
+ExImplementationUid		=KTestPlugin02Random_2
+
+//****************************************************************************
+//****************************************************************************
+
+[SymmetricCipherValid]
+InterfaceType			=KSymmetricCipherInterface
+EncryptKey			=ABCDEFGH
+KeyType				=KSymmetricKeyParameter
+AlgorithmUid			=KAlgorithmCipherDes
+CryptoMode			=KCryptoModeEncrypt
+OperationMode			=KOperationModeNone
+PaddingMode			=KPaddingModeNone
+AlgorithmParams			=NULL
+
+InterfaceScopeRule1		=KNone
+AlgorithmScopeRule1		=KNone
+CharacterUidRule1		=KBlockSizeType
+CompareOperatorRule1		=EOpGreaterThanOrEqual
+CharacterValueRule1		=64
+CharacterValueTypeRule1		=ERuleValueInteger
+IsOptionaRule1			=False
+
+InterfaceScopeRule2		=KNone
+AlgorithmScopeRule2		=KNone
+CharacterUidRule2		=KSupportedOperationModesType
+CompareOperatorRule2		=EOpNotEqual
+CharacterValueRule2		=KHmacMode
+CharacterValueTypeRule2		=ERuleValueInteger
+IsOptionaRule2			=False
+
+InterfaceScopeRule3		=KNone
+AlgorithmScopeRule3		=KNone
+CharacterUidRule3		=KMaximumKeyLengthType
+CompareOperatorRule3		=EOpLessThan
+CharacterValueRule3		=64
+CharacterValueTypeRule3		=ERuleValueInteger
+IsOptionaRule3			=True
+
+InterfaceScopeRule4		=KNone
+AlgorithmScopeRule4		=KNone
+CharacterUidRule4		=KSupportedPaddingModesType
+CompareOperatorRule4		=EOpEqual
+CharacterValueRule4		=KPaddingModeSSLv3
+CharacterValueTypeRule4		=ERuleValueInteger
+IsOptionaRule4			=False
+
+InterfaceScopeRule5		=KNone
+AlgorithmScopeRule5		=KNone
+CharacterUidRule5		=KKeySupportModeType
+CompareOperatorRule5		=EOpDescendingSort
+CharacterValueRule5		=NULL
+CharacterValueTypeRule5		=ERuleValueInteger
+IsOptionaRule5			=False
+
+ExAlgorithmUid			=KAlgorithmCipherDes
+ExImplementationUid		=KTestPlugin02Des_1
+
+//****************************************************************************
+//****************************************************************************
+
+[AsymmetricCipherValid]
+InterfaceType			=KAsymmetricCipherInterface
+AlgorithmUid			=KAlgorithmCipherRsa
+CryptoMode			=KCryptoModeEncrypt
+PaddingMode			=KPaddingModeNone
+AlgorithmParams			=NULL
+
+InterfaceScopeRule1		=KNone
+AlgorithmScopeRule1		=KNone
+CharacterUidRule1		=KMaximumKeyLengthType
+CompareOperatorRule1		=EOpLessThan
+CharacterValueRule1		=512
+CharacterValueTypeRule1		=ERuleValueInteger
+IsOptionaRule1			=True
+
+InterfaceScopeRule2		=KNone
+AlgorithmScopeRule2		=KNone
+CharacterUidRule2		=KSupportedPaddingModesType
+CompareOperatorRule2		=EOpEqual
+CharacterValueRule2		=KPaddingModePkcs1_v1_5_Encryption
+CharacterValueTypeRule2		=ERuleValueInteger
+IsOptionaRule2			=False
+
+InterfaceScopeRule3		=KNone
+AlgorithmScopeRule3		=KNone
+CharacterUidRule3		=KKeySupportModeType
+CompareOperatorRule3		=EOpDescendingSort
+CharacterValueRule3		=NULL
+CharacterValueTypeRule3		=ERuleValueInteger
+IsOptionaRule3			=False
+
+ExAlgorithmUid			=KAlgorithmCipherRsa
+ExImplementationUid		=KTestPlugin02Rsa_1
+
+//****************************************************************************
+//****************************************************************************
+
+[SignerValid]
+InterfaceType			=KSignerInterface
+AlgorithmUid			=KAlgorithmSignerRsa
+PaddingMode			=KPaddingModePkcs1_v1_5_Signature
+AlgorithmParams			=NULL
+
+InterfaceScopeRule1		=KNone
+AlgorithmScopeRule1		=KNone
+CharacterUidRule1		=KMaximumKeyLengthType
+CompareOperatorRule1		=EOpLessThan
+CharacterValueRule1		=512
+CharacterValueTypeRule1		=ERuleValueInteger
+IsOptionaRule1			=True
+
+InterfaceScopeRule2		=KNone
+AlgorithmScopeRule2		=KNone
+CharacterUidRule2		=KSupportedPaddingModesType
+CompareOperatorRule2		=EOpEqual
+CharacterValueRule2		=KPaddingModePkcs1_v1_5_Signature
+CharacterValueTypeRule2		=ERuleValueInteger
+IsOptionaRule2			=False
+
+InterfaceScopeRule3		=KNone
+AlgorithmScopeRule3		=KNone
+CharacterUidRule3		=KKeySupportModeType
+CompareOperatorRule3		=EOpDescendingSort
+CharacterValueRule3		=NULL
+CharacterValueTypeRule3		=ERuleValueInteger
+IsOptionaRule3			=False
+
+ExAlgorithmUid			=KAlgorithmSignerRsa
+ExImplementationUid		=KTestPlugin02RsaSigner_1
+
+//****************************************************************************
+//****************************************************************************
+
+[VerifierValid]
+InterfaceType			=KVerifierInterface
+AlgorithmUid			=KAlgorithmVerifierRsa
+PaddingMode			=KPaddingModePkcs1_v1_5_Signature
+AlgorithmParams			=NULL
+
+InterfaceScopeRule1		=KNone
+AlgorithmScopeRule1		=KNone
+CharacterUidRule1		=KInterfaceType
+CompareOperatorRule1		=EOpEqual
+CharacterValueRule1		=KVerifierInterface
+CharacterValueTypeRule1		=ERuleValueInteger
+IsOptionaRule1			=False
+
+InterfaceScopeRule2		=KNone
+AlgorithmScopeRule2		=KNone
+CharacterUidRule2		=KCreatorNameType
+CompareOperatorRule2		=EOpEqual
+CharacterValueRule2		=SymbianTestFramework
+CharacterValueTypeRule2		=ERuleValueDes16
+IsOptionaRule2			=True
+
+InterfaceScopeRule3		=KNone
+AlgorithmScopeRule3		=KNone
+CharacterUidRule3		=KMaximumKeyLengthType
+CompareOperatorRule3		=EOpGreaterThan
+CharacterValueRule3		=192
+CharacterValueTypeRule3		=ERuleValueInteger
+IsOptionaRule3			=False
+
+ExAlgorithmUid			=KAlgorithmVerifierRsa
+ExImplementationUid		=KTestPlugin01RsaVerifier_1
+
+//****************************************************************************
+//****************************************************************************
+
+[KeyAgreementValid]
+InterfaceType			=KKeyAgreementInterface
+AlgorithmUid			=KAlgorithmKeyAgreementDH
+AlgorithmParams			=NULL
+
+InterfaceScopeRule1		=KNone
+AlgorithmScopeRule1		=KNone
+CharacterUidRule1		=KAlgorithmType
+CompareOperatorRule1		=EOpNotEqual
+CharacterValueRule1		=KAlgorithmCipherDes
+CharacterValueTypeRule1		=ERuleValueInteger
+IsOptionaRule1			=False
+
+InterfaceScopeRule2		=KNone
+AlgorithmScopeRule2		=KNone
+CharacterUidRule2		=KCreatorNameType
+CompareOperatorRule2		=EOpAscendingSort
+CharacterValueRule2		=NULL
+CharacterValueTypeRule2		=ERuleValueDes16
+IsOptionaRule2			=True
+
+InterfaceScopeRule3		=KNone
+AlgorithmScopeRule3		=KNone
+CharacterUidRule3		=KLatencyType
+CompareOperatorRule3		=EOpLessThanOrEqual
+CharacterValueRule3		=100
+CharacterValueTypeRule3		=ERuleValueInteger
+IsOptionaRule3			=False
+
+InterfaceScopeRule4		=KNone
+AlgorithmScopeRule4		=KNone
+CharacterUidRule4		=KInterfaceType
+CompareOperatorRule4		=EOpEqual
+CharacterValueRule4		=KKeyAgreementInterface
+CharacterValueTypeRule4		=ERuleValueInteger
+IsOptionaRule4			=False
+
+ExAlgorithmUid			=KAlgorithmKeyAgreementDH
+ExImplementationUid		=KTestPlugin02DHKeyAgree_1
+
+//****************************************************************************
+//****************************************************************************
+
+[KeyPairGeneratorValid]
+InterfaceType			=KKeypairGeneratorInterface
+AlgorithmUid			=KAlgorithmRSAKeyPairGenerator
+AlgorithmParams			=NULL
+
+InterfaceScopeRule1		=KKeypairGeneratorInterface
+AlgorithmScopeRule1		=KNone
+CharacterUidRule1		=KMaximumKeyLengthType
+CompareOperatorRule1		=EOpGreaterThan
+CharacterValueRule1		=1024
+CharacterValueTypeRule1		=ERuleValueInteger
+IsOptionaRule1			=False
+
+InterfaceScopeRule2		=KNone
+AlgorithmScopeRule2		=KNone
+CharacterUidRule2		=KLatencyType
+CompareOperatorRule2		=EOpLessThan
+CharacterValueRule2		=100
+CharacterValueTypeRule2		=ERuleValueInteger
+IsOptionaRule2			=True
+
+InterfaceScopeRule3		=KNone
+AlgorithmScopeRule3		=KAlgorithmRSAKeyPairGenerator
+CharacterUidRule3		=KThroughputType
+CompareOperatorRule3		=EOpLessThan
+CharacterValueRule3		=100
+CharacterValueTypeRule3		=ERuleValueInteger
+IsOptionaRule3			=True
+
+ExAlgorithmUid			=KAlgorithmRSAKeyPairGenerator
+ExImplementationUid		=KTestPlugin01RsaKeyGen_1
+
+//****************************************************************************
+//****************************************************************************
+
+[HashInvalid]
+InterfaceType			=KHashInterface
+AlgorithmUid			=KAlgorithmHashMd5
+OperationMode			=KHashMode
+AlgorithmParams			=NULL
+
+InterfaceScopeRule1		=KNone
+AlgorithmScopeRule1		=KNone
+CharacterUidRule1		=KOutputSizeType
+CompareOperatorRule1		=EOpLessThan
+CharacterValueRule1		=64
+CharacterValueTypeRule1		=ERuleValueInteger
+IsOptionaRule1			=False
+
+InterfaceScopeRule2		=KNone
+AlgorithmScopeRule2		=KNone
+CharacterUidRule2		=KCreatorNameType
+CompareOperatorRule2		=EOpDescendingSort
+CharacterValueRule2		=NULL
+CharacterValueTypeRule2		=ERuleValueDes16
+IsOptionaRule2			=False
+
+//****************************************************************************
+//****************************************************************************
+
+[RandomInvalid]
+InterfaceType			=KRandomInterface
+AlgorithmUid			=KAlgorithmRandom
+AlgorithmParams			=NULL
+
+InterfaceScopeRule1		=KNone
+AlgorithmScopeRule1		=KNone
+CharacterUidRule1		=KImplementationType
+CompareOperatorRule1		=EOpEqual
+CharacterValueRule1		=KTestPlugin02Des_2
+CharacterValueTypeRule1		=ERuleValueInteger
+IsOptionaRule1			=False
+
+InterfaceScopeRule2		=KNone
+AlgorithmScopeRule2		=KNone
+CharacterUidRule2		=KIsFIPSApprovedType
+CompareOperatorRule2		=EOpEqual
+CharacterValueRule2		=True
+CharacterValueTypeRule2		=ERuleValueBoolean
+IsOptionaRule2			=True
+
+//****************************************************************************
+//****************************************************************************
+
+[SymmetricCipherInvalid]
+InterfaceType			=KSymmetricCipherInterface
+EncryptKey			=ABCDEFGH
+KeyType				=KSymmetricKeyParameter
+AlgorithmUid			=KAlgorithmCipherDes
+CryptoMode			=KCryptoModeEncrypt
+OperationMode			=KOperationModeNone
+PaddingMode			=KPaddingModeNone
+AlgorithmParams			=NULL
+
+InterfaceScopeRule1		=KNone
+AlgorithmScopeRule1		=KNone
+CharacterUidRule1		=KMaxConcurrencySupportedType
+CompareOperatorRule1		=EOpEqual
+CharacterValueRule1		=4
+CharacterValueTypeRule1		=ERuleValueInteger
+IsOptionaRule1			=False
+
+//****************************************************************************
+//****************************************************************************
+
+[AsymmetricCipherInvalid]
+InterfaceType			=KAsymmetricCipherInterface
+AlgorithmUid			=KAlgorithmCipherRsa
+CryptoMode			=KCryptoModeEncrypt
+PaddingMode			=KPaddingModeNone
+AlgorithmParams			=NULL
+
+InterfaceScopeRule1		=KNone
+AlgorithmScopeRule1		=KAlgorithmCipherRsa
+CharacterUidRule1		=KLatencyType
+CompareOperatorRule1		=EOpNotEqual
+CharacterValueRule1		=100
+CharacterValueTypeRule1		=ERuleValueInteger
+IsOptionaRule1			=False
+
+//****************************************************************************
+//****************************************************************************
+
+[SignerInvalid]
+InterfaceType			=KSignerInterface
+AlgorithmUid			=KAlgorithmSignerRsa
+PaddingMode			=KPaddingModePkcs1_v1_5_Signature
+AlgorithmParams			=NULL
+
+InterfaceScopeRule1		=KNone
+AlgorithmScopeRule1		=KNone
+CharacterUidRule1		=KThroughputType
+CompareOperatorRule1		=EOpGreaterThan
+CharacterValueRule1		=90
+CharacterValueTypeRule1		=ERuleValueInteger
+IsOptionaRule1			=False
+
+//****************************************************************************
+//****************************************************************************
+
+[VerifierInvalid]
+InterfaceType			=KVerifierInterface
+AlgorithmUid			=KAlgorithmVerifierRsa
+PaddingMode			=KPaddingModePkcs1_v1_5_Signature
+AlgorithmParams			=NULL
+
+InterfaceScopeRule1		=KNone
+AlgorithmScopeRule1		=KNone
+CharacterUidRule1		=KCreatorNameType
+CompareOperatorRule1		=EOpNotEqual
+CharacterValueRule1		=SymbianTestFramework
+CharacterValueTypeRule1		=ERuleValueDes16
+IsOptionaRule1			=False
+
+//****************************************************************************
+//****************************************************************************
+
+[KeyAgreementInvalid]
+InterfaceType			=KKeyAgreementInterface
+AlgorithmUid			=KAlgorithmKeyAgreementDH
+AlgorithmParams			=NULL
+
+InterfaceScopeRule1		=KNone
+AlgorithmScopeRule1		=KNone
+CharacterUidRule1		=KIsFIPSApprovedType
+CompareOperatorRule1		=EOpEqual
+CharacterValueRule1		=True
+CharacterValueTypeRule1		=ERuleValueBoolean
+IsOptionaRule1			=False
+
+//****************************************************************************
+//****************************************************************************
+
+[KeyPairGeneratorInvalid]
+InterfaceType			=KKeypairGeneratorInterface
+AlgorithmUid			=KAlgorithmRSAKeyPairGenerator
+AlgorithmParams			=NULL
+
+InterfaceScopeRule1		=KNone
+AlgorithmScopeRule1		=KNone
+CharacterUidRule1		=KIsHardwareSupportedType
+CompareOperatorRule1		=EOpNotEqual
+CharacterValueRule1		=False
+CharacterValueTypeRule1		=ERuleValueBoolean
+IsOptionaRule1			=False
+
+//****************************************************************************
+//****************************************************************************
+
+[RuleInvalid01]
+InterfaceType			=KSymmetricCipherInterface
+EncryptKey			=ABCDEFGH
+KeyType				=KSymmetricKeyParameter
+AlgorithmUid			=KAlgorithmCipherDes
+CryptoMode			=KCryptoModeEncrypt
+OperationMode			=KOperationModeNone
+PaddingMode			=KPaddingModeNone
+AlgorithmParams			=NULL
+
+InterfaceScopeRule1		=KNone
+AlgorithmScopeRule1		=KNone
+CharacterUidRule1		=KInterfaceType
+CompareOperatorRule1		=EOpAscendingSort
+CharacterValueRule1		=NULL
+CharacterValueTypeRule1		=ERuleValueInteger
+IsOptionaRule1			=False
+
+//****************************************************************************
+//****************************************************************************
+
+[RuleInvalid02]
+InterfaceType			=KSymmetricCipherInterface
+EncryptKey			=ABCDEFGH
+KeyType				=KSymmetricKeyParameter
+AlgorithmUid			=KAlgorithmCipherDes
+CryptoMode			=KCryptoModeEncrypt
+OperationMode			=KOperationModeNone
+PaddingMode			=KPaddingModeNone
+AlgorithmParams			=NULL
+
+InterfaceScopeRule1		=KNone
+AlgorithmScopeRule1		=KNone
+CharacterUidRule1		=KAlgorithmType
+CompareOperatorRule1		=EOpEqual
+CharacterValueRule1		=0
+CharacterValueTypeRule1		=ERuleValueDes16
+IsOptionaRule1			=False
+
+//****************************************************************************
+//****************************************************************************
+
+[RuleInvalid03]
+InterfaceType			=KSymmetricCipherInterface
+EncryptKey			=ABCDEFGH
+KeyType				=KSymmetricKeyParameter
+AlgorithmUid			=KAlgorithmCipherDes
+CryptoMode			=KCryptoModeEncrypt
+OperationMode			=KOperationModeNone
+PaddingMode			=KPaddingModeNone
+AlgorithmParams			=NULL
+
+InterfaceScopeRule1		=KNone
+AlgorithmScopeRule1		=KNone
+CharacterUidRule1		=KIsHardwareSupportedType
+CompareOperatorRule1		=EOpGreaterThan
+CharacterValueRule1		=False
+CharacterValueTypeRule1		=ERuleValueBoolean
+IsOptionaRule1			=False
+
+//****************************************************************************
+//****************************************************************************
+
+[RuleInvalid04]
+InterfaceType			=KSymmetricCipherInterface
+EncryptKey			=ABCDEFGH
+KeyType				=KSymmetricKeyParameter
+AlgorithmUid			=KAlgorithmCipherDes
+CryptoMode			=KCryptoModeEncrypt
+OperationMode			=KOperationModeNone
+PaddingMode			=KPaddingModeNone
+AlgorithmParams			=NULL
+
+InterfaceScopeRule1		=KNone
+AlgorithmScopeRule1		=KNone
+CharacterUidRule1		=KCreatorNameType
+CompareOperatorRule1		=EOpGreaterThan
+CharacterValueRule1		=0
+CharacterValueTypeRule1		=ERuleValueDes16
+IsOptionaRule1			=False
+
+//****************************************************************************
+//****************************************************************************
+
+[RuleInvalid05]
+InterfaceType			=KSymmetricCipherInterface
+EncryptKey			=ABCDEFGH
+KeyType				=KSymmetricKeyParameter
+AlgorithmUid			=KAlgorithmCipherDes
+CryptoMode			=KCryptoModeEncrypt
+OperationMode			=KOperationModeNone
+PaddingMode			=KPaddingModeNone
+AlgorithmParams			=NULL
+
+InterfaceScopeRule1		=KNone
+AlgorithmScopeRule1		=KNone
+CharacterUidRule1		=KIsFIPSApprovedType
+CompareOperatorRule1		=EOpAscendingSort
+CharacterValueRule1		=0
+CharacterValueTypeRule1		=ERuleValueInteger
+IsOptionaRule1			=False
+
+//****************************************************************************
+//****************************************************************************
+
+[RuleInvalid06]
+InterfaceType			=KSymmetricCipherInterface
+EncryptKey			=ABCDEFGH
+KeyType				=KSymmetricKeyParameter
+AlgorithmUid			=KAlgorithmCipherDes
+CryptoMode			=KCryptoModeEncrypt
+OperationMode			=KOperationModeNone
+PaddingMode			=KPaddingModeNone
+AlgorithmParams			=NULL
+
+InterfaceScopeRule1		=KNone
+AlgorithmScopeRule1		=KNone
+CharacterUidRule1		=KIsHardwareSupportedType
+CompareOperatorRule1		=EOpEqual
+CharacterValueRule1		=0
+CharacterValueTypeRule1		=ERuleValueDes16
+IsOptionaRule1			=False
+
+//****************************************************************************
+//****************************************************************************
+
+[RuleInvalid07]
+InterfaceType			=KSymmetricCipherInterface
+EncryptKey			=ABCDEFGH
+KeyType				=KSymmetricKeyParameter
+AlgorithmUid			=KAlgorithmCipherDes
+CryptoMode			=KCryptoModeEncrypt
+OperationMode			=KOperationModeNone
+PaddingMode			=KPaddingModeNone
+AlgorithmParams			=NULL
+
+InterfaceScopeRule1		=KNone
+AlgorithmScopeRule1		=KNone
+CharacterUidRule1		=KMaxConcurrencySupportedType
+CompareOperatorRule1		=EOpAscendingSort
+CharacterValueRule1		=NULL
+CharacterValueTypeRule1		=ERuleValueDes16
+IsOptionaRule1			=False