mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-05 20:30:57 +00:00
Add a #[must_use] to the was_contributory check.
This commit is contained in:
parent
c13e102f95
commit
91babd286f
1 changed files with 1 additions and 0 deletions
|
|
@ -212,6 +212,7 @@ impl SharedSecret {
|
||||||
/// [relevant]: https://tools.ietf.org/html/rfc7748#page-15
|
/// [relevant]: https://tools.ietf.org/html/rfc7748#page-15
|
||||||
/// [public]: https://vnhacker.blogspot.com/2015/09/why-not-validating-curve25519-public.html
|
/// [public]: https://vnhacker.blogspot.com/2015/09/why-not-validating-curve25519-public.html
|
||||||
/// [discussions]: https://vnhacker.blogspot.com/2016/08/the-internet-of-broken-protocols.html
|
/// [discussions]: https://vnhacker.blogspot.com/2016/08/the-internet-of-broken-protocols.html
|
||||||
|
#[must_use]
|
||||||
pub fn was_contributory(&self) -> bool {
|
pub fn was_contributory(&self) -> bool {
|
||||||
!self.0.is_identity()
|
!self.0.is_identity()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue