mirror of
https://github.com/slsa-framework/slsa-verifier.git
synced 2026-08-18 11:06:21 +00:00
closes https://github.com/slsa-framework/slsa-verifier/issues/707 Signed-off-by: laurentsimon <laurentsimon@google.com>
This commit is contained in:
@@ -163,7 +163,7 @@ const (
|
||||
func DsseVerifierNew(content []byte, format KeyFormat, keyID string, sigEncoding *SignatureEncoding) (*dsselib.EnvelopeVerifier, error) {
|
||||
if format == KeyFormatPEM {
|
||||
block, rest := pem.Decode(content)
|
||||
if rest != nil {
|
||||
if len(rest) != 0 {
|
||||
return nil, fmt.Errorf("%w: additional data found", serrors.ErrorInvalidPEM)
|
||||
}
|
||||
if block == nil {
|
||||
|
||||
Reference in New Issue
Block a user