Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cloudflare/circl
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 34659acc6cecd3a9cb399c302b65d6c5002927e8
Choose a base ref
..
head repository: cloudflare/circl
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: df5ea67995a9749742a711b09db443fd52dba217
Choose a head ref
Showing with 2 additions and 2 deletions.
  1. +2 −2 hpke/kem_test.go
4 changes: 2 additions & 2 deletions hpke/kem_test.go
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ func checkIssue488(t *testing.T, kem hpke.KEM) {
copy(buffer, skBytes)

// passing a buffer larger than the private key size should error (but no panic).
_, err = scheme.UnmarshalBinaryPrivateKey(buffer[:N+1])
_, err := scheme.UnmarshalBinaryPrivateKey(buffer[:N+1])
test.CheckIsErr(t, err, "unmarshal private key should failed")

// passing a buffer of the exact size must be correct.
@@ -53,7 +53,7 @@ func checkIssue488(t *testing.T, kem hpke.KEM) {
copy(buffer, pkBytes)

// passing a buffer larger than the public key size should error (but no panic).
_, err = scheme.UnmarshalBinaryPublicKey(buffer[:N+1])
_, err := scheme.UnmarshalBinaryPublicKey(buffer[:N+1])
test.CheckIsErr(t, err, "unmarshal public key should failed")

gotPk, err := scheme.UnmarshalBinaryPublicKey(buffer[:N])