1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-31 09:24:31 +03:00

Moved some dependencies in the workspace and upgrade some dependencies

This commit is contained in:
Quentin Gliech
2024-03-19 12:44:32 +01:00
parent 099eabd137
commit d8f5fdaf5c
25 changed files with 501 additions and 474 deletions

View File

@ -36,5 +36,5 @@ mas-iana.workspace = true
mas-jose.workspace = true
[dev-dependencies]
insta = { version = "1.34.0", features = ["yaml"] }
insta = { version = "1.36.1", features = ["yaml"] }
rand_chacha = "0.3.1"

View File

@ -166,16 +166,16 @@ fn generate_sign_and_verify() {
let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(42);
let rsa = PrivateKey::generate_rsa(&mut rng).expect("Failed to generate RSA key");
insta::assert_snapshot!(rsa.to_pem(LineEnding::LF).unwrap());
insta::assert_snapshot!(&*rsa.to_pem(LineEnding::LF).unwrap());
let ec_p256 = PrivateKey::generate_ec_p256(&mut rng);
insta::assert_snapshot!(ec_p256.to_pem(LineEnding::LF).unwrap());
insta::assert_snapshot!(&*ec_p256.to_pem(LineEnding::LF).unwrap());
let ec_p384 = PrivateKey::generate_ec_p384(&mut rng);
insta::assert_snapshot!(ec_p384.to_pem(LineEnding::LF).unwrap());
insta::assert_snapshot!(&*ec_p384.to_pem(LineEnding::LF).unwrap());
let ec_k256 = PrivateKey::generate_ec_k256(&mut rng);
insta::assert_snapshot!(ec_k256.to_pem(LineEnding::LF).unwrap());
insta::assert_snapshot!(&*ec_k256.to_pem(LineEnding::LF).unwrap());
// Create a keystore out of the keys
let keyset = Keystore::new(JsonWebKeySet::new(vec![