Lightweight hash function construction method and device based on chaotic sponge structure, equipment, storage medium and program product

By constructing a lightweight hash function based on a chaotic sponge structure, the problem of resource constraints in IoT devices is solved, and an efficient and secure hash function design is achieved, which is suitable for IoT devices.

CN121173449BActive Publication Date: 2026-11-20HUBEI UNIV OF ARTS & SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511043754.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-28
Publication Date
2026-11-20
Estimated Expiration
2045-07-28

AI Technical Summary

Technical Problem

Traditional cryptographic hash functions are not suitable for resource-constrained IoT devices, leading to security and efficiency issues.

Method used

A lightweight hash function based on a chaotic sponge structure is adopted, including an initialization phase, an absorption phase, and a squeezing phase. It utilizes a variable structure self-coupled 4D chaotic mapping and a dynamic replacement layer of the GFS II structure to construct a lightweight hash function through simple operations such as modular addition and bit shifting, avoiding complex components such as multipliers.

Benefits of technology

It reduces hardware implementation overhead, ensures security and resistance to collision attacks, supports rigorous cryptographic analysis, and is suitable for resource-constrained IoT environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121173449B_ABST
    Figure CN121173449B_ABST
Patent Text Reader

Abstract

The application discloses a lightweight hash function construction method and device based on a chaotic sponge structure, equipment, a storage medium and a program product, relates to the technical field of encryption algorithms, and the method comprises an initialization stage, an absorption stage and a squeezing stage. In the initialization stage, an input message is standardized and filled to obtain an initialization input sequence; in the absorption stage, the initialization input sequence is XORed with an external part of an internal state to obtain an XORed internal state; the XORed internal state is diffused through a dynamic replacement layer to obtain an absorbed internal state; and in the squeezing stage, the hash output is iteratively extracted based on the absorbed internal state. Since the lightweight hash function with the dynamic replacement layer is designed for low-resource implementation optimization, the hash function is instantiated using the sponge structure framework, the output length flexibility and the anti-collision attack capability are maintained, and strict password analysis is supported.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of encryption algorithm technology, and in particular to a method, apparatus, device, storage medium and program product for constructing lightweight hash functions based on chaotic sponge structure. Background Technology

[0002] The Internet of Things (IoT) represents a transformative technology that enables seamless connectivity between various smart devices and facilitates intelligent data exchange via the internet. The exponential growth in device interconnectivity and data volume presents profound security challenges to the IoT, with data integrity becoming a fundamental requirement for secure communication. Cryptographic hash functions, as basic security primitives, can convert variable-length inputs into fixed-size deterministic hash values. These primitives play a crucial role in ensuring message integrity, entity authentication, cryptographic verification, and protecting blockchain systems.

[0003] Traditional cryptographic hash functions (such as SHA-3) designed for general computing environments may not be suitable for resource-constrained IoT devices. These devices typically exhibit extreme limitations in terms of processing power, memory footprint, and energy consumption. Summary of the Invention

[0004] The main objective of this application is to provide a lightweight hash function construction method, apparatus, device, storage medium, and program product based on a chaotic sponge structure, aiming to solve the technical problem that traditional cryptographic hash functions are not applicable due to the resource constraints of Internet of Things (IoT) devices.

[0005] To achieve the above objectives, this application proposes a lightweight hash function construction method based on a chaotic sponge structure. The lightweight hash function includes an initialization phase, an absorption phase, and a squeezing phase. The lightweight hash function construction method based on a chaotic sponge structure includes: Initialization phase: The input message is standardized and padded to obtain the initial input sequence; Absorption phase: The initial input sequence is XORed with the external part of the internal state to obtain the XORed internal state; The internal state after XOR is diffused through a dynamic replacement layer to obtain the internal state after absorption. Squeezing phase: Iteratively extract hash output based on the internal state after absorption.

[0006] In one embodiment, the lightweight hash function includes a dynamic replacement layer and a permutation layer; The dynamic replacement layer is implemented based on a variable structure self-coupled 4D chaotic mapping, which is used to enhance nonlinear diffusion; The substitution layer is based on a linear transformation of GFS II, used to accelerate the overall diffusion process through structured bit shuffling.

[0007] In one embodiment, the expression for the variable structure self-coupled 4D chaotic mapping is: ; in, It is an n-dimensional state vector; It is a linear mapping, where A is an n-order coefficient matrix; (mod N) is the modulo operation, used to ensure that the system trajectory is bounded; the value of n is the same as the dimension of the chaotic mapping.

[0008] In one embodiment, the coefficient matrix A adopts a block diagonal structure, and the structure of the coefficient matrix A is as follows: ; The variable structure self-coupled 4D chaotic mapping ensures that the system has a positive Lyapunov exponent through the eigenvalues ​​of the structured coefficient matrix. The positive Lyapunov index With the eigenvalues ​​of the coefficient matrix The relation is: .

