Skip to content

Commit

Permalink
rustdoc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hko-s committed May 16, 2024
1 parent 9030fb5 commit bd522c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/crypto/ecdh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,31 @@ const ANON_SENDER: [u8; 20] = [
/// Secret key for ECDH
#[derive(Clone, PartialEq, Eq, Zeroize, ZeroizeOnDrop)]
pub enum SecretKey {
// ECDH with Curve25519
/// ECDH with Curve25519
Curve25519 {
/// The secret point.
secret: [u8; ECCCurve::Curve25519.secret_key_length()],
hash: HashAlgorithm,
alg_sym: SymmetricKeyAlgorithm,
},

// ECDH with Nist P256
/// ECDH with Nist P256
P256 {
/// The secret point.
secret: [u8; ECCCurve::P256.secret_key_length()],
hash: HashAlgorithm,
alg_sym: SymmetricKeyAlgorithm,
},

// ECDH with Nist P384
/// ECDH with Nist P384
P384 {
/// The secret point.
secret: [u8; ECCCurve::P384.secret_key_length()],
hash: HashAlgorithm,
alg_sym: SymmetricKeyAlgorithm,
},

// ECDH with Nist P521
/// ECDH with Nist P521
P521 {
/// The secret point.
secret: [u8; ECCCurve::P521.secret_key_length()],
Expand Down

0 comments on commit bd522c5

Please sign in to comment.