crypto/weakcrypto/test/tpadding/scripts/tpadpkcs7.ini
author hgs
Thu, 24 Jun 2010 15:39:07 +0530
changeset 72 de46a57f75fb
permissions -rw-r--r--
201023_02

//Wrong Padding Byte
[DEF073199]
blocksize=64
textsize=48
paddingbyte=200         
ExpectedResult=InvalidPadding     

//correct Padding Byte, Block size is less than the text size
[Valid_PaddingByte1]
blocksize=48 		
textsize=64
paddingbyte=32		
ExpectedResult=Valid      	

//correct Padding Byte, block size is equal to the text size
[Valid_PaddingByte2]
blocksize=64 	       
textsize=64
paddingbyte=64         
ExpectedResult=Valid

//correct Padding Byte, Block size is greater than the text size
[Valid_PaddingByte3]
blocksize=64	      
textsize=48
paddingbyte=16	       
ExpectedResult=Valid

//Wrong Padding Byte, block size is equal to the text size
[InValid_PaddingByte1]
blocksize=64           
textsize=64
paddingbyte=16         
ExpectedResult=InvalidPadding    

//Block size is greater than the text size, wrong Padding Byte
[InValid_PaddingByte2]
blocksize=64           
textsize=48
paddingbyte=32         
ExpectedResult=InvalidPadding    


//Tests for PADDING

//Block size is less than the text size
[Block_LessThan_Text_Padding]
blocksize=48 		 
textsize=64		 
ExpectedResult=InvalidPadding	          

//block size is equal to the text size
[Block_Equal_Text_Padding]
blocksize=64 	        
textsize=64		
ExpectedResult=Valid
     
//Block size is greater than the text size
[Block_GreaterThan_Text_Padding]
blocksize=64      	
textsize=48		
ExpectedResult=Valid

//Block size is Zero
[Zero_Block_Padding]
blocksize=0     	
textsize=48		
ExpectedResult=CorruptBlockSize

//Block size is Negative
[Negative_Block_Padding]
blocksize=-9           
textsize=48	  
ExpectedResult=CorruptBlockSize