[0009] In one embodiment, the coefficient matrix consists of a first submatrix and a second submatrix on the main diagonal, wherein the first submatrix is ​​a 2×2 diagonal matrix corresponding to the first two dimensions, and the eigenvalues ​​of the first submatrix are determined by the diagonal elements; The second submatrix is ​​a 2×2 off-diagonal matrix corresponding to the last two dimensions, and the eigenvalues ​​of the second submatrix are obtained by solving a quadratic equation.

[0010] In one embodiment, the iterative equation for the variable structure self-coupled 4D chaotic mapping is: .

[0011] Furthermore, to achieve the above objectives, this application also proposes a lightweight hash function construction device based on a chaotic sponge structure. The lightweight hash function includes an initialization phase, an absorption phase, and a squeezing phase. The lightweight hash function construction device based on the chaotic sponge structure includes: The initialization module is used to normalize and pad the input message to obtain an initial input sequence; An absorption module is used to XOR the initialization input sequence with the external part of the internal state to obtain the XORed internal state. The absorption module is also used to diffuse the XORed internal state through a dynamic replacement layer to obtain the absorbed internal state. The squeezing module is used to iteratively extract the hash output based on the absorbed internal state.

[0012] Furthermore, to achieve the above objectives, this application also proposes a lightweight hash function construction device based on a chaotic sponge structure. The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. The computer program is configured to implement the steps of the lightweight hash function construction method based on a chaotic sponge structure as described above.

[0013] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the lightweight hash function construction method based on the chaotic sponge structure described above.

[0014] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the lightweight hash function construction method based on the chaotic sponge structure described above.

[0015] One or more technical solutions proposed in this application have at least the following technical effects: The lightweight hash function in this application includes an initialization phase, an absorption phase, and a squeezing phase. The initialization phase involves standardizing and padding the input message to obtain an initialization input sequence. The absorption phase involves XORing the initialization input sequence with the external part of the internal state to obtain the XORed internal state. A dynamic replacement layer then diffuses the XORed internal state to obtain the absorbed internal state. The squeezing phase iteratively extracts the hash output based on the absorbed internal state. This lightweight hash function, optimized for low-resource implementation and featuring a dynamic replacement layer, addresses the limitations of lightweight hash functions in IoT environments. By constructing a variable-structure self-coupled four-dimensional chaotic mapping and implementing it through simple operations such as modular addition and bitwise shifting, the use of complex components like multipliers is avoided, reducing the hardware implementation overhead of the lightweight hash function. The dynamic replacement layer, developed based on the aforementioned chaotic system and GFS II structure, has its security rooted in the principles of confusion and diffusion, ensuring the security of the replacement layer. Furthermore, a sponge-structure framework is used to instantiate the hash function, maintaining output length flexibility and resistance to collision attacks while supporting rigorous cryptanalysis. Attached Figure Description

[0016] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0017] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a flowchart illustrating an embodiment of the lightweight hash function construction method based on a chaotic sponge structure provided in this application. Figure 2 This is a schematic diagram of the three stages of the lightweight hash function based on the chaotic sponge structure in this application; Figure 3 This is a schematic diagram of the dynamic replacement layer structure based on the lightweight hash function of the chaotic sponge structure in this application; Figure 4 This is a schematic diagram of the module structure of a lightweight hash function construction device based on a chaotic sponge structure according to an embodiment of this application; Figure 5 This is a schematic diagram of the device structure of the hardware operating environment involved in the lightweight hash function construction method based on the chaotic sponge structure in the embodiments of this application.

[0019] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0020] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.

[0021] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0022] The main solution of this application embodiment is: a lightweight hash function including an initialization phase, an absorption phase, and a squeezing phase. Initialization phase: The input message is normalized and padded to obtain an initialization input sequence; Absorption phase: The initialization input sequence is XORed with the external part of the internal state to obtain the XORed internal state; The XORed internal state is diffused through a dynamic replacement layer to obtain the absorbed internal state; Squeezing phase: The hash output is iteratively extracted based on the absorbed internal state.

[0023] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a computer, server, or other encryption device, or an electronic device or virtual device capable of implementing the above functions. The following description uses a lightweight hash function construction device based on a chaotic sponge structure (hereinafter referred to as the construction device) as an example to illustrate this embodiment and the following embodiments.

[0024] Based on this, embodiments of this application provide a lightweight hash function construction method based on a chaotic sponge structure, referring to... Figure 1 , Figure 1 This is a flowchart illustrating an embodiment of the lightweight hash function construction method based on a chaotic sponge structure provided in this application.

[0025] In this embodiment, the lightweight hash function includes an initialization phase, an absorption phase, and a squeezing phase. The lightweight hash function construction method based on the chaotic sponge structure includes steps S10~S40: In the initialization phase: Step S10, the input message is standardized and padded to obtain the initialization input sequence.

