diff options
Diffstat (limited to 'src/tests/data/pk_pad_eme/pkcs1.vec')
-rw-r--r-- | src/tests/data/pk_pad_eme/pkcs1.vec | 49 |
1 files changed, 23 insertions, 26 deletions
diff --git a/src/tests/data/pk_pad_eme/pkcs1.vec b/src/tests/data/pk_pad_eme/pkcs1.vec index 48b732d95..55eae75bc 100644 --- a/src/tests/data/pk_pad_eme/pkcs1.vec +++ b/src/tests/data/pk_pad_eme/pkcs1.vec @@ -1,46 +1,43 @@ -[PKCS1v15] +[invalid] RawCiphertext = -ValidInput = false RawCiphertext = 00 -ValidInput = false - -RawCiphertext = 0000 -ValidInput = false RawCiphertext = FF -ValidInput = false -RawCiphertext = FF02 -ValidInput = false +RawCiphertext = 0000 -RawCiphertext = 0002DEDE24212121DEDEDE5EDEDEDEDE0A5EDE00000000DEDEDE010000000000 -Plaintext = 000000DEDEDE010000000000 -ValidInput = true +RawCiphertext = FF02 RawCiphertext = 022C2C4018181818181818181818183A18181818181818180000002C022C00010A2C2C2C2C2C022C -ValidInput = false -RawCiphertext = 00022C2C4018181818181818181818183A18181818181818180000002C022C00010A2C2C2C2C2C022C +# Short padding strings +RawCiphertext = 0002FFFFFFFFFFFFFF000113131313131388 +RawCiphertext = 0002FFFFFFFFFFFF000113131313131388 +RawCiphertext = 0002FFFFFFFFFF000113131313131388 +RawCiphertext = 0002FFFFFFFF000113131313131388 +RawCiphertext = 0002FFFFFF000113131313131388 + +[valid] + +Plaintext = 0113131313131388 +RawCiphertext = 0002FFFFFFFFFFFFFFFF000113131313131388 + +Plaintext = 000000DEDEDE010000000000 +RawCiphertext = 0002DEDE24212121DEDEDE5EDEDEDEDE0A5EDE00000000DEDEDE010000000000 + Plaintext = 00002C022C00010A2C2C2C2C2C022C -ValidInput = true +RawCiphertext = 00022C2C4018181818181818181818183A18181818181818180000002C022C00010A2C2C2C2C2C022C -RawCiphertext = 0002FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF010100000021FFFFFFFFFFFFBC Plaintext = 000021FFFFFFFFFFFFBC -ValidInput = true +RawCiphertext = 0002FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF010100000021FFFFFFFFFFFFBC -RawCiphertext = 0002F9CCFFFFCCCCCCCCCCCCCCCC4E0000CCFFFFCCCCCCCCCCCCCCCCCCCCCCCCCC06 Plaintext = 00CCFFFFCCCCCCCCCCCCCCCCCCCCCCCCCC06 -ValidInput = true +RawCiphertext = 0002F9CCFFFFCCCCCCCCCCCCCCCC4E0000CCFFFFCCCCCCCCCCCCCCCCCCCCCCCCCC06 -RawCiphertext = 000253FFC43B5253FF0A53DE0000FD Plaintext = 00FD -ValidInput = true +RawCiphertext = 000253FFC43B5253FF0A53DE0000FD -RawCiphertext = 0002FFFF06FFFFFFFFFF00000000000000000000000000000000000000000000000000000000FF0A Plaintext = 000000000000000000000000000000000000000000000000000000FF0A -ValidInput = true +RawCiphertext = 0002FFFF06FFFFFFFFFF00000000000000000000000000000000000000000000000000000000FF0A -# Padding only 7 bytes -RawCiphertext = 0002FFFFFFFFFFFFFF000113131313131388 -ValidInput = false |