Skip to content

Commit 6dd7b85

Browse files
chore(deps): update p256 requirement from 0.13 to 0.14 (#959)
* chore(deps): update p256 requirement from 0.13 to 0.14 Updates the requirements on [p256](https://github.com/RustCrypto/elliptic-curves) to permit the latest version. - [Commits](RustCrypto/elliptic-curves@primeorder/v0.13.0...p256/v0.14.0) --- updated-dependencies: - dependency-name: p256 dependency-version: 0.14.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * fix(conformance): update p256 key parsing --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dale Seo <5466341+DaleSeo@users.noreply.github.com>
1 parent a037935 commit 6dd7b85

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

conformance/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ anyhow = "1"
3232
reqwest = { version = "0.13", features = ["json"] }
3333
urlencoding = "2"
3434
url = "2"
35-
p256 = { version = "0.13", features = ["ecdsa"] }
35+
p256 = { version = "0.14", features = ["ecdsa"] }
3636
base64 = "0.22"

conformance/src/bin/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ fn openssl_free_ec_sign(pem: &str, client_id: &str, audience: &str) -> anyhow::R
671671
let signing_input = format!("{}.{}", header, payload);
672672

673673
// Sign with p256
674-
let secret_key = p256::ecdsa::SigningKey::from_bytes(raw_key.as_slice().into())
674+
let secret_key = p256::ecdsa::SigningKey::from_slice(raw_key.as_slice())
675675
.map_err(|e| anyhow::anyhow!("Invalid EC key: {}", e))?;
676676
use p256::ecdsa::signature::Signer;
677677
let sig: p256::ecdsa::Signature = secret_key.sign(signing_input.as_bytes());

0 commit comments

Comments
 (0)