aboutsummaryrefslogtreecommitdiffhomepage
path: root/oxish-proto/src/key_exchange.rs
diff options
context:
space:
mode:
Diffstat (limited to 'oxish-proto/src/key_exchange.rs')
-rw-r--r--oxish-proto/src/key_exchange.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/oxish-proto/src/key_exchange.rs b/oxish-proto/src/key_exchange.rs
index 17b056e..608dd29 100644
--- a/oxish-proto/src/key_exchange.rs
+++ b/oxish-proto/src/key_exchange.rs
@@ -624,7 +624,7 @@ impl Encode for TaggedSignature<'_> {
///
/// Leading zero bytes are stripped, and a single zero byte is prepended when the
/// most significant bit is set so the value is interpreted as positive.
-fn encode_mpint(value: &[u8], buf: &mut Vec<u8>) {
+pub(crate) fn encode_mpint(value: &[u8], buf: &mut Vec<u8>) {
let trimmed = match value.iter().position(|&b| b != 0) {
Some(first) => &value[first..],
None => &[],