[0026] It's important to note that the sponge design architecture is a general framework for constructing cryptographic primitives such as hash functions, stream ciphers, and message authentication codes. The core idea of ​​the sponge design architecture originates from the process of a sponge absorbing and squeezing liquid, utilizing a Substitution-Permutation Network (SPN) to achieve efficient diffusion and low-cost implementation. In the sponge design architecture, the substitution layer (typically implemented as an S-box) plays a crucial role as the sole non-linear component in establishing diffusion and confusion properties. Examples of such hash functions include Ascon-Hash, Xoodyak, Photon-Beetle-Hash, SPARKLE, SPONGENT, and Gimli-Hash.

[0027] In some embodiments of this application, the substitution layer (S-box), as the only non-linear component in the cryptographic hash function, plays a crucial role in achieving diffusion and confusion properties (which are key to algorithm security). Although the static S-box (i.e., the static substitution layer) used in standards such as AES and SM4 exhibits high non-linearity (112 bits for AES), such static S-boxes have some weaknesses, such as fixed points, inverse fixed points, and short iterative periodic cycles. The fundamental limitation of the static substitution layer is its fixed structural repetition in each round. Since invariant transformations can be used for cryptanalysis, this repetition introduces predictable patterns susceptible to cryptanalysis.

[0028] In some embodiments of this application, a dynamic replacement layer can be used as an alternative to a static replacement layer. In contrast, a dynamic replacement layer dynamically changes its structure in each permutation round, thereby eliminating fixed points and periodicity by continuously reshaping the nonlinear mapping and better resisting various cryptanalysis attacks.

[0029] In some embodiments of this application, the inherent characteristics of chaotic systems (including initial state sensitivity, unpredictability, and parameter controllability) are perfectly aligned with the requirements of cryptography for confusion and diffusion. Therefore, some embodiments of this application propose a lightweight hash function with a dynamic replacement layer optimized for low-resource implementation. This lightweight hash function follows three key steps: (1) Constructing a variable-structure self-coupled four-dimensional chaotic map and implementing it through simple operations such as modular addition and bitwise shifting, avoiding the use of complex components such as multipliers. (2) Developing a dynamic replacement layer based on the above-mentioned chaotic system and generalized Feistel structure, whose security is rooted in the principles of confusion and diffusion, ensuring the security of the dynamic replacement layer. (3) Instantiating the hash function using a sponge design structural framework, while maintaining output length flexibility and resistance to collision attacks, it supports strict cryptanalysis.

[0030] In this embodiment, the lightweight hash function with a dynamic replacement layer is designed (constructed) using a sponge-based framework to achieve efficient and verifiable security. Its structure can be as follows: Figure 2 As shown, Figure 2 This diagram illustrates the three stages of the lightweight hash function based on the chaotic sponge structure in this application.

[0031] In this embodiment, the dynamic permutation of the hash function operates on the 256-bit internal state through multiple iterative transformation rounds. This internal state can be divided into (256 / r) r-bit words (the value of r corresponds to the bit rate), where the first word serves as the outer part (i.e., the bit rate part, b). r The remaining (256 / r-1) words constitute the internal capacity portion (c p ).

[0032] It should be noted that the aforementioned iterative transformation wheel is the core of the absorption and extrusion stages in the sponge structure. It is used to process input data and generate safe data, and through multiple rounds of operation, it achieves data obfuscation and diffusion.

[0033] In this embodiment, the entire algorithm may include three phases: an initialization phase, an absorption phase, and a squash phase. In the initialization phase, the input message is normalized and padded, and divided into contiguous r-bit blocks. The internal state is initialized by concatenating an initialization vector with a series of padding bits to achieve a full 256-bit length. Subsequently, in the absorption phase, each message block is processed through iterative application of the permutation function G. This phase continues until all message blocks are completely absorbed into the internal state. In the squash phase, the permutation function is executed in an interleaved manner, sequentially extracting r-bit segments from the state to form the final hash output.

[0034] It should be noted that in cryptography, a permutation function can be a function that operates on binary bits or bytes, achieving data diffusion through complex permutation operations. By using permutation functions, it can be ensured that every change in the input data affects multiple output bits, thereby enhancing the security of the cryptographic system. This application does not restrict the specific permutation functions used or their applications; they can be selected according to actual needs.

[0035] In some embodiments of this application, during the initialization phase, the input message M is normalized and padded to ensure its length is a multiple of r bits. This follows a normalized padding scheme widely used in symmetric cryptography: appending a '1' followed by a sufficient number of '0' bits to achieve the desired length. Notably, the last 16 bits of the padded message are reserved for encoding the original message length, a key feature for mitigating length-expansion attacks. The processed message is then divided into contiguous r-bit blocks {m}. i} i=1 n This forms the initialization input sequence for the initialization phase. The value of n is related to the number of iterative transformation rounds, but this embodiment does not impose any limitations on it.

