Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz-Smelcerz-SAP committed Jan 30, 2024
1 parent a74a3b8 commit 9675d07
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/module/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/open-component-model/ocm/pkg/signing"
"github.com/open-component-model/ocm/pkg/signing/handlers/rsa"
"github.com/open-component-model/ocm/pkg/signing/hasher/sha512"
"github.com/open-component-model/ocm/pkg/signing/signutils"
"github.com/pkg/errors"
)

Expand Down Expand Up @@ -112,7 +113,7 @@ func privateKey(pathToPrivateKey string) (interface{}, error) {
return nil, fmt.Errorf("unable to open key file: %w", err)
}

key, err := signing.ParsePrivateKey(privateKeyFile)
key, err := signutils.ParsePublicKey(privateKeyFile)
if err != nil {
return nil, fmt.Errorf("unable to parse private key: %w", err)
}
Expand All @@ -125,7 +126,7 @@ func publicKey(pathToPublicKey string) (interface{}, error) {
return nil, fmt.Errorf("unable to open key file: %w", err)
}

key, err := signing.ParsePublicKey(publicKeyFile)
key, err := signutils.ParsePublicKey(publicKeyFile)
if err != nil {
return nil, fmt.Errorf("unable to parse public key: %w", err)
}
Expand Down

0 comments on commit 9675d07

Please sign in to comment.