Skip to content

Commit

Permalink
fix public key type
Browse files Browse the repository at this point in the history
  • Loading branch information
juunini committed Oct 24, 2023
1 parent db84c49 commit 0c2d235
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if err != nil {
algorithm := crypto.SHA256
date := signature_header.Date()
digest := signature_header.Digest(algorithm, message)
signature, err := src.Signature{
signature, err := signature_header.Signature{
PrivateKey: privateKey,
Algorithm: algorithm,
Date: date,
Expand Down
2 changes: 1 addition & 1 deletion key.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func GenerateKey(bits int) (privateKey *rsa.PrivateKey, privateKeyBytes []byte,

publicKeyASN1, _ := x509.MarshalPKIXPublicKey(&privateKey.PublicKey)
publicKeyBytes = pem.EncodeToMemory(&pem.Block{
Type: "RSA PUBLIC KEY",
Type: "PUBLIC KEY",
Bytes: publicKeyASN1,
})
return
Expand Down

0 comments on commit 0c2d235

Please sign in to comment.