Skip to content

Commit e0454ea

Browse files
committed
Don't export error testing funcs
The consumer doesn't need these yet, so there's no need to export them.
1 parent 22284ad commit e0454ea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

verify.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,19 @@ var (
157157
invalidSignatureError = errors.New("invalid signature")
158158
)
159159

160+
// These error checking funcs aren't needed yet, so don't export them
161+
162+
/*
163+
160164
func IsNotSignedError(err error) bool { return errors.Is(err, notSignedError) }
161165
func IsMalformedSignatureError(err error) bool { return errors.Is(err, malformedSignatureError) }
162166
func IsUnknownKeyError(err error) bool { return errors.Is(err, unknownKeyError) }
163167
func IsAlgMismatchError(err error) bool { return errors.Is(err, algMismatchError) }
164168
func IsSignatureExpiredError(err error) bool { return errors.Is(err, signatureExpiredError) }
165169
func IsInvalidSignatureError(err error) bool { return errors.Is(err, invalidSignatureError) }
166170
171+
*/
172+
167173
func verifyRsaPssSha512(pk *rsa.PublicKey) verHolder {
168174
return verHolder{
169175
alg: "rsa-pss-sha512",

0 commit comments

Comments
 (0)