Skip to content

Commit

Permalink
Small refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
claucece committed May 22, 2020
1 parent dfb4d8d commit 4ee9e0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions csr/csr.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ func (kr *KeyRequest) Generate() (crypto.PrivateKey, error) {
keypair, err := cEd25519.GenerateKey(rand.Reader)

priv := make(ed25519.PrivateKey, ed25519.PrivateKeySize)
copy(priv[:cEd25519.PrivateKeySize], keypair.GetPrivate())
copy(priv[cEd25519.PrivateKeySize:], keypair.GetPublic())
copy(priv, keypair.GetPrivate())
copy(priv[cEd25519.PublicKeySize:], keypair.GetPublic())

fmt.Printf("\n PRIV 1 %x \n", priv)
return priv, err
Expand Down

0 comments on commit 4ee9e0d

Please sign in to comment.