You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2026/07/27 07:42:33 UTC

(opendal-reqsign) 01/01: chore: upgrade base64 and p256

This is an automated email from the ASF dual-hosted git repository.

Xuanwo pushed a commit to branch xuanwo/upgrade-base64-p256
in repository https://gitbox.apache.org/repos/asf/opendal-reqsign.git

commit a729351d7819e9ffc2c2612591cd27412e035037
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Mon Jul 27 15:42:14 2026 +0800

    chore: upgrade base64 and p256
---
 Cargo.toml                           | 4 ++--
 services/aws-v4a/src/sign_request.rs | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml
index 0117f0f..234bc4b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -44,7 +44,7 @@ reqsign-volcengine-tos = { version = "3.0.3", path = "services/volcengine-tos" }
 
 # Crates.io dependencies
 anyhow = "1"
-base64 = "0.22"
+base64 = { version = "0.23", default-features = false, features = ["std"] }
 bytes = "1"
 criterion = { version = "0.8.1", features = ["async_tokio", "html_reports"] }
 dotenvy = "0.15"
@@ -58,7 +58,7 @@ jiff = "0.2"
 log = "0.4"
 pem = "3.0"
 percent-encoding = "2"
-p256 = { version = "0.13.2", default-features = false, features = ["ecdsa"] }
+p256 = { version = "0.14.0", default-features = false, features = ["ecdsa"] }
 pretty_assertions = "1.3"
 quick-xml = { version = "0.41.0", features = ["serialize"] }
 reqwest = { version = "0.13.1", default-features = false }
diff --git a/services/aws-v4a/src/sign_request.rs b/services/aws-v4a/src/sign_request.rs
index 1b08fb7..a645c20 100644
--- a/services/aws-v4a/src/sign_request.rs
+++ b/services/aws-v4a/src/sign_request.rs
@@ -365,7 +365,7 @@ mod tests {
     #[test]
     fn signing_key_matches_aws_public_key_vector() -> AnyResult<()> {
         let signing_key = generate_signing_key(ACCESS_KEY_ID, SECRET_ACCESS_KEY)?;
-        let public_key = signing_key.verifying_key().to_encoded_point(false);
+        let public_key = signing_key.verifying_key().to_sec1_point(false);
 
         assert_eq!(
             hex::encode(public_key.x().expect("uncompressed key has x")),