Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Diane Huxley committed Aug 21, 2024
1 parent 43b2094 commit ac0ce3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/web5/src/crypto/dsa/x25519.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use base64::{engine::general_purpose, Engine as _};
use x25519_dalek::{StaticSecret, PublicKey};
use x25519_dalek::{PublicKey, StaticSecret};

use super::{DsaError, Result};
use crate::crypto::jwk::Jwk;
Expand Down Expand Up @@ -104,7 +104,7 @@ mod tests {
let decoded_private_key_bytes = general_purpose::URL_SAFE_NO_PAD
.decode(private_key_bytes)
.expect("Failed to decode private key");
assert_eq!(decoded_private_key_bytes.len(), 32); // X25519 private key length
assert_eq!(decoded_private_key_bytes.len(), PUBLIC_KEY_LENGTH);
}
}
}
}

0 comments on commit ac0ce3a

Please sign in to comment.