Update secp256k1 to 0.29, base64 to 0.22

This commit is contained in:
Mike Dilger
2024-04-26 13:24:02 +12:00
parent e6ab1bc448
commit 2e0396ac9c
2 changed files with 5 additions and 6 deletions
+3 -3
View File
@@ -10,17 +10,17 @@ readme = "README.md"
edition = "2021"
[dependencies]
base64 = "0.21"
base64 = "0.22"
chacha20 = "0.9"
constant_time_eq = "0.3"
hkdf = "0.12"
hmac = "0.12"
rand_core = { version = "0.6", features = [ "getrandom" ] }
secp256k1 = { version = "0.28" }
secp256k1 = { version = "0.29" }
sha2 = "0.10"
thiserror = "1.0"
[dev-dependencies]
hex = "0.4"
secp256k1 = { version = "0.28", features = [ "global-context" ] }
secp256k1 = { version = "0.29", features = [ "global-context" ] }
serde_json = "*"
+2 -3
View File
@@ -217,7 +217,7 @@ fn test_invalid_decrypt() {
let known_errors = [
Error::UnsupportedFutureVersion,
Error::UnknownVersion,
Error::Base64Decode(base64::DecodeError::InvalidLength),
Error::Base64Decode(base64::DecodeError::InvalidByte(2, 209)),
Error::InvalidMac,
Error::InvalidMac,
Error::InvalidPadding,
@@ -311,7 +311,7 @@ fn bench_encryption_inner() {
let encrypted = encrypt(&shared, &*message).unwrap();
let _decrypted = decrypt(&shared, &*encrypted).unwrap();
});
}
}
let elapsed = start.elapsed();
let total_nanos = elapsed.as_nanos();
let nanos_per_roundtrip = total_nanos / rounds as u128;
@@ -330,4 +330,3 @@ fn bench_encryption_inner() {
percharx10 % 10
);
}