A ciphertext domain robust invertible watermarking method against additive noise attacks
By performing secondary weighting in the ciphertext domain space and introducing a noise buffer, the problem of robust reversible watermarking technology resisting additive noise attacks in the ciphertext domain is solved. Robustness and reversibility in the additive noise environment are achieved, ensuring the complete extraction and accurate decryption of the watermark.
Patent Information
- Application Number
- CN202311542505.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-20
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-11-20
AI Technical Summary
Existing robust reversible watermarking techniques for ciphertext fields are ineffective against additive noise attacks, resulting in insufficient decryption reliability and robustness of information embedding, and failing to meet the robustness requirements against noise interference during the encryption process.
By performing secondary weighting in the ciphertext domain space, introducing a noise buffer, and using quantization vectors and decryption quantization rules, the ciphertext domain space is divided into four regions. When embedding information, the value of the quantization vector is modified to be located in the information load region. The key generation and embedding process in the LWE encryption system is designed to achieve noise robustness.
It can completely extract watermarks when facing clipping attacks, resist additive noise attacks, maintain the credibility and usability of decryption results, and realize robust and reversible embedding and extraction of information in the ciphertext domain.
Smart Images

Figure CN117676030B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of encrypted text management, and particularly relates to a robust and reversible watermarking method for encrypted fields that resists additive noise attacks. Background Technology
[0002] The main application areas of RDH-ED technology are watermarking functions such as encrypted annotation, retrieval assistance and authentication, and verification. Existing application scenarios are mainly for encrypted management in cloud services and encrypted medical image annotation in telemedicine.
[0003] Traditional robust watermarking functions by providing robustness to the authentication of the carrier, i.e., its ability to resist active attacks. Common attack methods against plaintext images and other multimedia include noise addition, cropping, data tampering, resampling, and recompression. The performance of robust watermarking technology depends on the actual security requirements of the carrier data. Plaintext carriers face highly concealed, diverse, and varied active attacks with different effects and purposes, placing different demands on the robust watermarking performance of plaintext carriers. Existing plaintext multimedia robust watermarking algorithms are designed to counter one or more of the above attacks, achieving one or more functions such as resisting additional noise superposition, data cropping, compression, and tamper location.
[0004] With the widespread adoption of encryption technology in daily life, the demand for ciphertext field reversible watermarking to authenticate and protect everyday encrypted data is constantly increasing. Researching robust reversible watermarking technology with ciphertext field resistance to common ciphertext attacks has significant practical implications. Due to the unique nature of the encryption process, the robustness requirements of ciphertext watermarking differ from those of plaintext, and the implementation difficulty also differs. Because ciphertext lacks correlation between data points, resampling and recompression of ciphertext are less effective and affect decryption reliability. Common multimedia compression techniques are not practically applicable to the transmission and use of ciphertext. The inherent vulnerability of ciphertext means that its application often encounters decryption distortion caused by noise interference and data packet loss, as well as active noise addition and truncation attacks. To address common ciphertext attacks, practical countermeasures in cryptographic technology are limited; the main approach is to design targeted defense strategies. For example, against truncation attacks, encrypted data can be grouped for encryption and decryption, and integrity checks can be performed using tools such as hashing to determine the correctness of the decrypted plaintext content and even detect the truncation location in time. Because encryption emphasizes the protection of message content privacy, ciphertext itself is vulnerable. For example, the "diffusion" principle in cryptographic design requires that data modifications to the original ciphertext be amplified geometrically, resulting in distortion in the decryption result. Vulnerabilities in the encryption and decryption process can promptly detect or locate attacks, ensuring sufficient credibility and usability of the decrypted ciphertext. However, the vulnerability of ciphertext makes it difficult to embed additional information within it and to design robust, reversible watermarks. Based on current knowledge, there are currently no robust, reversible watermarking algorithms suitable for the ciphertext domain.
[0005] This paper designs a reversible robust watermarking algorithm based on the LWE encryption scheme, which resists common additive noise attacks. The focus on proactive defense against noise attacks is crucial because noise attacks are not only a form of active tampering with watermark information but also an unavoidable external interference during information transmission. While this external interference can be reduced through channel coding and source error correction techniques, it still cannot achieve the robustness required for watermarks against noise interference at the source. This includes preventing malicious noise addition by adversaries or noise interference in intranets and local area networks with hardware deficiencies in transmission conditions. Regardless of whether the noise attack is active or passive, its impact on the watermark information in the ciphertext carrier is significant. If the watermark information embedded in the ciphertext is robust against general additive noise attacks, it can provide better authentication and proactive verification practicality in applications.
[0006] In some existing joint data hiding and encryption schemes, only a portion of the overlay data is encrypted, with the remainder used to carry additional messages. This includes encrypting the intra-frame prediction mode, motion vector differences, and the signs of the DCT coefficients, while the watermark is embedded in the amplitude of the DCT coefficients. Alternatively, the overlay data in the high- and low-bit planes of the transform domain can be encrypted and watermarked separately. However, these joint schemes, due to the partial encryption involved, may lead to the leakage of some information in the overlay data. Furthermore, they do not consider separating the original overlay data and the embedded data from the watermarked version, and the data embedding is irreversible.
[0007] In its development, ciphertext-domain reversible information hiding algorithms have focused on achieving reversibility and separability, and have made significant progress in expanding into different cryptographic systems. In post-quantum cryptographic environments, such as (R-)LWE encryption, the RDH-ED technique was first introduced by Ke et al. Benefiting from high encryption strength and the probabilistic decryption process of LWE, the encryption and decryption process has abundant redundant variables, which can be used to construct various reversible embedding scenarios, such as multi-bit embedding and multi-layer embedding. It has also seen significant development in separability and homomorphic applications. However, current research on the robustness of ciphertext-domain reversible watermarking is relatively limited. Summary of the Invention
[0008] To address the above problems, this invention provides the following solution: a robust and reversible watermarking method for the ciphertext domain resistant to additive noise attacks, comprising: The quantization vector used for plaintext mapping is obtained by using the private key, and the decryption quantization rules are constructed. Based on the aforementioned decryption quantization rules and quantization vectors, the entire ciphertext domain space is weighted twice, so that the newly quantized sub-regions are loaded with additional information. A noise buffer is introduced during the quantization process to make the embedded information robust against additive noise.
[0009] Preferably, the values of the variables in the quantization vector surround 0 or 0 in the ciphertext field space. It fluctuates and follows a discrete Gaussian distribution; The decryption and quantization rules include: representing a finite field based on a circle. The set of points on the finite field divides the finite field into four regions: region I[0, ..., ... ], Region II , ], Region III , ] and Region IV[ If the point corresponding to the value in the quantization vector is located in region I or region IV, then the decryption is 0; if the point corresponding to the value in the quantization vector is located in region II or region III, then the decryption is 1.
[0010] Preferably, the process of performing a second weighting of the entire ciphertext field space includes, The entire ciphertext space is weighted, ensuring that the decryption quantization rules of the original LWE algorithm remain unchanged, so that the weighted space can carry additional watermark information; the specific weighting process includes: Divide regions I, II, III, and IV into equal parts of length [missing information]. The sub-regions, each of which contains one information load area and two noise buffers, and the length of the noise buffers is the same, denoted as l; When embedding information, the values of the corresponding variables in the quantization vector are modified to place them in the information load area.
[0011] Preferably, regions I, II, III, and IV are divided into equal parts of length [missing information]. The process of subregions includes, Each of regions I, II, III, and IV is divided into two equal sub-regions, denoted as sub-region 0 and sub-region 1, respectively. The length of each sub-region is... ; The sub-regions 0 and 1 are mapped to the additional bits 0 or 1 to be embedded, respectively. When the quantization vector is located in sub-region 0, the additional information is 0; when the quantization vector is located in sub-region 1, the additional information is 1. Each sub-region contains an information payload region of length lip and two noise buffer regions of equal length lnb; where lip + 2lnb = ; The robustness ratio is defined as rrob, which is the ratio of the length of the noise buffer region to the length of the information payload region. The larger the robustness ratio, the greater the amplitude of the additive noise fluctuations it can resist; where rrob = lnb / lip.
[0012] Preferably, the process of embedding information further includes initial system settings. The initial system settings include: system parameter settings, key generation, and key allocation; The system parameter settings include, Set the security parameter to n, where n is a power of 2; q is a prime number and ; All operations in the LWE encryption system are within a finite field. Perform operations modulo q; The dimension of the vector in the public key space is d ( , ); The introduced LWE noise distribution is a discrete Gaussian distribution. ; "qx" means rounding qx to the nearest integer. It is the standard deviation of the selected Gaussian noise distribution. The value of the standard deviation will affect the safety of the standard deviation. The key generation process includes: Generate independent and identically distributed uniformly distributed random matrices S and A Independently generate a noise matrix E that follows the distribution χ. Then output the tuple. ; Generate two pseudo-random sequences: rp rz The pseudo-random sequence is used to randomly obfuscate plaintext and all hidden messages before LWE encryption, so as to separate decryption from data extraction and maintain the security of LWE encryption. The key distribution includes ( P , A The encryption key of (rp), S The decryption key for (rp) and ( S The embedding key of rz).
[0013] Preferably, the process of embedding information includes encryption and watermark embedding, and decryption and watermark information extraction; The encryption and watermark embedding includes encryption and watermark embedding; The decryption and watermark information extraction includes decryption and watermark extraction.
[0014] Preferably, the encryption process includes, Plaintext bits are p The encryption key is (P, A, rp). First, the plaintext information is scrambled. Then, the plaintext p and rp are XORed to obtain the sequence. Randomly select a sequence The output ciphertext is ;in, Used for LWE encryption.
[0015] Preferably, the watermark embedding process includes, The watermark information is z The embedding key is (S, rz). The watermark information z is scrambled using the key rz, and the result of the XOR operation is denoted as . , For subsequent embedding; The original ciphertext is (u, c), and the bit to be embedded is w. The embedding process is to reflect the fluctuation of the quantization vector in its region proportionally in the information load area after the ciphertext field is weighted. When embedding information, the elements in the quantization vector are moved to a specific information load area. First, the embedded value of each element in the quantization vector ν is calculated, and its position on the circumference is determined. Calculate quantified variables ; Calculate the ratio of the volatility of the quantified variable to the volatility of its region to obtain the volatility of hj, denoted as νj: νj= Based on hj, the volatility in the current region is embedded into the quantization variable wj to obtain the quantization variable hj': hj'= Calculate the encrypted ciphertext c' based on the changes in the encrypted quantization variable. : ,(j=1,2,…,l).
[0016] Preferably, the decryption process includes, Use the decryption key (S, rp) to decrypt the ciphertext. To perform decryption, first calculate the quantization vector. According to the decryption mapping rules, the decryption result m' is obtained. , : Restore watermark plaintext pl': .
[0017] Preferably, the watermark extraction process includes, Using the embedded key (S, rz), from the ciphertext... Extract the embedded additional information, calculate the quantization vector, and obtain the secret quantization vector: , ; According to the embedding mapping rules, the extracted information is denoted as : Restore watermark information z': .
[0018] Compared with the prior art, the present invention has the following advantages and technical effects: Compared with existing watermarking algorithms, the algorithm of this invention can embed 1 bit of watermark data into the ciphertext of any plaintext bit. Therefore, when facing cropping attacks, as long as the ciphertext of the size of the watermark can be retained after the attack, the watermark can be completely extracted. Moreover, the watermark size is much smaller than the image size. As long as the image content that can be used to extract a watermark is retained in an image, copyright authentication can be achieved.
[0019] The algorithm of this invention resists pruning attacks mainly because the high embedding amount results in a large amount of redundant embedding, which makes the watermark distribution larger. Therefore, the technical solution of this invention allows for a larger pruning area. Attached Figure Description
[0020] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings: Figure 1 This is a schematic diagram of a finite field according to an embodiment of the present invention; Figure 2 This is a schematic diagram illustrating the weighting process of a finite field during the embedding process in an embodiment of the present invention; Figure 3 The extreme values and standard deviations of Y fluctuation in this embodiment of the invention. Relationship diagram; Figure 4 For different standard deviations of the embodiments of the present invention Histogram of the distribution of quantified variables; Figure 5 This is an experimental result diagram of the image Lena in an embodiment of the present invention; Figure 6 The figure shows the experimental results of Gaussian white noise in an embodiment of the present invention. Figure 7 The figure shows the experimental results of resisting Poisson noise attacks according to an embodiment of the present invention; Figure 8 The figure shows the experimental results of resisting impulse noise attacks according to an embodiment of the present invention. Detailed Implementation
[0021] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0022] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.
[0023] like Figure 1 As shown, the ciphertext-domain robust reversible watermarking method provided by the present invention, resistant to additive noise attacks, includes: The quantization vector used for plaintext mapping is obtained by using the private key, and the decryption quantization rules are constructed. Based on the decryption quantization rules and quantization vectors, the entire ciphertext domain space is weighted twice, so that the newly quantized sub-regions are loaded with additional information. A noise buffer is introduced during the quantization process to make the embedded information robust against additive noise.
[0024] Furthermore, the values of the variables in the quantization vector revolve around 0 or 0 in the ciphertext field space. Fluctuations, and follow a discrete Gaussian distribution; The decryption quantization rules include: representing a finite field based on a circle. The set of points on the finite field divides the finite field into four regions: region I[0, ..., region I[0, ..., ...] ], Region II , ], Region III , ] and Region IV[ If the point corresponding to the value in the quantization vector is located in region I or region IV, then the decryption is 0; if the point corresponding to the value in the quantization vector is located in region II or region III, then the decryption is 1.
[0025] Furthermore, the process of reweighting the entire ciphertext domain space includes, The entire ciphertext space is weighted, ensuring that the decryption quantization rules of the original LWE algorithm remain unchanged, so that the weighted space can carry additional watermark information; the specific weighting process includes: Divide regions I, II, III, and IV into equal parts of length [missing information]. The sub-regions contain one information load area and two noise buffers, and the length of the noise buffers is the same, denoted as l; When embedding information, the values of the corresponding variables in the quantization vector are modified to place them in the information load area.
[0026] Furthermore, regions I, II, III, and IV are divided into equal parts of length [missing information]. The process of subregions includes, Each of regions I, II, III, and IV is divided into two equal sub-regions, denoted as sub-region 0 and sub-region 1, respectively. The length of each sub-region is... ; Subregions 0 and 1 are mapped to either 0 or 1 extra bits to be embedded. When the quantization vector is located in subregion 0, such as subregions I. 0, II. 0, III. 0, VI. 0, it indicates that the extra information is 0; when the quantization vector is located in subregion 1, such as subregions I. 1, II. 1, III. 1, VI. 1, it indicates that the extra information is 1. Each sub-region contains an information payload region of length lip and two noise buffer regions of equal length lnb; where lip + 2lnb = (1); The robustness rate is defined as rrob, which is the ratio of the length of the noise buffer region to the length of the information payload region. The larger the robustness rate, the greater the amplitude of the additive noise fluctuations it can resist; where rrob = lnb / lip (2).
[0027] Name the different areas, such as Figure 2 As shown. For example, region I. 0nb represents the region [0, lnb] ∪ [ -lnb, When the quantization vector is located in this region, according to the decryption rule, since the quantization vector is located in region I, the decryption result is 0; according to the information mapping rule, since it is located in sub-interval I, 0 indicates that the additional information in the payload is 0. Therefore, 1 bit of additional information can be embedded in the ciphertext encrypted with each bit of plaintext.
[0028] When embedding information, it is necessary to modify the values of the corresponding variables in the quantization vector so that they are located in the information load area of the sub-region. The noise buffers on both sides of the information load area are mainly used to resist the interference of additive noise.
[0029] Furthermore, initial system settings are performed before embedding the information; The initial system setup includes: system parameter settings, key generation, and key allocation; System parameter settings include, Set the security parameter to n, where n is a power of 2; q is a prime number and ; All operations in the LWE encryption system are within a finite field. Perform operations modulo q; The dimension of the vector in the public key space is d ( , ); The introduced LWE noise distribution is a discrete Gaussian distribution χ= , = "qx" mod q|x~N(0, 2)}(3); "qx" means rounding qx to the nearest integer. It is the standard deviation of the selected Gaussian noise distribution. The value of the standard deviation will affect the safety of the standard deviation. The key generation process includes, Generate independent and identically distributed uniformly distributed random matrices S and A Independently generate a noise matrix E that follows the distribution χ. Then output the tuple. ; Generate two pseudo-random sequences: rp rz The pseudo-random sequence is used to randomly obfuscate the plaintext and all hidden messages before LWE encryption, so as to separate decryption from data extraction and maintain the security of LWE encryption. As shown in Table 1, key distribution includes ( P , A The encryption key of (rp), S The decryption key for (rp) and ( S The embedding key of rz).
[0030] Table 1 Furthermore, the process of embedding information includes encryption and watermark embedding, and decryption and watermark information extraction; Encryption and watermark embedding includes encryption and watermark embedding; Decryption and watermark information extraction includes decryption and watermark extraction.
[0031] Furthermore, the encryption process includes, Plaintext bits are p The encryption key is (P, A, rp). First, the plaintext information is scrambled. Then, the plaintext p and rp are XORed to obtain the sequence. (4); Randomly selected sequence The output ciphertext is ;in, Used for LWE encryption.
[0032] Furthermore, the watermark embedding process includes, The watermark information is z The embedding key is (S, rz). The watermark information z is scrambled using the key rz, and the result of the XOR operation is denoted as . , For subsequent embedding; The original ciphertext is (u, c), and the bit to be embedded is w. The embedding process is to reflect the fluctuation of the quantization vector in its region proportionally in the information load area after the ciphertext field is weighted. When embedding information, the elements in the quantization vector are moved to a specific information load area. First, the embedded value of each element in the quantization vector ν is calculated, and its position on the circumference is determined. Calculate quantified variables ; Calculate the ratio of the volatility of the quantified variable to the volatility of its region to obtain the volatility of hj, denoted as νj: νj= (6) Based on hj, the volatility in the current region is embedded into the quantization variable wj to obtain the quantization variable hj': hj'= (7) Calculate the encrypted ciphertext c' based on the changes in the encrypted quantization variable. : ,(j=1,2,…,l)(8).
[0033] Furthermore, the decryption process includes, Use the decryption key (S, rp) to decrypt the ciphertext. To perform decryption, first calculate the quantization vector. According to the decryption mapping rules, the decryption result m' is obtained. , : (9) Restore watermark plaintext pl': (10).
[0034] Furthermore, the watermark extraction process includes, Using the embedded key (S, rz), from the ciphertext... Extract the embedded additional information, calculate the quantization vector, and obtain the secret quantization vector: , ; According to the embedding mapping rules, the extracted information is denoted as : (11) Restore watermark information z': (12).
[0035] Example Correctness verification of the scheme under the condition of no additive noise attack First, we analyze the conditions and parameter settings for ensuring the correctness of the scheme without inducing noise attacks. This involves two aspects: a) the correctness of decrypting the encrypted text; and b) the accuracy of extracting the watermark from the encrypted text.
[0036] 1. Parameter Analysis Given parameters, solving the LWE problem is equivalent to solving the Shortest Vector Problem (SVP) in a Vig, with dimensions of . Considering the efficiency of the most effective lattice reduction algorithm, the safe dimension of the lattice must be at least 500. In this experiment, we set n=240, q=57601, and l=8n, at which point the dimension is... >500, .
[0037] A. Standard deviation of introduced noise Analysis of the decryption error rate of the algorithm: The total noise in hi is A larger standard deviation provides superior security, but also a wider fluctuation range, leading to an exponential increase in computational complexity. If the fluctuation range exceeds q / 4, decryption overflow may occur. Conversely, a smaller standard deviation reduces encryption complexity, enhances algorithm usability, and lowers the probability of decryption overflow. However, it also provides lower encryption security. A minimum reference value exists for the standard deviation: min= .
[0038] To ensure the correctness of the decryption, the theoretical maximum value of the standard deviation is derived below based on the properties of the Gaussian distribution. In the proposed algorithm, the total fluctuation of the introduced noise is denoted as Y: in They satisfy the condition that they are mutually independent and identically distributed. According to the central limit theorem, we can obtain: because It is randomly generated, therefore The above formula (14) can be simplified to: achievable For a given general normal distribution The confidence interval is γ is determined by the confidence level of the standard Gaussian distribution and can be obtained by inverting the standard normal distribution function. In the discrete Gaussian distribution χ, according to formula (1), to ensure that the maximum fluctuation range does not exceed [-q / 4, q / 4], we can obtain: wherein .
[0039] By inverting the standard Gaussian distribution function, it can be obtained that when the confidence level for correct decryption is set to be no less than 99.9%, i.e., the probability P{(0<Y<q / 4)∪(3q / 4<Y<q)}≥99.9%, then γ≥3.291.
[0040] According to the selected parameter values , it can be derived that and : Therefore, it can be obtained that, under the condition of ensuring no overflow during decryption, the theoretical interval for the standard deviation of the error noise introduced during the encryption process is: .
[0041] The experimental security parameters are set as: . As shown in Figure 3 , when the confidence level is 99.9%, the relationship between the extreme value of fluctuation and the standard deviation value . It indicates that the fluctuation interval is within , which can ensure that no overflow occurs during algorithm decryption.
[0042] For the algorithm simulation experiment, Figure 4 the histogram distribution of the total fluctuation amount when the standard deviation takes the maximum and minimum values is given. It can be seen that when the standard deviation is selected within the theoretical interval, the quantized variables of will not overflow the fluctuation interval, which can ensure correct decryption of the algorithm.
[0043] 2. Length of information payload area According to equation (1), the length of the information payload area is: When , the length reaches its maximum value , at which time the robustness rate has a minimum value of 0, and the watermark robustness is weak. To improve the robustness of reversible watermarking, the value of should be as small as possible. However, its length cannot be reduced to 0, because according to the section . the analysis in shows that to ensure the security of the encryption process, The algorithm actively introduces error noise, causing the quantization vector to fluctuate randomly within a certain range. Therefore, the length of the information load region must be no less than the original fluctuation range of the quantization vector caused by the introduced error noise. Thus, the standard deviation of the introduced error noise is... of In encryption systems, there is a theoretical lower limit to the length of the information payload: According to formula (18), the standard deviation of the introduced error noise takes the minimum value, that is... At that time, the fluctuation range of the quantization vector is The minimum value set by the encryption system. This value is also the minimum length of the payload area, denoted as lipmin. Simultaneously, the robustness reaches its maximum value, denoted as rrobmax. It represents the maximum allowable amplitude of additive noise that can be resisted. In summary, the available range of the information load area length is: Based on the parameter values selected in this embodiment And from formulas (18) and (22), we can obtain the minimum value of the information load area under the parameter settings in this paper: 3. Decryption and watermark extraction By setting Experiments were conducted to test the embedding and extraction processes of the proposed scheme. The experiments were performed in... The system was tested using a 64-bit Intel® Core™ i7-10875H CPU at 2.30 GHz.
[0044] Figure 5 Images were displayed The experimental results ( Plain text as Figure 5 As shown in (b), it is from Figure 5 (a) The most meaningful position A 240x240 block obtained from a flat surface. Watermark as follows: Figure 5 As shown in (c). The ciphertext and the marked ciphertext are respectively as follows: Figure 5 As shown in (d) and (e), the decryption results of the marked ciphertext are as follows. Figure 5 As shown in (f). The extracted watermark is as follows. Figure 5 As shown in (g). Figure 5 (i) shows the error in the bit comparison between the decrypted data from the ciphertext and the plaintext. Figure 5(j) shows the error in the bit comparison between the extracted watermark and the original watermark. Experimental results show that there are no errors in the decryption and data extraction process. Next, we conducted experiments on all bit planes of Lena, testing the remaining bits. The accuracy of both decryption and watermark extraction is 100%. The recovered Lena is as follows: Figure 5 As shown in (h).
[0045] The accuracy of watermark information extraction is calculated using the normalized correlation coefficient (NCC): in, Wext and Wext are respectively the size of The original watermark matrix and the watermark matrix extracted from the ciphertext after the noise attack. .when This indicates that the extracted watermark is most correlated with the original watermark, meaning it has strong robustness. In this embodiment, the standard deviation is further analyzed when it falls within the range... In the experiment, the NCC for watermark extraction was 1.000. 1000 8-bit grayscale images (512×512 pixels) were randomly selected from the BOWS-2 database for testing. The watermark is a 240×240 binary image. Experimental results show that the accuracy of decryption and watermark extraction is 100%, and the embedding rate (ER) is 1 watermark per ciphertext, meaning 1 watermark is obtained from 1 bit of plaintext, which translates to 8 bpp (per pixel) in the 8-bit grayscale image.
[0046] B. Robustness against additive noise attacks An additive attack was performed using five commonly used noise types, and the accuracy of extracting information from the encrypted text after it was loaded with new noise signals was tested. These noise types are collectively referred to as... Carrying secret text for , The ciphertext after the attack is recorded as follows: : In addition to salt-and-pepper noise, to test the robustness of the ciphertext watermark, this embodiment performs a 100% full-size attack on the ciphertext, i.e., sampling to generate a noise matrix of the same size as the ciphertext and adding it to the ciphertext. Then, the correctness of watermark extraction and decryption is tested.
[0047] 1. Gaussian white noise In the experiment, from the distribution Medium-sampled discrete Gaussian white noise, where The standard deviation is To test the robustness of the proposed scheme to Gaussian white noise, we set the robustness rate to its maximum value. ,Right now At this point, the proposed scheme can theoretically resist additive attacks of Gaussian noise with maximum amplitude.
[0048] set up An experiment using Gaussian white noise was conducted. For example... Figure 6 As shown, the experimental results using a 240×240 block of Lena's MSB plaintext as plaintext are as follows: The ciphertext is marked as follows: Figure 6 As shown in (a). Settings Then, a Gaussian white noise matrix of size 240×240 is obtained by sampling, as shown below. Figure 6 As shown in (b). Gaussian white noise is added to the marked ciphertext to obtain the attacked marked ciphertext, as shown in (b). Figure 6 As shown in (c). The extracted watermark is as follows. Figure 6 As shown in (d), the decryption result of the attack-marked ciphertext is as follows. Figure 6 As shown in (e). The restored Lena is as follows. Figure 6 As shown in (f). The NCC (Normalized Correlation Coefficient) is 1.0. The accuracy of both decryption and watermark extraction is 100%. The histogram of the ciphertext marked in Lena's 221 bits is shown below. Figure 6 As shown in (g), the histogram of 221 samples of Gaussian white noise is shown below. Figure 6 As shown in (h), the histogram of the attack-marked ciphertext is as follows. Figure 6 As shown in (i).
[0049] The results in Table 2 show that the robustness factor of the scheme is set to the maximum value. Based on the positive correlation between the intensity of Gaussian white noise and its standard deviation, the robustness of the extracted watermark data under different Gaussian noise standard deviations is further tested. The LWE encryption system introduces error noise to ensure encryption security. Formula (17) gives the maximum allowable value of error noise. In the experiment, we used error noise as the standard to quantify the intensity of the added attack noise. As shown in Table 2, the autoregressive correlation coefficient (NCC), decryption accuracy, watermark extraction accuracy, and image information of the extracted watermark are recorded after adding Gaussian noise attacks of different intensities. Among them: As can be seen from the experimental groups in the table, when the encrypted text is superimposed with attack noise of the same intensity as the error noise in the current encryption system (i.e., in Experimental Group No. 1), lossless decryption and watermark extraction are achievable. In Experimental Group No. 2, when the intensity of the attack noise reaches the maximum allowable error noise intensity of the encryption system, the plaintext can be decrypted without loss, and the watermark can be extracted without loss. In Experimental Group No. 5, when the intensity of Gaussian noise is 3 times that of the maximum error noise, the accuracy of watermark extraction begins to show distortion, but the normalized correlation coefficient is high (>99.00%), the watermark remains identifiable, and decryption is lossless. In Experimental Groups No. 6-10, when the intensity of Gaussian noise is less than 20 times that of the maximum error noise, the watermark remains identifiable, and the decryption accuracy is above 85%. In experimental groups No. 11-13, when the intensity of Gaussian noise is more than 20 times that of the maximum erroneous noise, the NCC value drops below 0.4, the correct watermark extraction rate drops below 60%, gradually losing its recognizability, and the accuracy of the decryption result decreases to below 80%, introducing significant decryption distortion and failing to guarantee reversibility. In summary, the proposed ciphertext domain reversible information hiding algorithm can resist high-intensity Gaussian noise additive attacks. Its robustness is not only reflected in the extraction of watermark information but also in the decryption process.
[0050] Table 2 2. Poisson noise To test the effectiveness of the proposed scheme against Poisson noise attacks, n=240, q=57601, d=1920, rrob=rrobmax, and lip=lipmin=126. According to formula (1), lnb=3537. The noise is taken from a standard Poisson distribution with a mean of λ. Let x be the variable element in the noise matrix. The probability distribution of the noise is P(x): Figure 7 Showing The experimental results for resisting Poisson noise attacks. For example... Figure 7 As shown in (a), the noise generated by sampling has a size of 240×240. This noise is added to the encrypted text after embedding the watermark. Figure 6 In (a)), the encrypted text obtained after the attack is as follows: Figure 7 As shown in (b). The watermark extracted from the encrypted text after the attack is as follows: Figure 7 As shown in (c), the decryption result of the attack-marked ciphertext is as follows. Figure 7 As shown in (d), the NCC (Normalized Correlation Coefficient) of the extracted watermark is 1.0. The accuracy of both decryption and watermark extraction is 100%. Figure 7(e)-(f) show histograms of sampled Poisson noise and marked ciphertext in 221 bits of Lena after the attack.
[0051] The robustness of the proposed algorithm for watermark extraction under different intensities of Poisson noise interference was further tested. Based on the characteristics of the Poisson distribution, its intensity distribution is mainly determined by the expectation; the higher the expectation, the more the noise distribution leans towards high intensity. Table 3 lists the decryption accuracy and NCC of the watermark information after Poisson noise is superimposed on the ciphertext for different expectation values. According to the characteristics of the Poisson distribution, the amplitude distribution of Poisson noise is mainly concentrated near the expectation. The noise buffer of the proposed algorithm is mainly intended to resist the interference of additive noise. When the expected value of the attack noise sampling is less than lnb, the correctness of decryption and watermark extraction can be guaranteed with a relatively high probability, as shown in experimental groups 1-5 in Table 3. When the expected value of the Poisson noise sampling is greater than lnb, significant distortion in watermark extraction begins to appear, but a certain degree of watermark recognizability can still be maintained. The NCC value decreases as the expected value of the attack noise increases, as shown in experimental groups 6-7. As the noise intensity increases, the distortion rate rises rapidly. When the NCC value is below 0.5, the watermark gradually loses its recognizability, as shown in experimental groups 9-12.
[0052] Table 3 3. Impulse noise Because the value space where the ciphertext data resides is In the experiment Common impulse noise randomly superimposes 0 and 1 noise onto the signal. Since the ciphertext data has a large value range, the impact of 0 and 1 on the ciphertext data can be considered equal. Therefore, only impulsive noise is used here, i.e., according to noise density. The robustness of the proposed algorithm is tested by randomly setting the ciphertext data to 0. Let the original ciphertext be... The elements of the encrypted variable after the noise attack are : Figure 8 Shown in Experimental results on resistance to impulse noise attacks under certain conditions. In a random selection of 2% of samples carrying ciphertext... Figure 6 (a) After setting the data to 0, the resulting ciphertext after the attack is as follows: Figure 8 As shown in (a). The watermark extracted from the ciphertext after the attack is as follows. Figure 7 As shown in (c). The decryption result of the marked ciphertext after the attack is as follows. Figure 7As shown in (d), the NCC (Normalized Correlation Coefficient) of the extracted watermark is 0.9808. The decryption accuracy is 100%. The histogram of the ciphertext from the 221-bit Lena after the impulse noise attack is shown below. Figure 8 As shown in (d).
[0053] These experimental results demonstrate that the proposed method exhibits high robustness and accuracy against impulse noise attacks. The correctness of the decryption result can be confirmed by comparing the NCC values of the extracted watermark with those of the original watermark. Furthermore, histogram analysis shows that even under attack conditions, the distribution of the ciphertext remains stable, indicating that the proposed encryption method performs well against noise attacks.
[0054] The impact of impulse noise at different densities on the proposed scheme was tested, and the results are shown in Table 4. The impulse noise attack randomly sets the ciphertext data to 0, since the value range of the ciphertext is... Therefore, this attack significantly modifies the ciphertext, making information extraction and decryption highly susceptible to distortion, which increases with noise density. The proposed algorithm also suffers from watermark extraction distortion. Even under high-density attacks, this algorithm can still maintain the watermark's recognizability relatively well, with NCC remaining above 0.4.
[0055] Table 4 4. Uniform noise The test continues with uniform noise attacks. A 240×240 noise matrix is generated and superimposed on a ciphertext of the same size to obtain the attacked ciphertext. This tests the robustness of decryption and watermark extraction. Let the variable elements in the noise matrix be denoted as . The probability distribution of the noise is... : Table 5 records the NCC of the proposed algorithm for watermark extraction and the accuracy of watermark extraction and decryption under different p values. In the experiments of this paper, the robust system is set to the maximum value, at which time lnb=3537. According to the algorithm design, the length of the noise buffer is the upper limit of the tolerable noise amplitude. Since the noise follows a uniform distribution, when When the value exceeds the length of the noise buffer, the noise in the amplitude overflow portion causes decryption overflow, resulting in random perturbations in the decryption result and causing an error in the information extraction process with approximately a 50% probability. When the value is much larger than lnb, the extraction accuracy approaches 50%. Therefore, the theoretical accuracy of watermark extraction can be calculated as follows: It can be seen from the experimental results in Table 5 that when the value is less than or equal to lnb, the amplitudes of all noises will not cause overflow in decryption and information extraction, and the extracted watermark image is lossless. When lnb<p<3lnb, distortion begins to appear in watermark extraction and decryption, and the quality of the watermark image decreases but still has good distinguishability. As , the proportion of noises whose amplitude exceeds lnb will increase correspondingly, which simultaneously causes an increase in decryption overflow. The NCC starts to be lower than 0.5, the visual quality of the watermark image gradually disappears, the accuracy of watermark extraction approaches and remains higher than 50%, but the accuracy of decryption can be maintained above 75%. The setting of the watermark extraction noise buffer also improves the robustness of decryption to a certain extent.
[0056] Table 5 5. Exponential noise Continue to test the attack of Exponential noise, generate a 240×240 noise matrix, and superimpose it on the ciphertext-carrying image of the same size to obtain the attacked ciphertext-carrying image. Thus, the robustness of decryption and watermark extraction is tested. The variable elements in the noise matrix are denoted as , and the distribution probability of the noise is : where is the expectation of the exponential noise sampling distribution.
[0057] Table 6 records the NCC of the watermark extracted by the proposed algorithm and the accuracy of watermark extraction and decryption under different values. In the experiment of this embodiment, the robust system is set to take the maximum value. It can be seen from the experimental results in Table 6 that when the value is less than 400, the amplitudes of all noises will not cause overflow in decryption and information extraction, and the extracted watermark image is lossless. When , distortion begins to appear in watermark extraction and decryption, and the quality of the watermark image decreases but still has good distinguishability. As , the NCC starts to be lower than 0.5, the visual quality of the watermark image gradually disappears, and the accuracy of watermark extraction approaches and remains higher than 50%.
[0058] Table 6 C. Operating efficiency 1. Ciphertext expansion of LWE cryptography To ensure practicality, the proposed scheme avoids introducing additional storage costs through embedding operations, as these costs primarily stem from the cryptographic system. In fact, public-key encryption algorithms (such as the Paillier and LWE algorithms) possess ciphertext extensions, stemming from the mathematical principles of public-key encryption, which provide reliable security for secret communication. The LWE algorithm's extension can achieve... The Paillier algorithm is approximately , It is a security parameter that determines the key length.
[0059] 2. Embedded capacity and resistance to cutting Based on theoretical design and experimental results, the robustness of the proposed algorithm mainly stems from the probabilistic decryption process of LWE. Its redundant mapping space provides an overflow buffer for additive noise; therefore, any one bit of plaintext can embed one bit of additional watermark information during the encryption process into ciphertext. For 8-bit grayscale image plaintext, the embedding rate can reach [percentage missing]. This means that 8 bits of watermark information are embedded in each pixel, thus achieving efficient watermark embedding. This high embedding rate helps ensure efficient watermark transmission and recognition while maintaining image quality.
[0060] Compared to existing watermarking algorithms, the algorithm in this embodiment can embed 1 bit of watermark data into the ciphertext of any plaintext bit. Therefore, when facing cropping attacks, as long as the ciphertext of the next watermark size can be retained after the attack, the watermark can be completely extracted. The algorithm's resistance to cropping attacks is mainly based on the large amount of redundant embedding resulting from the high embedding amount, which makes the watermark distribution larger. The watermark image size designed in this embodiment is 240×240, and the data size of the test ciphertext is 8×512×512. The results of cropping the ciphertext data and then extracting the watermark are shown in Table 7.
[0061] Table 7 3. Computational complexity Since the LWE lattice cryptography algorithm mainly involves matrix addition and multiplication, linear operations are relatively fast, and the proposed algorithm has a time complexity of O(n log n). Lower.
[0062] The above are merely preferred embodiments 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.
Claims
1. A robust and reversible watermarking method for the ciphertext domain resistant to additive noise attacks, characterized in that, include: The quantization vector used for plaintext mapping is obtained by using the private key, and the decryption quantization rules are constructed. Based on the aforementioned decryption quantization rules and quantization vectors, the entire ciphertext domain space is weighted twice, so that the newly quantized sub-regions are loaded with additional information, and a noise buffer is introduced during the quantization process to achieve robustness of the embedded information against additive noise. The process of reweighting the entire ciphertext field space includes, The entire ciphertext space is weighted, so that the decryption quantization rules of the original LWE algorithm remain unchanged, and the weighted space can carry additional watermark information. The specific weighting process includes: Divide regions I, II, III, and IV into equal parts of length [missing information]. The sub-regions, each of which contains one information load area and two noise buffers, and the length of the noise buffers is the same, denoted as l; When embedding information, the values of the corresponding variables in the quantization vector are modified to place them in the information load area; The process of embedding information includes encryption and watermark embedding, and decryption and watermark information extraction. The encryption and watermark embedding includes encryption and watermark embedding; The decryption and watermark information extraction includes decryption and watermark extraction; The watermark embedding process includes, The watermark information is z The embedding key is (S, rz). The watermark information z is scrambled using the key rz, and the result of the XOR operation is denoted as w. ; , For subsequent embedding; The original ciphertext is (u, c), and the bit to be embedded is w. The embedding process is to reflect the fluctuation of the quantization vector in its region proportionally in the information load area after the ciphertext field is weighted. When embedding information, the elements in the quantization vector are moved to a specific information load area. First, the embedded value of each element in the quantization vector ν is calculated, and its position on the circumference is determined. Calculate quantified variables ; Calculate the ratio of the volatility of the quantified variable to the volatility of its region to obtain the volatility of hj, denoted as νj: νj= Based on hj, the volatility in the current region is embedded into the quantization variable wj, resulting in the quantization variable hj': hj'= Calculate the encrypted ciphertext c' based on the changes in the encrypted quantization variable. : ,(j=1,2,…,l)。 2. The ciphertext-domain robust reversible watermarking method against additive noise attacks according to claim 1, characterized in that, The values of the variables in the quantization vector revolve around 0 or 0 in the ciphertext space. Fluctuations, and follow a discrete Gaussian distribution; The decryption and quantization rules include: representing a finite field based on a circle. The set of points on the finite field divides the finite field into four regions: region I[0, ..., ... ], Region II , ], Region III , ] and Region IV[ If the point corresponding to the value in the quantization vector is located in region I or region IV, then the decryption is 0; if the point corresponding to the value in the quantization vector is located in region II or region III, then the decryption is 1.
3. The ciphertext-domain robust reversible watermarking method against additive noise attacks according to claim 1, characterized in that, Divide regions I, II, III, and IV into equal parts of length [missing information]. The process of subregions includes, Each of regions I, II, III, and IV is divided into two equal sub-regions, denoted as sub-region 0 and sub-region 1, respectively. The length of each sub-region is... ; The sub-regions 0 and 1 are mapped to the additional bits 0 or 1 to be embedded, respectively. When the quantization vector is located in sub-region 0, the additional information is 0; when the quantization vector is located in sub-region 1, the additional information is 1. Each sub-region contains an information payload area of length lip and two noise buffers of equal length lnb; where lip + 2lnb = ; The robustness ratio is defined as rrob, which is the ratio of the noise buffer length to the information payload length. The larger the robustness ratio, the greater the amplitude of additive noise fluctuations it can resist; where rrob = lnb / lip.
4. The ciphertext-domain robust reversible watermarking method against additive noise attacks according to claim 1, characterized in that, The embedded information is preceded by initial system settings; The initial system settings include: system parameter settings, key generation, and key distribution; The system parameter settings include, Set the security parameter to n, where n is a power of 2; q is a prime number and ; All operations in the LWE encryption system are within a finite field. Perform operations modulo q; The dimension of the vector in the public key space is d ( , ); The introduced LWE noise distribution is a discrete Gaussian distribution. ; "qx" means rounding qx to the nearest integer. It is the standard deviation of the selected Gaussian noise distribution. The value of the standard deviation will affect the security of the LWE encryption system. The key generation process includes: Generate independent and identically distributed uniformly distributed random matrices S and A Independently generate a noise matrix E that follows the distribution χ. Then output the tuple. ; Generate two pseudo-random sequences: rp rz The pseudo-random sequence is used to randomly obfuscate plaintext and all hidden messages before LWE encryption, so as to separate decryption from data extraction and maintain the security of LWE encryption. The key distribution includes ( P , A The encryption key of (rp), S The decryption key for (rp) and ( S The embedding key of rz).
5. The ciphertext-domain robust reversible watermarking method against additive noise attacks according to claim 1, characterized in that, The encryption process includes, Plaintext bits are p The encryption key is (P, A, rp). First, the plaintext information is scrambled. Then, the plaintext p and rp are XORed to obtain the sequence. Randomly select a sequence The output ciphertext is ;in, Used for LWE encryption.
6. The ciphertext-domain robust reversible watermarking method against additive noise attacks according to claim 1, characterized in that, The decryption process includes, Use the decryption key (S, rp) to decrypt the ciphertext. To perform decryption, first calculate the quantization vector. According to the decryption mapping rules, the decryption result m' is obtained. , : Restore watermark plaintext pl': 。 7. The ciphertext-domain robust reversible watermarking method against additive noise attacks according to claim 1, characterized in that, The watermark extraction process includes, Using the embedded key (S, rz), from the ciphertext... Extract the embedded additional information, calculate the quantization vector, and obtain the secret quantization vector: , ; According to the embedding mapping rules, the extracted information is denoted as... : Restore watermark information z': 。
