Method and device for generating replacement table
The invention discloses a method and a device for generating a permutation table. The method comprises the following steps: acquiring an initial permutation table and a key; determining N key control words according to the key, wherein N is an integer greater than 1; m elements of the initial permut...
Saved in:
Main Authors | , , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
14.03.2023
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The invention discloses a method and a device for generating a permutation table. The method comprises the following steps: acquiring an initial permutation table and a key; determining N key control words according to the key, wherein N is an integer greater than 1; m elements of the initial permutation table are permuted according to the N key control words, a permuted permutation table is obtained, the permuted permutation table comprises the M elements and is used for cryptographic operation, and M is an integer smaller than or equal to N and larger than 1. According to the method, the replacement table corresponding to the key can be generated according to the key derivation result.
本申请公开了一种生成置换表的方法及装置,该方法包括:获取初始置换表和密钥;根据密钥确定N个密钥控制字,N为大于1的整数;根据N个密钥控制字将初始置换表的M个元素进行置换,获得置换后的置换表,置换后的置换表包括M个元素,置换后的置换表用于密码运算,M为小于或等于N且大于1的整数。该方法能够根据对密钥派生的结果生成所述密钥对应的一个置换表。 |
---|---|
Bibliography: | Application Number: CN202211404694 |