Include colons in expectedError matches.
If we're doing substring matching, we should at least include the delimiter. Change-Id: I98bee568140d0304bbb6a2788333dbfca044114c Reviewed-on: https://boringssl-review.googlesource.com/7420 Reviewed-by: Steven Valdez <svaldez@google.com> Reviewed-by: David Benjamin <davidben@google.com>
This commit is contained in:
parent
454aa4c25e
commit
11d50f94d8
@ -2516,7 +2516,7 @@ func addBadECDSASignatureTests() {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
shouldFail: true,
|
shouldFail: true,
|
||||||
expectedError: "SIGNATURE",
|
expectedError: ":BAD_SIGNATURE:",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2542,7 +2542,7 @@ func addCBCPaddingTests() {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
shouldFail: true,
|
shouldFail: true,
|
||||||
expectedError: "DECRYPTION_FAILED_OR_BAD_RECORD_MAC",
|
expectedError: ":DECRYPTION_FAILED_OR_BAD_RECORD_MAC:",
|
||||||
})
|
})
|
||||||
// OpenSSL previously had an issue where the first byte of padding in
|
// OpenSSL previously had an issue where the first byte of padding in
|
||||||
// 255 bytes of padding wasn't checked.
|
// 255 bytes of padding wasn't checked.
|
||||||
@ -2557,7 +2557,7 @@ func addCBCPaddingTests() {
|
|||||||
},
|
},
|
||||||
messageLen: 12, // 20 bytes of SHA-1 + 12 == 0 % block size
|
messageLen: 12, // 20 bytes of SHA-1 + 12 == 0 % block size
|
||||||
shouldFail: true,
|
shouldFail: true,
|
||||||
expectedError: "DECRYPTION_FAILED_OR_BAD_RECORD_MAC",
|
expectedError: ":DECRYPTION_FAILED_OR_BAD_RECORD_MAC:",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user