// SPDX-License-Identifier: MIT-0 // // Fixtures shared by the integration-test crates (tests/*.rs). The unit // tests inside src/ cannot reach this module and keep their own copies. // Each test crate compiles its own copy of this module and not every crate // uses every fixture, so the dead-code lint misfires here. #![allow(dead_code)] use fcry::SecretBytes32; /// The raw 32-byte key used by all integration tests. pub const KEY: &[u8; 32] = b"0123456789abcdef0123456789abcdef"; /// [`KEY`] wrapped in the `SecretBytes32` the library API takes. pub fn test_key() -> SecretBytes32 { let mut key = SecretBytes32::zeroed(); key.with_mut_array(|key| key.copy_from_slice(KEY)); key }