The invention discloses a lightweight cryptographic
algorithm SCENERY implementation method, a lightweight cryptographic
algorithm SCENERY implementation device and a storage medium. The method comprises the steps that a
plaintext to be encrypted is acquired, IP1 initial replacement, a
round function, key expansion and IP2 replacement are carried out in sequence, the
round function comprises sequentially carrying out round key addition operation,
S box replacement and M matrix replacement on data, and the key expansion comprises sequentially carrying out
S box replacement, cyclic left shift, round constant addition operation and DP dynamic replacement on a key. An F function of an SPN structure is adopted as a
round function, and a binary matrix M is constructed with the purpose of achieving high dependence when an F function
linear layer is designed; a round constant and a key expansion intermediate result are selected as control signals for key expansion; DP dynamic replacement is carried out on a current round key expansion intermediate result to obtain a round key, which is a new key expansion mode, the relevance of single key iteration to front wheel input is reduced, the decoding difficulty is increased, the security is improved, and differential and linear attacks and algebraic attacks can be particularly and effectively resisted.