You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-08-07 17:03:01 +03:00
Bump Rust dependencies
This commit is contained in:
@@ -59,17 +59,17 @@ pub enum AsymmetricSigningKey {
|
||||
impl AsymmetricSigningKey {
|
||||
#[must_use]
|
||||
pub fn rs256(key: rsa::RsaPrivateKey) -> Self {
|
||||
Self::Rs256(rsa::pkcs1v15::SigningKey::new_with_prefix(key))
|
||||
Self::Rs256(rsa::pkcs1v15::SigningKey::new(key))
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn rs384(key: rsa::RsaPrivateKey) -> Self {
|
||||
Self::Rs384(rsa::pkcs1v15::SigningKey::new_with_prefix(key))
|
||||
Self::Rs384(rsa::pkcs1v15::SigningKey::new(key))
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn rs512(key: rsa::RsaPrivateKey) -> Self {
|
||||
Self::Rs512(rsa::pkcs1v15::SigningKey::new_with_prefix(key))
|
||||
Self::Rs512(rsa::pkcs1v15::SigningKey::new(key))
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
@@ -277,17 +277,17 @@ pub enum AsymmetricVerifyingKey {
|
||||
impl AsymmetricVerifyingKey {
|
||||
#[must_use]
|
||||
pub fn rs256(key: rsa::RsaPublicKey) -> Self {
|
||||
Self::Rs256(rsa::pkcs1v15::VerifyingKey::new_with_prefix(key))
|
||||
Self::Rs256(rsa::pkcs1v15::VerifyingKey::new(key))
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn rs384(key: rsa::RsaPublicKey) -> Self {
|
||||
Self::Rs384(rsa::pkcs1v15::VerifyingKey::new_with_prefix(key))
|
||||
Self::Rs384(rsa::pkcs1v15::VerifyingKey::new(key))
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn rs512(key: rsa::RsaPublicKey) -> Self {
|
||||
Self::Rs512(rsa::pkcs1v15::VerifyingKey::new_with_prefix(key))
|
||||
Self::Rs512(rsa::pkcs1v15::VerifyingKey::new(key))
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
|
@@ -181,7 +181,7 @@ impl OkpPublicParameters {
|
||||
}
|
||||
|
||||
mod rsa_impls {
|
||||
use rsa::{BigUint, PublicKeyParts, RsaPublicKey};
|
||||
use rsa::{traits::PublicKeyParts, BigUint, RsaPublicKey};
|
||||
|
||||
use super::{JsonWebKeyPublicParameters, RsaPublicParameters};
|
||||
|
||||
|
Reference in New Issue
Block a user