Skip to content

Commit

Permalink
Bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kigawas committed Mar 7, 2024
1 parent 7e5d7e8 commit fa662c7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ homepage = "https://ecies.org/rs/"
repository = "https://github.com/ecies/rs"

[dependencies]
hkdf = {version = "0.12.3", default-features = false}
hkdf = {version = "0.12.4", default-features = false}
sha2 = {version = "0.10.8", default-features = false}

# elliptic curves
libsecp256k1 = {version = "0.7.1", default-features = false, features = ["static-context"]}
# x25519-dalek = {version = "2.0.0", default-features = false, features = ["static_secrets"], optional = true}

# openssl aes
openssl = {version = "0.10.57", default-features = false, optional = true}
openssl = {version = "0.10.64", default-features = false, optional = true}

# pure rust aes
aes-gcm = {version = "0.10.3", default-features = false, optional = true}
Expand All @@ -38,7 +38,7 @@ typenum = {version = "1.17.0", default-features = false, optional = true}
chacha20poly1305 = {version = "0.10.1", default-features = false, optional = true}

# random number generator
getrandom = {version = "0.2.10", default-features = false}
getrandom = {version = "0.2.12", default-features = false}
rand_core = {version = "0.6.4", default-features = false, features = ["getrandom"]}

# configuration
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019-2023 Weiliang Li
Copyright (c) 2019-2024 Weiliang Li

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ pub struct Config {
}
```

If you set `is_ephemeral_key_compressed: true`, the payload would be like: `33 Bytes + AES` instead of `65 Bytes + AES`.
On `is_ephemeral_key_compressed: true`, the payload would be like: `33 Bytes + AES` instead of `65 Bytes + AES`.

If you set `is_hkdf_key_compressed: true`, the hkdf key would be derived from `ephemeral public key (compressed) + shared public key (compressed)` instead of `ephemeral public key (uncompressed) + shared public key (uncompressed)`.
On `is_hkdf_key_compressed: true`, the hkdf key would be derived from `ephemeral public key (compressed) + shared public key (compressed)` instead of `ephemeral public key (uncompressed) + shared public key (uncompressed)`.

```rust
use ecies::config::{Config, update_config};
Expand Down

0 comments on commit fa662c7

Please sign in to comment.