File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,8 @@ impl<T: VoprfParameters> CipherSuite for T
3939where
4040 T : Group ,
4141 T :: Hash : BlockSizeUser + Default + FixedOutput + HashMarker ,
42- <T :: Hash as OutputSizeUser >:: OutputSize : ArrayLength
43- + IsLess < U256 >
44- + IsLessOrEqual < <T :: Hash as BlockSizeUser >:: BlockSize > ,
42+ <T :: Hash as OutputSizeUser >:: OutputSize :
43+ ArrayLength + IsLess < U256 > + IsLessOrEqual < <T :: Hash as BlockSizeUser >:: BlockSize > ,
4544{
4645 const ID : & ' static str = T :: ID ;
4746
Original file line number Diff line number Diff line change @@ -442,9 +442,7 @@ pub(crate) fn server_evaluate_hash_input<CS: CipherSuite>(
442442 . chain_update ( info. as_ref ( ) ) ;
443443 }
444444 Ok ( hash
445- . chain_update (
446- i2osp_2 ( issued_element. as_slice ( ) . len ( ) ) . map_err ( |_| Error :: Input ) ?,
447- )
445+ . chain_update ( i2osp_2 ( issued_element. as_slice ( ) . len ( ) ) . map_err ( |_| Error :: Input ) ?)
448446 . chain_update ( issued_element)
449447 . chain_update ( STR_FINALIZE )
450448 . finalize ( ) )
Original file line number Diff line number Diff line change @@ -113,9 +113,7 @@ where
113113 fn serialize_scalar ( scalar : Self :: Scalar ) -> GenericArray < u8 , Self :: ScalarLen > {
114114 let bytes: FieldBytes < Self > = scalar. into ( ) ;
115115 let mut result = GenericArray :: < u8 , Self :: ScalarLen > :: default ( ) ;
116- result
117- . as_mut_slice ( )
118- . copy_from_slice ( bytes. as_ref ( ) ) ;
116+ result. as_mut_slice ( ) . copy_from_slice ( bytes. as_ref ( ) ) ;
119117 result
120118 }
121119
You can’t perform that action at this time.
0 commit comments