1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/security/crypto/weakcrypto/test/tpadding/scripts/tpadpkcs7.ini Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,82 @@
1.4 +//Wrong Padding Byte
1.5 +[DEF073199]
1.6 +blocksize=64
1.7 +textsize=48
1.8 +paddingbyte=200
1.9 +ExpectedResult=InvalidPadding
1.10 +
1.11 +//correct Padding Byte, Block size is less than the text size
1.12 +[Valid_PaddingByte1]
1.13 +blocksize=48
1.14 +textsize=64
1.15 +paddingbyte=32
1.16 +ExpectedResult=Valid
1.17 +
1.18 +//correct Padding Byte, block size is equal to the text size
1.19 +[Valid_PaddingByte2]
1.20 +blocksize=64
1.21 +textsize=64
1.22 +paddingbyte=64
1.23 +ExpectedResult=Valid
1.24 +
1.25 +//correct Padding Byte, Block size is greater than the text size
1.26 +[Valid_PaddingByte3]
1.27 +blocksize=64
1.28 +textsize=48
1.29 +paddingbyte=16
1.30 +ExpectedResult=Valid
1.31 +
1.32 +//Wrong Padding Byte, block size is equal to the text size
1.33 +[InValid_PaddingByte1]
1.34 +blocksize=64
1.35 +textsize=64
1.36 +paddingbyte=16
1.37 +ExpectedResult=InvalidPadding
1.38 +
1.39 +//Block size is greater than the text size, wrong Padding Byte
1.40 +[InValid_PaddingByte2]
1.41 +blocksize=64
1.42 +textsize=48
1.43 +paddingbyte=32
1.44 +ExpectedResult=InvalidPadding
1.45 +
1.46 +
1.47 +//Tests for PADDING
1.48 +
1.49 +//Block size is less than the text size
1.50 +[Block_LessThan_Text_Padding]
1.51 +blocksize=48
1.52 +textsize=64
1.53 +ExpectedResult=InvalidPadding
1.54 +
1.55 +//block size is equal to the text size
1.56 +[Block_Equal_Text_Padding]
1.57 +blocksize=64
1.58 +textsize=64
1.59 +ExpectedResult=Valid
1.60 +
1.61 +//Block size is greater than the text size
1.62 +[Block_GreaterThan_Text_Padding]
1.63 +blocksize=64
1.64 +textsize=48
1.65 +ExpectedResult=Valid
1.66 +
1.67 +//Block size is Zero
1.68 +[Zero_Block_Padding]
1.69 +blocksize=0
1.70 +textsize=48
1.71 +ExpectedResult=CorruptBlockSize
1.72 +
1.73 +//Block size is Negative
1.74 +[Negative_Block_Padding]
1.75 +blocksize=-9
1.76 +textsize=48
1.77 +ExpectedResult=CorruptBlockSize
1.78 +
1.79 +
1.80 +
1.81 +
1.82 +
1.83 +
1.84 +
1.85 +