Skip to content

Commit e45afaa

Browse files
authored
bump up version to 0.7.0 (#31)
The minor version is bumped because we are introducing a new API to change auto_padding. This is not a breaking change though.
1 parent 2e0e7ba commit e45afaa

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
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+
16
# Version 0.6.5
27
- Handles empty data gracefully in unpad() (#22)
38
- Fix build warnings in recent Rust 1.69 (#23)

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libaes"
3-
version = "0.6.5"
3+
version = "0.7.0"
44
authors = ["Han Xu <[email protected]>"]
55
edition = "2018"
66
description = "AES cipher in safe Rust with no dependencies"

src/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,11 @@ impl Cipher {
163163
}
164164
}
165165

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.
168171
pub fn set_auto_padding(&mut self, auto_padding: bool) {
169172
self.auto_padding = auto_padding;
170173
}

0 commit comments

Comments
 (0)