[0036] During the absorption phase: Step S20, the initialization input sequence is XORed with the external part of the internal state to obtain the XORed internal state; Step S30: The internal state after XOR is diffused through a dynamic replacement layer to obtain the internal state after absorption.

[0037] Understandably, in a sponge design architecture, the internal state is a fixed-size binary array used to store and process data. The internal state can consist of two parts: an external part (i.e., the bit rate part) and an internal capacity part. The external part directly interacts with input / output, stores the currently processed message block, XORs it with the initialization input sequence during the absorption phase, and generates output data during the squeezing phase. The internal capacity part, as a storage area, does not directly participate in input / output, but can influence state updates through permutation functions / dynamic replacement layers. The larger the internal capacity, the stronger its resistance to attacks.

[0038] It should be noted that during the absorption phase, each incoming message block is first XORed with the r-bit external portion of the internal state (control bit rate), followed by iterative application of the dynamic replacement layer. By XORing the message box with the internal state, the initialization of the input sequence and the internal state can be achieved. The dynamic replacement layer enables the updating of the XORed internal state.

[0039] It should be explained that the dynamic replacement layer is the most critical component of the lightweight hash function because it completes the information compression and maximum diffusion of the input message block. The lightweight hash function in this embodiment adopts an iterative SPN structure. In order to achieve ideal cryptographic properties through efficient diffusion characteristics, the lightweight hash function in this embodiment includes two key components: (1) a dynamic replacement layer implemented using a variable structure self-coupled 4D chaotic mapping to enhance nonlinear diffusion; (2) a permutation layer using a linear transformation subject to GFS II (Generalized Feistel II) to accelerate the overall diffusion process through structured bit shuffling. That is, the lightweight hash function includes a dynamic replacement layer and a permutation layer; the dynamic replacement layer is implemented based on a variable structure self-coupled 4D chaotic mapping to enhance nonlinear diffusion; the permutation layer is implemented using a linear transformation subject to GFS II to accelerate the overall diffusion process through structured bit shuffling.

[0040] Understandably, diffusion and obfuscation are two core principles for building secure cryptographic systems. Diffusion refers to spreading the influence of each bit of the input data as widely as possible to multiple bits of the output data (ciphertext), thereby preventing attackers from deducing the plaintext or key by analyzing the statistical properties of the ciphertext, and ensuring that small changes in the plaintext or key lead to significant changes in the ciphertext. Obfuscation refers to making the relationship between the key and the ciphertext as complex and ambiguous as possible, making it difficult for attackers to deduce the key from the ciphertext, thus preventing attackers from reverse-engineering the key by analyzing the relationship between the ciphertext and plaintext. Through nonlinear transformations, the relationship between keys becomes difficult to describe with simple mathematical expressions.

[0041] In this embodiment, the dynamic replacement layer structure is as follows: Figure 3 As shown, Figure 3 This is a schematic diagram of the dynamic replacement layer structure based on the lightweight hash function of the chaotic sponge structure in this application.

[0042] Reference Figure 3 In this embodiment, the first step of the dynamic replacement layer is to divide the XORed internal state into eight 32-bit sub-blocks {s0, s1, ..., s7}. The even sub-blocks serve as the initial state inputs to the dynamic replacement layer for the four 1D chaotic maps of the variable-structure self-coupled 4D chaotic system. The resulting state of each 1D chaotic map is used as the even temporary internal sub-state s. i ', where i={0,2,4,6}. Variable structure self-coupled 4D chaotic systems exhibit extreme sensitivity to initial conditions, making the state unpredictable even under minute perturbations.

[0043] In the embodiments of this application, chaotic mapping also plays a dual role: (1) introducing complex nonlinear transformations to resist linear cryptanalysis; and (2) specifically serving as an integration and diffusion mechanism between odd-numbered sub-blocks during data processing. Through this dual function, not only is the overall confusion property of the cryptanalysis enhanced, but also the structured information dispersion is achieved. Figure 3 As shown, the temporary internal state {s1', s3', s5', s7'} of the odd-numbered sub-blocks is generated through a two-stage transformation process: (1) it is cyclically transformed with the previous temporary state s ' (i-1) mod 8 Perform 32-bit modulo addition; (2) with its subsequent temporary state s ' (i+1) mod 8 A bitwise XOR operation is performed. This dual-operation structure ensures that the input information undergoes both linear (modulo addition) and nonlinear (XOR) transformations, effectively propagating the initial entropy to the odd-indexed sub-states. Subsequently, a shuffle operation based on an octet GFS type II is used to generate the final internal state.

[0044] In the squeezing phase: step S40, iteratively extract the hash output based on the internal state after absorption.

