feat: finish S-Box substitution

This commit is contained in:
2025-10-02 11:26:48 +03:00
parent b95c294a11
commit e777444583
2 changed files with 39 additions and 30 deletions

View File

@@ -30,7 +30,7 @@ pub const PC2_TABLE: [u8; 48] = [
pub const ROUND_ROTATIONS: [u8; 16] = [1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1];
/// Expansion permutation (32 to 48 bits).
pub const EXPANSION_TABLE: [u8; 48] = [
pub const E_BOX: [u8; 48] = [
32, 1, 2, 3, 4, 5, 4, 5, 6, 7, 8, 9, 8, 9, 10, 11, 12, 13, 12, 13, 14, 15, 16, 17, 16, 17, 18,
19, 20, 21, 20, 21, 22, 23, 24, 25, 24, 25, 26, 27, 28, 29, 28, 29, 30, 31, 32, 1,
];