// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (C) 2026 the QSO Graph Trust contributors (see AUTHORS). Part of QSO Graph Trust; see LICENSE.
//! Best-effort overwrite of returned provider frames, in addition to wiping owned buffers.
use Zeroize;
// Keep the operation in a separate frame, returned before the scrub. Results containing secrets
// must own wiped heap storage, never inline secret arrays. Typed errors take the same path.
pub
// This covers 64 KiB below this frame on the current thread. Safe Rust cannot promise an exact
// overlap with earlier frames, erase registers, other threads, live callers or deeper frames.
// The Linux custody test measures the supported builds, including the AES-NI-disabled path.