[0045] It's important to note that during the initialization phase, the internal state can be initialized to a fixed value, thus eliminating potential security vulnerabilities and ensuring that each run starts from a known state, providing a foundation for data mixing during the absorption phase. In the absorption phase, the input data is divided into r-bit blocks, and each block is XORed with the external part of the internal state. The XORed state is then updated through a dynamic replacement layer, thus mixing the input data into the internal state and providing a basis for subsequent diffusion. During the squeezing phase, an r-bit block can be extracted from the updated internal state as output. By continuously updating the internal state, the randomness and unpredictability of the hash output are ensured.

[0046] In this embodiment of the application, the device can be constructed by iteratively extracting the outermost r-bit segment from the current internal state until it reaches the specified value. Each processing block obtains the required output length n to generate the hash output. After each extraction stage, the internal state undergoes a 12-stage permutation process, which can be represented as P. 12 .

[0047] The lightweight hash function in this application includes an initialization phase, an absorption phase, and a squeezing phase. The initialization phase involves standardizing and padding the input message to obtain an initialization input sequence. The absorption phase involves XORing the initialization input sequence with the external part of the internal state to obtain the XORed internal state. A dynamic replacement layer then diffuses the XORed internal state to obtain the absorbed internal state. The squeezing phase iteratively extracts the hash output based on the absorbed internal state. This lightweight hash function, optimized for low-resource implementation and featuring a dynamic replacement layer, addresses the limitations of lightweight hash functions in IoT environments. By constructing a variable-structure self-coupled four-dimensional chaotic mapping and implementing it through simple operations such as modular addition and bitwise shifting, the use of complex components like multipliers is avoided, reducing the hardware implementation overhead of the lightweight hash function. The dynamic replacement layer, developed based on the aforementioned chaotic system and GFS II structure, is securely rooted in the principles of confusion and diffusion, ensuring the security of the replacement layer. Furthermore, a sponge-structure framework is used to instantiate the hash function, maintaining output length flexibility and resistance to collision attacks while supporting rigorous cryptanalysis.

[0048] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in the first embodiment can be referred to the above description, and will not be repeated hereafter. Based on this, in this embodiment of the application, the expression for the variable structure self-coupled 4D chaotic mapping is: ; in, It is an n-dimensional state vector; It is a linear mapping, where A is an n-order coefficient matrix; (mod N) is the modulo operation, used to ensure that the system trajectory is bounded; the value of n is the same as the dimension of the chaotic mapping.

[0049] It should be noted that due to the inherent unpredictability and sensitivity to initial conditions, chaotic maps have become key components of cryptographic primitives. The security level of chaotic maps strongly depends on their chaotic performance. One-dimensional (1D) chaotic maps suffer from many drawbacks, such as low complexity and susceptibility to dynamic degradation. Therefore, higher-dimensional (HD) chaotic maps can be used to achieve superior chaotic performance and more complex structures.

[0050] It should be explained that the practical application of high-dimensional chaotic mappings in lightweight cryptography (LWC) faces key challenges: traditional high-dimensional chaotic mappings typically rely on floating-point operations and multiplication, which can lead to a significant increase in hardware resources and energy consumption in resource-constrained environments such as the Internet of Things. This application proposes an easily implementable lightweight hash function and uses a variable-structure self-mapping 4D chaotic system constructed using an n-dimensional non-degenerate chaotic system (nD-NDCS) construction method.

[0051] It should be noted that an n-dimensional chaotic system is a dynamical system with an n-dimensional state space, and its trajectory exhibits the characteristics of an n-dimensional non-degenerate chaotic system (nD-NDCS). Non-degeneracy means that the system does not degenerate into a lower-dimensional subsystem due to parameter or structural simplification; each dimension makes a substantial contribution to the chaotic behavior; and there are no invariant subspaces or redundant dimensions.

[0052] It should be explained that nD-NDCS can flexibly generate high-dimensional chaotic systems with specified Lyapunov exponents by controlling the eigenvalues ​​of the coefficient matrix. It has a simple structure, few control parameters, and does not require complex calculations, making it very suitable for resource-constrained scenarios. Through the structured design of the coefficient matrix, the system dimension can be adjusted and the chaotic characteristics can be controlled.

[0053] In some embodiments of this application, the general iterative equation for an n-dimensional nondegenerate chaotic system is expressed by equation (1): (1) in, It is an n-dimensional state vector; It is a linear mapping, where A is an n-order coefficient matrix; (mod N) is the modulo operation used to ensure that the system trajectory is bounded; the value of n is the same as the dimension of the chaotic mapping. For this application, a variable structure self-mapping 4D chaotic system (4D-NDCS) is designed, that is, n=4, so the state vector is (x1(i), x2(i), x3(i), x4(i)). T The system achieves four-dimensional chaotic behavior through the design of the coefficient matrix A.

