des_PurePy.constants module¶
Defines the various constants required for DES.
- des_PurePy.constants.des_ep()¶
Returns the expansion permutation table required for DES.
- Returns:
ep – A list of integers containing the expansion permutation table.
- Return type:
list[int]
- des_PurePy.constants.des_fp()¶
Returns the inverse initial permutation table required for DES.
- Returns:
fp – A list of integers containing the inverse initial permutation table.
- Return type:
list[int]
- des_PurePy.constants.des_ip()¶
Returns the initial permutation table required for DES.
- Returns:
ip – A list of integers containing the initial permutation table.
- Return type:
list[int]
- des_PurePy.constants.des_pc1()¶
Returns the permuted choice 1 table required for DES.
- Returns:
pc1 – A list of integers containing the contents of the PC1 table.
- Return type:
list[int]
- des_PurePy.constants.des_pc2()¶
Returns the permuted choice 2 table required for DES.
- Returns:
pc1 – A list of integers containing the contents of the PC2 table.
- Return type:
list[int]
- des_PurePy.constants.des_pf()¶
Returns the permutation function table required for DES.
- Returns:
pf – A list of integers containing the permutation function table.
- Return type:
list[int]
- des_PurePy.constants.des_sboxes()¶
Returns the s-boxes required for DES.
- Returns:
sboxes – A list of list of integers containing the 8 s-boxes.
- Return type:
list[list[int]]
- des_PurePy.constants.des_shifts()¶
Returns the left shifts schedule required for DES.
- Returns:
left_shifts – A list of integers containing the left shifts schedule.
- Return type:
list[int]