mirror of
https://github.com/mikedilger/nip44.git
synced 2026-07-04 05:57:29 +00:00
Update secp256k1 to 0.29, base64 to 0.22
This commit is contained in:
+3
-3
@@ -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
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user