[0054] In some embodiments of this application, the coefficient matrix A of the 4D-NDCS can adopt a block diagonal structure to ensure that the eigenvalues ​​are controllable, thereby controlling the Lyapunov exponent. Specifically, the structure of the coefficient matrix A can be shown in the following equation (2): (2) It should be noted that the coefficient matrix A consists of two submatrices on the main diagonal (which can be designated as the first submatrix A1 and the second submatrix A4, respectively). A1 is a 2×2 diagonal matrix (corresponding to the first two dimensions), and its diagonal elements can be directly used as the eigenvalues ​​of the system; that is, the eigenvalues ​​of the first submatrix are determined by its diagonal elements. A4 is a 2×2 off-diagonal matrix (corresponding to the last two dimensions), and the eigenvalues ​​of the second submatrix can be obtained by solving a quadratic equation.

[0055] It should be explained that in the coefficient matrix A, the off-diagonal elements include: a 1,4 a 2,4 a 3,4 a 4,3Off-diagonal elements are used to couple dimensions, increasing system complexity. 4D-NDCS ensures the system has a positive Lyapunov exponent (LE) by structuring the eigenvalues ​​of the coefficient matrix A. In this embodiment, the Lyapunov exponent LE of the coefficient matrix... k With eigenvalue λ k The following relationship must be satisfied: ; in, Let be the eigenvalues ​​of the coefficient matrix A. A eigenvalue satisfies . When the value is greater than 1, the system exhibits a "non-degenerate hyperchaotic" state, meaning that all four dimensions have positive Lyapunov exponents.

[0056] In this embodiment, a variable-structure self-coupled four-dimensional chaotic map is constructed and implemented through simple operations such as modular addition and bit shifting, which avoids the use of complex components such as multipliers and reduces the hardware implementation overhead of the lightweight hash function.

[0057] Based on the first and / or second embodiments of this application, in the third embodiment of this application, the content that is the same as or similar to the first and / or second embodiments described above can be referred to the above description, and will not be repeated hereafter.

[0058] In this embodiment of the application, the block structure of the coefficient matrix A has the following constraints: 1. Eigenvalue constraints of the first submatrix A1: Since A1 is a diagonal matrix, its eigenvalues... Determined directly by the diagonal elements: = , = The following conditions must be met: >1, and >1.

[0059] 2. Eigenvalue constraints of the second submatrix A4, where A4 is a 2×2 off-diagonal matrix, and its eigenvalues ​​are obtained by solving a quadratic equation: ; The roots of this quadratic equation must satisfy... >1 and >1, the equivalent conditions are as follows:

[0060] This eigenvalue constraint design ensures that the system possesses four positive Lyapunov exponents (LEs) while maintaining low parameter complexity. The specific 4D-NDCS iterative equation is shown in Equation 3, which achieves all positive Lyapunov exponents (LEs) through a fixed coefficient matrix: (3) In some embodiments of this application, since the coupling relationship between dimensions in the original equation is fixed (e.g., x1, x2, x3 are all coupled with x4), the regularity of the sequence may be enhanced. In order to overcome this limitation, the variable structure self-mapping mechanism of this application also introduces a cyclic permutation matrix to dynamically adjust the coupling order of the state dimensions. The expression of the cyclic permutation matrix can be shown as follows (4): (4) The core features of this variable structure self-mapping mechanism include: 1. Cyclic permutation operation: a single permutation transforms the state vector... T Mapped to T , to achieve a circular left shift between dimensions. 2. Dynamic power generation: The power t can be calculated in real time through state variables. The specific steps are as follows: (1) Feature bit extraction: Extract the 7th and 15th binary values ​​from x4(i), k8=x4(i)[7], k9=x4(i)

[15] where x4(i)(m) represents the mth binary value (0 or 1) of x4(i). (2) Logical operation synthesis: Generate the power t through current combination, t=2k8+k9 This design enables the behavior of the cyclic permutation matrix B to change dynamically with the system state, effectively breaking the fixed iteration pattern. 3. Chaos Enhancement Effect: 3. By dynamically adjusting the dimensional coupling order, the unpredictability of chaotic sequences is significantly improved while keeping the core system parameters (such as the Lyapunov exponent) and hardware resource consumption constant.

[0061] This application embodiment achieves cyclic left shift between dimensions through a variable structure self-mapping mechanism. By dynamically adjusting the dimensional coupling order, it significantly improves the unpredictability of chaos and reduces the regularity of the sequence while keeping the core system parameters and hardware resource consumption unchanged.

[0062] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the lightweight hash function construction method based on the chaotic sponge structure of this application. Any simple transformations based on this technical concept are within the protection scope of this application.

