Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# ---------------------------------------------------------------------------
# Stage 1: Build the release binary
# ---------------------------------------------------------------------------
FROM rust:1.95-bookworm AS builder
FROM rust:1.97-bookworm AS builder

# Install build dependencies for aws-lc-rs (used by rustls).
RUN apt-get update && apt-get install -y --no-install-recommends \
Expand Down
4 changes: 2 additions & 2 deletions crates/stealthos-crypto/src/identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ impl HostIdentity {
use blake2::digest::Update;
use blake2::digest::consts::U32;

debug_assert!(data.len() == 68);
debug_assert_eq!(data.len(), 68);

// Recompute MAC over magic || seed.
let mut hasher = Blake2b::<U32>::default();
Expand All @@ -365,7 +365,7 @@ impl HostIdentity {
use chacha20poly1305::aead::Aead;
use chacha20poly1305::{ChaCha20Poly1305, KeyInit, Nonce};

debug_assert!(data.len() == 85);
debug_assert_eq!(data.len(), 85);

// Verify sentinel to help distinguish wrong passphrase from corruption.
if &data[81..85] != b"DONE" {
Expand Down