File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change
1
+ # Version 0.7.0
2
+ No breaking changes. Bumped the minor version because of a new API of padding.
3
+
4
+ - support changing auto_padding setting in CBC mode (#30 )
5
+
1
6
# Version 0.6.5
2
7
- Handles empty data gracefully in unpad() (#22 )
3
8
- Fix build warnings in recent Rust 1.69 (#23 )
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " libaes"
3
- version = " 0.6.5 "
3
+ version = " 0.7.0 "
4
4
authors = [
" Han Xu <[email protected] >" ]
5
5
edition = " 2018"
6
6
description = " AES cipher in safe Rust with no dependencies"
Original file line number Diff line number Diff line change @@ -163,8 +163,11 @@ impl Cipher {
163
163
}
164
164
}
165
165
166
- /// Changes the `auto_padding` setting of the cipher. Used in CBC mode.
167
- /// Note that `auto_padding` is ignored in CFB mode.
166
+ /// Changes the `auto_padding` setting of the cipher. The default value is `true`.
167
+ ///
168
+ /// When setting it to `false`, the input data of CBC encryption must be multiple of `AES_BLOCK_SIZE`.
169
+ ///
170
+ /// And note that `auto_padding` is ignored in CFB mode.
168
171
pub fn set_auto_padding ( & mut self , auto_padding : bool ) {
169
172
self . auto_padding = auto_padding;
170
173
}
You can’t perform that action at this time.
0 commit comments