Fix test cases in PKCS#8.

The test case was accidentally a duplicate of the one that follows it.
Fix it so that it is badly encoded in the way described in the comment.
This commit is contained in:
Brian Smith 2018-11-28 10:54:17 -10:00
parent 569d45b8a5
commit d42f9d5e21
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ Error = DECODE_ERROR
# The AlgorithmIdentifier is ecPublicKey w/ P-256, but it's an RSAPrivateKey.
Curve = P-256
Input = 308181020100300d06092a864886f70d0101010500046d306b0201010420090460075f15d2a256248000fb02d83ad77593dde4ae59fc5e96142dffb2bd07a14403420004cf0d13a3a7577231ea1b66cf4021cd54f21f4ac4f5f2fdd28e05bc7d2bd099d1374cd08d2ef654d6f04498db462f73e0282058dd661a4c9b0437af3f7af6e724
Input = 308189020100301306072A8648CE3D020106082A8648CE3D0301070500046d306b0201010420090460075f15d2a256248000fb02d83ad77593dde4ae59fc5e96142dffb2bd07a14403420004cf0d13a3a7577231ea1b66cf4021cd54f21f4ac4f5f2fdd28e05bc7d2bd099d1374cd08d2ef654d6f04498db462f73e0282058dd661a4c9b0437af3f7af6e724
Error = DECODE_ERROR
# A P-256 ECPrivateKey, but the AlgorithmIdentifier is The AlgorithmIdentifier is rsaEncryption.

View File

@ -23,7 +23,7 @@ Input = 308187020100301306072a8648ce3d020106082a8648ce3d030107046d306b0201010420
Error = DECODE_ERROR
# An RSAPrivateKey, but with an AlgorithmIdentifier of ecPublicKey w/ P-256.
Input = 308181020100300d06092a864886f70d0101010500046d306b0201010420090460075f15d2a256248000fb02d83ad77593dde4ae59fc5e96142dffb2bd07a14403420004cf0d13a3a7577231ea1b66cf4021cd54f21f4ac4f5f2fdd28e05bc7d2bd099d1374cd08d2ef654d6f04498db462f73e0282058dd661a4c9b0437af3f7af6e724
Input = 308189020100301306072A8648CE3D020106082A8648CE3D0301070500046d306b0201010420090460075f15d2a256248000fb02d83ad77593dde4ae59fc5e96142dffb2bd07a14403420004cf0d13a3a7577231ea1b66cf4021cd54f21f4ac4f5f2fdd28e05bc7d2bd099d1374cd08d2ef654d6f04498db462f73e0282058dd661a4c9b0437af3f7af6e724
Error = DECODE_ERROR
# The AlgorithmIdentifier is rsaEncryption, but it contains a P-256 ECPrivateKey.