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