[0063] This application also provides a lightweight hash function construction device based on a chaotic sponge structure. Please refer to [link / reference]. Figure 4 , Figure 4 This is a schematic diagram of the module structure of a lightweight hash function construction device based on a chaotic sponge structure according to an embodiment of this application. The lightweight hash function includes an initialization phase, an absorption phase, and a squeezing phase. The lightweight hash function construction device based on a chaotic sponge structure includes: Initialization module 10 is used to normalize and padded the input message to obtain an initialization input sequence; Absorption module 20 is used to XOR the initialization input sequence with the external part of the internal state to obtain the XORed internal state; The absorption module 20 is also used to diffuse the XORed internal state through a dynamic replacement layer to obtain the absorbed internal state. The squeezing module 30 is used to iteratively extract the hash output based on the absorbed internal state.

[0064] The lightweight hash function construction device based on a chaotic sponge structure provided in this application, employing the lightweight hash function construction method based on a chaotic sponge structure in the above embodiments, can solve the technical problem that traditional cryptographic hash functions are not applicable due to resource constraints in IoT devices. Compared with the prior art, the beneficial effects of the lightweight hash function construction device based on a chaotic sponge structure provided in this application are the same as those of the lightweight hash function construction method based on a chaotic sponge structure provided in the above embodiments, and other technical features in the lightweight hash function construction device based on a chaotic sponge structure are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0065] This application provides a lightweight hash function construction device based on a chaotic sponge structure. The lightweight hash function construction device based on a chaotic sponge structure includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the lightweight hash function construction method based on a chaotic sponge structure in the above embodiment 1.

[0066] The following is for reference. Figure 5 This document illustrates a structural schematic diagram of a lightweight hash function construction device based on a chaotic sponge structure suitable for implementing embodiments of this application. The lightweight hash function construction device based on a chaotic sponge structure in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 5 The lightweight hash function construction device based on the chaotic sponge structure shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0067] like Figure 5 As shown, the lightweight hash function construction device based on a chaotic sponge structure may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.) that can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 1002 or a program loaded from storage device 1003 into random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the lightweight hash function construction device based on the chaotic sponge structure. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the lightweight hash function construction device based on a chaotic sponge structure to communicate wirelessly or wiredly with other devices to exchange data. Although the figure shows a lightweight hash function construction device based on a chaotic sponge structure with various systems, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems can be implemented alternatively.

[0068] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0069] The lightweight hash function construction device based on a chaotic sponge structure provided in this application, employing the lightweight hash function construction method based on a chaotic sponge structure in the above embodiments, can solve the technical problem that traditional cryptographic hash functions are not applicable due to resource constraints in IoT devices. Compared with the prior art, the beneficial effects of the lightweight hash function construction device based on a chaotic sponge structure provided in this application are the same as those of the lightweight hash function construction method based on a chaotic sponge structure provided in the above embodiments, and other technical features in this lightweight hash function construction device based on a chaotic sponge structure are the same as those disclosed in the previous embodiment method, and will not be repeated here.

[0070] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0071] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0072] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the lightweight hash function construction method based on the chaotic sponge structure in the above embodiments.

[0073] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory, optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0074] The aforementioned computer-readable storage medium may be included in a lightweight hash function construction device based on a chaotic sponge structure; or it may exist independently and not assembled into a lightweight hash function construction device based on a chaotic sponge structure.

[0075] The aforementioned computer-readable storage medium carries one or more programs that, when executed by a lightweight hash function construction device based on a chaotic sponge structure, cause the lightweight hash function construction device based on a chaotic sponge structure to: Initialization phase: The input message is standardized and padded to obtain the initial input sequence; Absorption phase: The initial input sequence is XORed with the external part of the internal state to obtain the XORed internal state; The internal state after XOR is diffused through a dynamic replacement layer to obtain the internal state after absorption. Squeezing phase: Iteratively extract hash output based on the internal state after absorption.

[0076] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0077] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0078] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0079] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the aforementioned lightweight hash function construction method based on a chaotic sponge structure. This addresses the technical problem that traditional cryptographic hash functions are not applicable due to resource constraints in IoT devices. Compared to existing technologies, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the lightweight hash function construction method based on a chaotic sponge structure provided in the above embodiments, and will not be elaborated upon here.

[0080] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the lightweight hash function construction method based on the chaotic sponge structure described above.

[0081] The computer program product provided in this application can solve the technical problem that traditional cryptographic hash functions are not applicable due to the resource constraints of IoT devices. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the lightweight hash function construction method based on chaotic sponge structure provided in the above embodiments, and will not be repeated here.

[0082] The above description is only a part of the embodiments of this application and does not limit the scope of protection of this application. All equivalent structural transformations made under the technical concept of this application and using the content of this application specification and drawings, or direct / indirect applications in other related technical fields, are included in the scope of protection of this application.

Claims

