refactor(key): improve secret_int! macro

This commit is contained in:
2025-10-17 20:35:40 +03:00
parent 2d59f4fb70
commit db52714d52
13 changed files with 221 additions and 232 deletions

View File

@@ -114,7 +114,7 @@ fn encrypt_decrypt_roundtrip(
#[case] expected_ciphertext: u64,
#[case] key: u64,
) {
let des = assert_ok!(Des::new(key), "Valid DES key");
let des = Des::new(key);
let ciphertext = assert_ok!(des.encrypt(&plaintext.to_be_bytes()));
let dectrypted = assert_ok!(des.decrypt(&ciphertext));