Skip to content

Commit

Permalink
fix kem/sntrup
Browse files Browse the repository at this point in the history
  • Loading branch information
david415 committed Feb 22, 2024
1 parent 2355b7d commit 7091b52
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kem/sntrup/sntrup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ func TestSNTRUPKEM(t *testing.T) {
t.Logf("private key size %d", s.PrivateKeySize())
t.Logf("public key size %d", s.PublicKeySize())
t.Logf("seed size %d", s.SeedSize())
t.Logf("encapsulation seed size %d", s.EncapsulationSeedSize())

pubkey1, privkey1, err := s.GenerateKeyPair()
require.NoError(t, err)
Expand Down Expand Up @@ -59,8 +58,7 @@ func TestSNTRUPKEM(t *testing.T) {

seed := make([]byte, s.SeedSize())
pubkey4, privkey4 := s.DeriveKeyPair(seed)
encapseed := make([]byte, s.EncapsulationSeedSize())
ct3, ss3, err := s.EncapsulateDeterministically(pubkey4, encapseed)
ct3, ss3, err := s.Encapsulate(pubkey4)
require.NoError(t, err)
ss3b, err := s.Decapsulate(privkey4, ct3)
require.NoError(t, err)
Expand Down

0 comments on commit 7091b52

Please sign in to comment.