Skip to content

Commit 3e7919f

Browse files
Front-port #34 and release 0.3.1
1 parent ae7d8dd commit 3e7919f

3 files changed

Lines changed: 17 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,21 @@ SPDX-License-Identifier: CC0-1.0
77

88
## Unreleased
99

10+
## [v0.3.1][] (2025-10-14)
11+
12+
1013
- Update type-builder to 0.23
14+
- Close sessions after failed authentication attempt ([#35][])
15+
16+
[#35]: https://github.com/Nitrokey/se05x/pull/35
17+
[v0.3.1]: https://github.com/Nitrokey/se05x/releases/tag/v0.3.1
18+
19+
## [v0.2.1][] (2025-10-13)
20+
21+
- Close sessions after failed authentication attempt ([#34][])
22+
23+
[#34]: https://github.com/Nitrokey/se05x/pull/34
24+
[v0.2.1]: https://github.com/Nitrokey/se05x/releases/tag/v0.2.1
1125

1226
## [v0.3.0][] (2025-09-25)
1327

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[package]
55
name = "se05x"
6-
version = "0.3.0"
6+
version = "0.3.1"
77
authors = ["Nitrokey GmbH <info@nitrokey.com>"]
88

99
edition = "2021"

src/se05x.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,11 +366,13 @@ impl<Twi: I2CForT1, D: Delay> Se05X<Twi, D> {
366366
mac.update(&dda);
367367
let calculated_card_cryptogram: [u8; 16] = mac.finalize().into_bytes().into();
368368
if calculated_card_cryptogram[..8] != chal.se05x_challenge.card_cryptogram {
369+
use crate::se05x::commands::CloseSession;
369370
debug_now!(
370371
"{dda:02x?} {host_challenge:02x?} {:02x?} {:02x?} {calculated_card_cryptogram:02x?}",
371372
chal.se05x_challenge.card_challenge,
372373
chal.se05x_challenge.card_cryptogram
373374
);
375+
self.run_session_command(session_id, &CloseSession {}, &mut buf)?;
374376
return Ok(false);
375377
}
376378

0 commit comments

Comments
 (0)