mirror of
https://github.com/kristoferssolo/des-rs.git
synced 2026-02-25 04:58:17 +00:00
feat: finish P-Box permutation implementation
This commit is contained in:
@@ -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,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user