[idsig][apk] Change default signature algorithm to RSAPSS-SHA256
This CL changes the default signature algorithm from DSA to
RSAPSS-SHA256 as we are deprecating DSA. The Default trait is
only needed by idsig for now but it is actually not used for
verification.
Bug: 248170859
Test: libapkverify.integration_test libidsig.test
Change-Id: Ib7de6411d7c7ec64bb8b466105d5e58837b6be06
diff --git a/libs/apkverify/src/algorithms.rs b/libs/apkverify/src/algorithms.rs
index a1cf368..6d4362b 100644
--- a/libs/apkverify/src/algorithms.rs
+++ b/libs/apkverify/src/algorithms.rs
@@ -77,7 +77,7 @@
impl Default for SignatureAlgorithmID {
fn default() -> Self {
- SignatureAlgorithmID::DsaWithSha256
+ SignatureAlgorithmID::RsaPssWithSha256
}
}