-func (pk *PublicKey) VerifyDigest(digest, signature []byte) (bool, error) {
- if len(digest) != pk.ds {
- return false, errors.New("Invalid input digest length")
- }
- if len(signature) != 2*pk.ds {
+func (pub *PublicKey) VerifyDigest(digest, signature []byte) (bool, error) {
+ if len(signature) != 2*int(pub.mode) {