We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a818ea commit 4e87e6fCopy full SHA for 4e87e6f
src/ecdh.rs
@@ -61,6 +61,11 @@ impl SharedSecret {
61
self.len
62
}
63
64
+ /// True if the underlying data buffer is empty.
65
+ pub fn is_empty(&self) -> bool {
66
+ self.data.is_empty()
67
+ }
68
+
69
/// Set the length of the object.
70
pub(crate) fn set_len(&mut self, len: usize) {
71
debug_assert!(len <= self.data.len());
0 commit comments