Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions note/note_rfc6962.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ package note
import (
"crypto"
"crypto/ecdsa"
"crypto/rsa"
"crypto/sha256"
"crypto/x509"
"encoding/base64"
Expand Down Expand Up @@ -212,12 +211,6 @@ func verifyRFC6962(key crypto.PublicKey) func([]byte, string, []byte) bool {
return false
}
return ecdsa.VerifyASN1(k, dgst[:], sig)
case *rsa.PublicKey:
// RFC 5246 s7.4.1.4.1.
if sAlg != 0x01 {
return false
}
return rsa.VerifyPKCS1v15(k, crypto.SHA256, dgst[:], sig) != nil
default:
return false
}
Expand Down
Loading