1. A lightweight hash function construction method based on a chaotic sponge structure, characterized in that, The lightweight hash function includes an initialization phase, an absorption phase, and a squeezing phase; the method includes: Initialization phase: The input message is standardized and padded to obtain the initial input sequence; Absorption phase: The initial input sequence is XORed with the external part of the internal state to obtain the XORed internal state; The internal state after XOR is diffused through a dynamic replacement layer to obtain the internal state after absorption. Squeezing phase: Iteratively extract hash output based on the internal state after absorption; The lightweight hash function includes a dynamic replacement layer and a substitution layer; The dynamic replacement layer is implemented based on a variable structure self-coupled 4D chaotic mapping, which is used to enhance nonlinear diffusion; The replacement layer is based on a linear transformation of GFS II, used to accelerate the overall diffusion process through structured bit shuffling; The step of diffusing the XORed internal state through the dynamic replacement layer to obtain the absorbed internal state includes: The XORed internal state is divided into eight 32-bit sub-blocks; The even-numbered sub-blocks are used as the initial states of the four 1D chaotic maps of the variable structure self-coupled 4D chaotic map and input into the dynamic replacement layer to generate even temporary internal sub-states. The odd-numbered sub-blocks are cyclically added to the previous temporary state using a 32-bit modulo operation and then bitwise XORed with the next temporary state to generate the odd-temporal internal sub-states. The internal state after absorption is generated by using an eight-group GFSII-type shuffle operation.

2. The lightweight hash function construction method based on chaotic sponge structure as described in claim 1, characterized in that, The expression for the variable structure self-coupling 4D chaotic mapping is: ; in, It is an n-dimensional state vector; It is a linear mapping, where A is an n-order coefficient matrix and i is the number of iterations of the chaotic mapping; (mod N) is the modulus operation, where N is the modulus of the modulus operation, used to ensure that the system trajectory is bounded; the value of n is the same as the dimension of the chaotic mapping.

3. The lightweight hash function construction method based on chaotic sponge structure as described in claim 2, characterized in that, The coefficient matrix A adopts a block diagonal structure, and the structural formula of the coefficient matrix A is as follows: ; The variable structure self-coupled 4D chaotic mapping ensures that the system has a positive Lyapunov exponent through the eigenvalues ​​of the structured coefficient matrix. The positive Lyapunov index With the eigenvalues ​​of the coefficient matrix The relation is: 。 4. The lightweight hash function construction method based on chaotic sponge structure as described in claim 3, characterized in that, The coefficient matrix consists of a first submatrix and a second submatrix on the main diagonal, wherein the first submatrix is ​​a 2×2 diagonal matrix corresponding to the first two dimensions, and the eigenvalues ​​of the first submatrix are determined by the diagonal elements. The second submatrix is ​​a 2×2 off-diagonal matrix corresponding to the last two dimensions, and the eigenvalues ​​of the second submatrix are obtained by solving a quadratic equation.

5. The lightweight hash function construction method based on chaotic sponge structure as described in claim 4, characterized in that, The iterative equation for the variable structure self-coupled 4D chaotic mapping is: 。 6. A lightweight hash function construction device based on a chaotic sponge structure, characterized in that, The lightweight hash function includes an initialization phase, an absorption phase, and a squeezing phase. The lightweight hash function construction device based on the chaotic sponge structure includes: The initialization module is used to normalize and pad the input message to obtain an initial input sequence; An absorption module is used to XOR the initialization input sequence with the external part of the internal state to obtain the XORed internal state. The absorption module is also used to diffuse the XORed internal state through a dynamic replacement layer to obtain the absorbed internal state. The squeezing module is used to iteratively extract the hash output based on the absorbed internal state; The lightweight hash function includes a dynamic replacement layer and a permutation layer. The dynamic replacement layer is based on a variable structure self-coupled 4D chaotic mapping to enhance nonlinear diffusion. The permutation layer is based on a linear transformation using GFS II to accelerate the overall diffusion process through structured bit shuffling. The absorption module is further configured to divide the XORed internal state into eight 32-bit sub-blocks; input the even-numbered sub-blocks as the initial states of the four 1D chaotic maps of the variable structure self-coupled 4D chaotic map into the dynamic replacement layer to generate even temporary internal sub-states; perform 32-bit modulo addition with the previous temporary state and bitwise XOR with the next temporary state in a cyclic manner to generate odd temporary internal sub-states; and use an octet-based GFSII type shuffling operation to generate the absorbed internal state.

7. A lightweight hash function construction device based on a chaotic sponge structure, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the lightweight hash function construction method based on the chaotic sponge structure as described in any one of claims 1 to 5.

8. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the lightweight hash function construction method based on the chaotic sponge structure as described in any one of claims 1 to 5.

9. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the lightweight hash function construction method based on a chaotic sponge structure as described in any one of claims 1 to 5.