File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ pub(crate) mod fuzz_wrappers;
1515pub mod events;
1616pub mod errors;
1717pub mod ser;
18- pub mod zbase32;
1918pub mod message_signing;
2019
2120pub ( crate ) mod byte_utils;
2221pub ( crate ) mod chacha20;
22+ pub ( crate ) mod zbase32;
2323#[ cfg( not( feature = "fuzztarget" ) ) ]
2424pub ( crate ) mod poly1305;
2525pub ( crate ) mod chacha20poly1305rfc;
Original file line number Diff line number Diff line change 1111const ALPHABET : & ' static [ u8 ] = b"ybndrfg8ejkmcpqxot1uwisza345h769" ;
1212
1313/// Encodes some bytes as a zbase32 string
14- pub fn encode ( data : & [ u8 ] ) -> String {
14+ pub ( crate ) fn encode ( data : & [ u8 ] ) -> String {
1515 let mut ret = Vec :: with_capacity ( ( data. len ( ) + 4 ) / 5 * 8 ) ;
1616
1717 for chunk in data. chunks ( 5 ) {
@@ -50,7 +50,7 @@ const INV_ALPHABET: [i8; 43] = [
5050
5151/// Decodes a zbase32 string to the original bytes, failing if the string was not encoded by a
5252/// proper zbase32 encoder.
53- pub fn decode ( data : & str ) -> Result < Vec < u8 > , ( ) > {
53+ pub ( crate ) fn decode ( data : & str ) -> Result < Vec < u8 > , ( ) > {
5454 if !data. is_ascii ( ) {
5555 return Err ( ( ) ) ;
5656 }
You can’t perform that action at this time.
0 commit comments