crypto/weakcrypto/test/tpadding/scripts/tpadpkcs7.ini
changeset 71 dd83586b62d6
equal deleted inserted replaced
66:8873e6835f7b 71:dd83586b62d6
       
     1 //Wrong Padding Byte
       
     2 [DEF073199]
       
     3 blocksize=64
       
     4 textsize=48
       
     5 paddingbyte=200         
       
     6 ExpectedResult=InvalidPadding     
       
     7 
       
     8 //correct Padding Byte, Block size is less than the text size
       
     9 [Valid_PaddingByte1]
       
    10 blocksize=48 		
       
    11 textsize=64
       
    12 paddingbyte=32		
       
    13 ExpectedResult=Valid      	
       
    14 
       
    15 //correct Padding Byte, block size is equal to the text size
       
    16 [Valid_PaddingByte2]
       
    17 blocksize=64 	       
       
    18 textsize=64
       
    19 paddingbyte=64         
       
    20 ExpectedResult=Valid
       
    21 
       
    22 //correct Padding Byte, Block size is greater than the text size
       
    23 [Valid_PaddingByte3]
       
    24 blocksize=64	      
       
    25 textsize=48
       
    26 paddingbyte=16	       
       
    27 ExpectedResult=Valid
       
    28 
       
    29 //Wrong Padding Byte, block size is equal to the text size
       
    30 [InValid_PaddingByte1]
       
    31 blocksize=64           
       
    32 textsize=64
       
    33 paddingbyte=16         
       
    34 ExpectedResult=InvalidPadding    
       
    35 
       
    36 //Block size is greater than the text size, wrong Padding Byte
       
    37 [InValid_PaddingByte2]
       
    38 blocksize=64           
       
    39 textsize=48
       
    40 paddingbyte=32         
       
    41 ExpectedResult=InvalidPadding    
       
    42 
       
    43 
       
    44 //Tests for PADDING
       
    45 
       
    46 //Block size is less than the text size
       
    47 [Block_LessThan_Text_Padding]
       
    48 blocksize=48 		 
       
    49 textsize=64		 
       
    50 ExpectedResult=InvalidPadding	          
       
    51 
       
    52 //block size is equal to the text size
       
    53 [Block_Equal_Text_Padding]
       
    54 blocksize=64 	        
       
    55 textsize=64		
       
    56 ExpectedResult=Valid
       
    57      
       
    58 //Block size is greater than the text size
       
    59 [Block_GreaterThan_Text_Padding]
       
    60 blocksize=64      	
       
    61 textsize=48		
       
    62 ExpectedResult=Valid
       
    63 
       
    64 //Block size is Zero
       
    65 [Zero_Block_Padding]
       
    66 blocksize=0     	
       
    67 textsize=48		
       
    68 ExpectedResult=CorruptBlockSize
       
    69 
       
    70 //Block size is Negative
       
    71 [Negative_Block_Padding]
       
    72 blocksize=-9           
       
    73 textsize=48	  
       
    74 ExpectedResult=CorruptBlockSize	         
       
    75 
       
    76 
       
    77 
       
    78 
       
    79 
       
    80 
       
    81 
       
    82