Skip to content

Commit

Permalink
Version 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
honzasp committed Jun 4, 2023
1 parent 548e3c4 commit 9a0b362
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Makiko changelog

## Unreleased
## 0.2.2 (2023-06-04)

- Replace the `guard` crate with (now stabilized) `let else` expressions
supported directly by the compiler. Fixes compatibility with Rust 1.70.0.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "makiko"
version = "0.2.2-pre"
version = "0.2.2"
edition = "2021"

authors = ["Jan Špaček <patek.mail@gmail.com>"]
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ And add the dependencies to Makiko and Tokio into your `Cargo.toml`:

```toml
[dependencies]
makiko = "0.2.1"
makiko = "0.2"
tokio = {version = "1.25", features = ["full"]}
```

Expand Down
2 changes: 1 addition & 1 deletion src/pubkey/ecdsa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ pub(super) fn decode_privkey<C: Curve>(blob: &mut PacketDecode) -> Result<EcdsaP
use typenum::Unsigned as _;
let secret_scalar = blob.get_scalar(elliptic_curve::FieldBytesSize::<C>::to_usize())?;
let secret_scalar = generic_array::GenericArray::from_slice(&secret_scalar);
let secret_key = elliptic_curve::SecretKey::<C>::from_bytes(&secret_scalar)
let secret_key = elliptic_curve::SecretKey::<C>::from_bytes(secret_scalar)
.map_err(|_| Error::Decode("ecdsa private key is invalid (bad bytes of private scalar)"))?;

if secret_key.public_key() != public_key {
Expand Down

0 comments on commit 9a0b362

Please sign in to comment.