Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
ajewellamz committed Aug 6, 2024
1 parent 22061b0 commit 1d68d63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AwsCryptographyPrimitives/test/TestECDH.dfy
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ module TestECDH {
const OUT_OF_BOUNDS_ERR_MSG_NE48 := "value invalid for Fp field element\r\nParameter name: x"

// Rust does not provide a separate error message for infinity or out of bounds
const BAD_X509_KEY_RUST := "Invalid X509 Public Key."
const BAD_X509_KEY_ERR_MSG_RUST := "Invalid X509 Public Key."

method {:test} TestKeyGen()
{
Expand Down Expand Up @@ -288,7 +288,7 @@ module TestECDH {
var errMsg := validPublicKey.error.message;

expect (
errMsg == BAD_X509_KEY_RUST ||
errMsg == BAD_X509_KEY_ERR_MSG_RUST ||
errMsg == INFINITY_POINT_ERR_MSG_JAVA ||
errMsg == INFINITY_POINT_ERR_MSG_NET6 ||
errMsg == INFINITY_POINT_ERR_MSG_NET48
Expand Down Expand Up @@ -338,7 +338,7 @@ module TestECDH {
var errMsg := validPublicKey.error.message;
expect (
seq_contains(errMsg, OUT_OF_BOUNDS_ERR_MSG_JAVA) ||
errMsg == BAD_X509_KEY_RUST ||
errMsg == BAD_X509_KEY_ERR_MSG_RUST ||
errMsg == OUT_OF_BOUNDS_ERR_MSG_NET6 ||
errMsg == OUT_OF_BOUNDS_ERR_MSG_NE48
);
Expand Down

0 comments on commit 1d68d63

Please sign in to comment.