crypto/weakcryptospi/test/tpadding/scripts/tpadpkcs7.ini
changeset 8 35751d3474b7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/weakcryptospi/test/tpadding/scripts/tpadpkcs7.ini	Thu Sep 10 14:01:51 2009 +0300
@@ -0,0 +1,82 @@
+//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	         
+
+
+
+
+
+
+
+