@@ -163,7 +163,7 @@ pub trait VariableOutput: core::marker::Sized {
163
163
/// they have size of 2 and 3 words respectively.
164
164
#[ cfg( feature = "alloc" ) ]
165
165
#[ cfg_attr( docsrs, doc( cfg( feature = "alloc" ) ) ) ]
166
- fn finalize_box ( self ) -> Box < [ u8 ] > {
166
+ fn finalize_boxed ( self ) -> Box < [ u8 ] > {
167
167
let n = self . output_size ( ) ;
168
168
let mut buf = vec ! [ 0u8 ; n] . into_boxed_slice ( ) ;
169
169
self . finalize_variable ( |res| buf. copy_from_slice ( res) ) ;
@@ -185,7 +185,7 @@ pub trait XofReader {
185
185
/// they have size of 2 and 3 words respectively.
186
186
#[ cfg( feature = "alloc" ) ]
187
187
#[ cfg_attr( docsrs, doc( cfg( feature = "alloc" ) ) ) ]
188
- fn read_box ( & mut self , n : usize ) -> Box < [ u8 ] > {
188
+ fn read_boxed ( & mut self , n : usize ) -> Box < [ u8 ] > {
189
189
let mut buf = vec ! [ 0u8 ; n] . into_boxed_slice ( ) ;
190
190
self . read ( & mut buf) ;
191
191
buf
@@ -206,7 +206,7 @@ pub trait ExtendableOutput: core::marker::Sized {
206
206
/// they have size of 2 and 3 words respectively.
207
207
#[ cfg( feature = "alloc" ) ]
208
208
#[ cfg_attr( docsrs, doc( cfg( feature = "alloc" ) ) ) ]
209
- fn finalize_box ( self , n : usize ) -> Box < [ u8 ] > {
209
+ fn finalize_boxed ( self , n : usize ) -> Box < [ u8 ] > {
210
210
let mut buf = vec ! [ 0u8 ; n] . into_boxed_slice ( ) ;
211
211
self . finalize_xof ( ) . read ( & mut buf) ;
212
212
buf
0 commit comments