-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
156 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
"secp", | ||
"secp256k1", | ||
"ssse", | ||
"struct", | ||
"symm", | ||
"typenum" | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Changelog | ||
|
||
## 0.2.1 ~ 0.2.4 | ||
|
||
- Add configuration for more compatibility | ||
- Revamp error handling | ||
- Migrate to edition 2021 | ||
- Bump dependencies | ||
|
||
## 0.2.0 | ||
|
||
- Revamp documentation | ||
- Optional pure Rust AES backend | ||
- WASM compatibility | ||
|
||
## 0.1.1 ~ 0.1.5 | ||
|
||
- Bump dependencies | ||
- Update documentation | ||
- Fix error handling | ||
|
||
## 0.1.0 | ||
|
||
- First beta version release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
pub use libsecp256k1::util::{COMPRESSED_PUBLIC_KEY_SIZE, FULL_PUBLIC_KEY_SIZE as UNCOMPRESSED_PUBLIC_KEY_SIZE}; | ||
|
||
/// AES IV/nonce length | ||
pub const AES_IV_LENGTH: usize = 16; | ||
/// AES tag length | ||
pub const AES_TAG_LENGTH: usize = 16; | ||
/// AES IV + tag length | ||
pub const AES_IV_PLUS_TAG_LENGTH: usize = AES_IV_LENGTH + AES_TAG_LENGTH; | ||
/// AES nonce length | ||
#[cfg(not(feature = "aes_12bytes_nonce"))] | ||
pub const AES_NONCE_LENGTH: usize = 16; | ||
#[cfg(feature = "aes_12bytes_nonce")] | ||
pub const AES_NONCE_LENGTH: usize = 12; | ||
|
||
/// AEAD tag length | ||
pub const AEAD_TAG_LENGTH: usize = 16; | ||
|
||
/// Nonce and tag length | ||
pub const NONCE_TAG_LENGTH: usize = AES_NONCE_LENGTH + AEAD_TAG_LENGTH; | ||
|
||
/// Empty bytes array | ||
pub const EMPTY_BYTES: [u8; 0] = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.