Skip to content

Commit

Permalink
Add ring::agreement::EphemeralPrivateKey::algorithm().
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Sep 19, 2016
1 parent 77c8c80 commit 7d18737
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions libssh
Submodule libssh added at dbf72f
4 changes: 4 additions & 0 deletions src/agreement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ impl<'a> EphemeralPrivateKey {
}
}

/// The key exchange algorithm.
#[inline]
pub fn algorithm(&self) -> &'static Algorithm { self.alg }

/// The size in bytes of the encoded public key.
#[inline(always)]
pub fn public_key_len(&self) -> usize { self.alg.i.public_key_len }
Expand Down

2 comments on commit 7d18737

@djc
Copy link
Contributor

@djc djc commented on 7d18737 Sep 21, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was the addition of the libssh submodule here intentional?

@briansmith
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was the addition of the libssh submodule here intentional?

No, it sure wasn't! And, because of licensing reasons, I had to strip it from the repo completely. Sorry for this inconvenience.

Please sign in to comment.