File tree Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -45,14 +45,15 @@ jobs:
45
45
- 1.41.0 # MSRV
46
46
- stable
47
47
steps :
48
- - uses : actions/checkout@v1
49
- - uses : actions-rs/toolchain@v1
50
- with :
51
- profile : minimal
52
- toolchain : ${{ matrix.rust }}
53
- override : true
54
- - run : cargo test --no-default-features
55
- - run : cargo test
48
+ - uses : actions/checkout@v1
49
+ - uses : actions-rs/toolchain@v1
50
+ with :
51
+ profile : minimal
52
+ toolchain : ${{ matrix.rust }}
53
+ override : true
54
+ - run : cargo test --no-default-features
55
+ - run : cargo test
56
+ - run : cargo test --features reset
56
57
simd :
57
58
runs-on : ubuntu-latest
58
59
steps :
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
- ` Blake2b ` and ` Blake2s ` renamed into ` Blake2b512 ` and ` Blake2s256 ` respectively.
12
12
New ` Blake2b ` and ` Blake2s ` are generic over output size. ` VarBlake2b ` and ` VarBlake2s `
13
13
renamed into ` Blake2bVar ` and ` Blake2sVar ` respectively. ([ #217 ] )
14
+ - Hasher reset functionality moved behind a new non-default feature, ` reset ` .
15
+ This must be enabled to use the methods ` reset ` , ` finalize_reset ` and ` finalize_into_reset ` .
14
16
15
17
### Removed
16
18
- ` Blake2b ` and ` Blake2s ` no longer support MAC functionality. ([ #217 ] )
Original file line number Diff line number Diff line change @@ -404,7 +404,9 @@ macro_rules! blake2_mac_impl {
404
404
key_block,
405
405
..
406
406
} = self ;
407
- core. finalize_variable_core( buffer, out) ;
407
+ let mut full_res = Default :: default ( ) ;
408
+ core. finalize_variable_core( buffer, & mut full_res) ;
409
+ out. copy_from_slice( & full_res[ ..OutSize :: USIZE ] ) ;
408
410
core. reset( ) ;
409
411
* buffer = LazyBuffer :: new( key_block) ;
410
412
}
You can’t perform that action at this time.
0 commit comments