From 87ae992962fd62c547b27769541b3fe679e38dda Mon Sep 17 00:00:00 2001 From: Weiliang Li Date: Fri, 8 Mar 2024 02:24:51 +0900 Subject: [PATCH] Bump dependencies --- .github/workflows/ci.yml | 2 +- Cargo.toml | 16 ++++++++-------- LICENSE | 2 +- README.md | 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be40c07..d80366b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - toolchain: ["1.69.0", stable, beta, nightly] + toolchain: ["1.73.0", stable, beta, nightly] steps: - uses: actions/checkout@v3 diff --git a/Cargo.toml b/Cargo.toml index e2bccce..3fe3666 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ 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 @@ -28,7 +28,7 @@ libsecp256k1 = {version = "0.7.1", default-features = false, features = ["static # 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} @@ -38,22 +38,22 @@ 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 -once_cell = {version = "1.18.0", default-features = false} +once_cell = {version = "1.19.0", default-features = false} parking_lot = "0.12.1" [target.'cfg(all(target_arch = "wasm32", target_os="unknown"))'.dependencies] # only for js (browser or node). if it's not js, like substrate, it won't build -getrandom = {version = "0.2.10", default-features = false, features = ["js"]} -once_cell = {version = "1.18.0", default-features = false, features = ["std"]} -wasm-bindgen = {version = "0.2.87", default-features = false} +getrandom = {version = "0.2.12", default-features = false, features = ["js"]} +once_cell = {version = "1.19.0", default-features = false, features = ["std"]} +wasm-bindgen = {version = "0.2.92", default-features = false} [target.'cfg(all(target_arch = "wasm32", not(target_os="unknown")))'.dependencies] # allows wasm32-wasi to build -once_cell = {version = "1.18.0", default-features = false, features = ["std"]} +once_cell = {version = "1.19.0", default-features = false, features = ["std"]} [features] default = ["openssl"] diff --git a/LICENSE b/LICENSE index d10073a..7dd28a7 100644 --- a/LICENSE +++ b/LICENSE @@ -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 diff --git a/README.md b/README.md index fd2c56f..a3ae930 100644 --- a/README.md +++ b/README.md @@ -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};