diff --git a/oqs/src/macros.rs b/oqs/src/macros.rs index 1e3e3f59b6..baeb9c45cf 100644 --- a/oqs/src/macros.rs +++ b/oqs/src/macros.rs @@ -10,7 +10,7 @@ macro_rules! newtype_buffer { #[derive(Debug, Clone, PartialEq, Eq)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub struct $name { - bytes: Vec, + pub bytes: Vec, } impl $name { @@ -31,7 +31,7 @@ macro_rules! newtype_buffer { impl<'a> $name_ref<'a> { /// Construct a new container around this reference version - fn new(bytes: &'a [u8]) -> $name_ref<'a> { + pub fn new(bytes: &'a [u8]) -> $name_ref<'a> { $name_ref { bytes } }