feat: finish P-Box permutation implementation

This commit is contained in:
2025-10-02 12:24:50 +03:00
parent e777444583
commit 384c96d36f
2 changed files with 23 additions and 18 deletions

View File

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