Skip to content

Commit

Permalink
sprinkle debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
david415 committed Nov 12, 2024
1 parent e35a521 commit 1aa9bf8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nike/hybrid/hybrid.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package hybrid

import (
"encoding/base64"
"fmt"
"io"

"github.com/katzenpost/hpqc/nike"
Expand Down Expand Up @@ -94,11 +95,15 @@ func (s *Scheme) GenerateKeyPairFromEntropy(rng io.Reader) (nike.PublicKey, nike
}

func (s *Scheme) GenerateKeyPair() (nike.PublicKey, nike.PrivateKey, error) {
fmt.Println("BEFORE first.GenerateKeyPair")
pubKey1, privKey1, err := s.first.GenerateKeyPair()
fmt.Println("AFTER first.GenerateKeyPair")
if err != nil {
return nil, nil, err
}
fmt.Println("BEFORE second.GenerateKeyPair")
pubKey2, privKey2, err := s.second.GenerateKeyPair()
fmt.Println("AFTER second.GenerateKeyPair")
if err != nil {
return nil, nil, err
}
Expand Down

0 comments on commit 1aa9bf8

Please sign in to comment.