Skip to content

Commit

Permalink
Add kem stats logging to scheme tests
Browse files Browse the repository at this point in the history
prints some stats about each kem scheme such as kem ciphertext size,
public key size, private key size
  • Loading branch information
david415 committed Apr 19, 2024
1 parent 432da10 commit 8e9301d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kem/schemes/kem_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func TestKEMTextUnmarshal(t *testing.T) {

for _, scheme := range todo {
t.Logf("testing KEM Scheme: %s", scheme.Name())
t.Logf("PublicKeySize %d PrivateKeySize %d CiphertextSize %d", scheme.PublicKeySize(), scheme.PrivateKeySize(), scheme.CiphertextSize())
testkem(scheme)
t.Log("OK")
}
Expand All @@ -83,6 +84,7 @@ func TestKEMEncapDecap(t *testing.T) {

for _, scheme := range todo {
t.Logf("testing KEM Scheme: %s", scheme.Name())
t.Logf("PublicKeySize %d PrivateKeySize %d CiphertextSize %d", scheme.PublicKeySize(), scheme.PrivateKeySize(), scheme.CiphertextSize())
testkem(scheme)
t.Log("OK")
}
Expand Down

0 comments on commit 8e9301d

Please sign in to comment.