Skip to content

Commit 872fa47

Browse files
committed
Make SHA256KeyID public again
Signed-off-by: Aditya Sirish <[email protected]>
1 parent e6e1a9e commit 872fa47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dsse/verify.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func (ev *EnvelopeVerifier) Verify(ctx context.Context, e *Envelope) ([]Accepted
6060

6161
// Verifiers that do not provide a keyid will be generated one using public.
6262
if err != nil || keyID == "" {
63-
keyID, err = sha256KeyID(v.Public())
63+
keyID, err = SHA256KeyID(v.Public())
6464
if err != nil {
6565
keyID = ""
6666
}
@@ -123,7 +123,7 @@ func NewMultiEnvelopeVerifier(threshold int, p ...Verifier) (*EnvelopeVerifier,
123123
return &ev, nil
124124
}
125125

126-
func sha256KeyID(pub crypto.PublicKey) (string, error) {
126+
func SHA256KeyID(pub crypto.PublicKey) (string, error) {
127127
// Generate public key fingerprint
128128
sshpk, err := ssh.NewPublicKey(pub)
129129
if err != nil {

0 commit comments

Comments
 (0)