Skip to content

Commit

Permalink
rsa: remove backwards compat APIs (#1307)
Browse files Browse the repository at this point in the history
Now that known users of these APIs have migrated to functions calls
with an explicit hash, remove these backward compat APIs.

This will catch any unknown users of these APIs.
  • Loading branch information
xnox authored Oct 28, 2024
1 parent 524bf6e commit 48f3c87
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/apk/signature/rsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,3 @@ func RSAVerifyDigest(digest []byte, digestType crypto.Hash, signature []byte, pu

return nil
}

// Backwards compat
func RSASignSHA1Digest(digest []byte, keyFile, passphrase string) ([]byte, error) {
return RSASignDigest(digest, crypto.SHA1, keyFile, passphrase)
}
func RSAVerifySHA1Digest(digest, signature []byte, publicKey []byte) error {
return RSAVerifyDigest(digest, crypto.SHA1, signature, publicKey)
}

0 comments on commit 48f3c87

Please sign in to comment.