Skip to content

Commit

Permalink
bump up version to 0.7.0 (#31)
Browse files Browse the repository at this point in the history
The minor version is bumped because we are introducing a new API to change auto_padding. This is not a breaking change though.
  • Loading branch information
keepsimple1 authored Oct 1, 2023
1 parent 2e0e7ba commit e45afaa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Version 0.7.0
No breaking changes. Bumped the minor version because of a new API of padding.

- support changing auto_padding setting in CBC mode (#30)

# Version 0.6.5
- Handles empty data gracefully in unpad() (#22)
- Fix build warnings in recent Rust 1.69 (#23)
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "libaes"
version = "0.6.5"
version = "0.7.0"
authors = ["Han Xu <[email protected]>"]
edition = "2018"
description = "AES cipher in safe Rust with no dependencies"
Expand Down
7 changes: 5 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,11 @@ impl Cipher {
}
}

/// Changes the `auto_padding` setting of the cipher. Used in CBC mode.
/// Note that `auto_padding` is ignored in CFB mode.
/// Changes the `auto_padding` setting of the cipher. The default value is `true`.
///
/// When setting it to `false`, the input data of CBC encryption must be multiple of `AES_BLOCK_SIZE`.
///
/// And note that `auto_padding` is ignored in CFB mode.
pub fn set_auto_padding(&mut self, auto_padding: bool) {
self.auto_padding = auto_padding;
}
Expand Down

0 comments on commit e45afaa

Please sign in to comment.