You've already forked authentication-service
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:
@ -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"
|
||||
|
@ -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![
|
||||
|
Reference in New Issue
Block a user