crypto/weakcryptospi/test/tpadding/scripts/tpadSSLv3.ini
author hgs
Sat, 30 Oct 2010 16:29:23 +0530
changeset 108 ca9a0fc2f082
parent 8 35751d3474b7
permissions -rw-r--r--
201043_01

[CipherAES_CBC]
BlockSize=16
TestCaseName=CipherAES_CBC

[CipherDES_CBC]
BlockSize=8
TestCaseName=CipherDES_CBC

[CipherRC2_CBC]
BlockSize=8
TestCaseName=CipherRC2_CBC

[ContentLength]
Length=61  // from example in TLS1.0 spec. section 6.2.3.2. CBC block cipher

//Test for BlockSize 0
[Zero_BlockSize]
BlockSize=0
TextSize=16              
TestCaseName=Zero_BlockSize
ExpectedResult=CorruptBlockSize

//Test for Negative BlockSize
[Negative_BlockSize]
BlockSize=-8
TextSize=16             
TestCaseName=Negative_BlockSize
ExpectedResult=CorruptBlockSize

//Test for BlockSize lesser than the TextSize
[Block_LessThan_Text]               
BlockSize=16
TextSize=32 
TestCaseName=Block_LessThan_Text
ExpectedResult=CorruptBlockSize      

//Test for BlockSize lesser than the TextSize in unpadding. Full text unpadding is ok
[Block_LessThan_Text_Unpad]
BlockSize=16
TextSize=32 
TestCaseName=Block_LessThan_Text
ExpectedResult=Valid

//Test for BlockSize equal to the TextSize
[Block_Equal_Text]                
BlockSize=16
TextSize=16  
TestCaseName=Block_Equal_Text
ExpectedResult=CorruptBlockSize          

//Test for BlockSize greater than TextSize and TextSize is Zero
[Zero_Text]
BlockSize=16
TextSize=0
TestCaseName=Zero_Text
ExpectedResult=CorruptBlockSize