diff --git a/slh-dsa/src/address.rs b/slh-dsa/src/address.rs index 7c1bfc53..b62448af 100644 --- a/slh-dsa/src/address.rs +++ b/slh-dsa/src/address.rs @@ -20,7 +20,6 @@ use typenum::U22; use zerocopy::byteorder::big_endian::{U32, U64}; use zerocopy::AsBytes; -use zerocopy_derive::AsBytes; /// `Address` represents a hash address as defined by FIPS-205 section 4.2 pub trait Address: AsRef<[u8]> { @@ -40,7 +39,7 @@ pub trait Address: AsRef<[u8]> { } } -#[derive(Clone, AsBytes)] +#[derive(Clone, zerocopy_derive::AsBytes)] #[repr(C)] pub struct WotsHash { pub layer_adrs: U32, @@ -52,7 +51,7 @@ pub struct WotsHash { pub hash_adrs: U32, } -#[derive(Clone, AsBytes)] +#[derive(Clone, zerocopy_derive::AsBytes)] #[repr(C)] pub struct WotsPk { pub layer_adrs: U32, @@ -63,7 +62,7 @@ pub struct WotsPk { padding: U64, // 0 } -#[derive(Clone, AsBytes)] +#[derive(Clone, zerocopy_derive::AsBytes)] #[repr(C)] pub struct HashTree { pub layer_adrs: U32, @@ -75,7 +74,7 @@ pub struct HashTree { pub tree_index: U32, } -#[derive(Clone, AsBytes)] +#[derive(Clone, zerocopy_derive::AsBytes)] #[repr(C)] pub struct ForsTree { layer_adrs: U32, // 0 @@ -87,7 +86,7 @@ pub struct ForsTree { pub tree_index: U32, } -#[derive(Clone, AsBytes)] +#[derive(Clone, zerocopy_derive::AsBytes)] #[repr(C)] pub struct ForsRoots { layer_adrs: U32, // 0 @@ -98,7 +97,7 @@ pub struct ForsRoots { padding: U64, // 0 } -#[derive(Clone, AsBytes)] +#[derive(Clone, zerocopy_derive::AsBytes)] #[repr(C)] pub struct WotsPrf { pub layer_adrs: U32, @@ -110,7 +109,7 @@ pub struct WotsPrf { hash_adrs: U32, // 0 } -#[derive(Clone, AsBytes)] +#[derive(Clone, zerocopy_derive::AsBytes)] #[repr(C)] pub struct ForsPrf { layer_adrs: U32, // 0