The embodiment of the invention provides a method for realizing Paillier
encryption based on an
FPGA chip. In the method, a data distribution module respectively distributes a
plaintext data set M, akey n and a random number set r to a
confusion encryption engine, a parameter calculation module and a plurality of
modular exponentiation calculation engines. And the parameter calculation module determines parameters N, RR, U0 and np required by Paillier
encryption according to the key n, and distributes the key n and the parameters N, RR, U0 and np to a plurality of
modular exponentiation calculation engines and
confusion encryption engines. And the
modular exponentiation calculation engines perform parallel modular exponentiation calculation by using the random number set r, the key n andthe parameters N, RR, U0 and np. And the obtained modular exponentiation calculation result is provided to a
confusion encryption engine after aggregation
processing. And the confusion encryption engine performs confusion encryption by using the aggregation
processing result, the key n, the parameters N, RR, U0 and np and the
plaintext data set to obtain a
ciphertext data set. By utilizing the method, the calculation efficiency of the Paillier encryption
algorithm can be improved by utilizing the high parallel calculation characteristic of the FPGA.