Data encryption method and data decryption method

The invention discloses a data encryption method and a data decryption method. The data encryption method comprises the following steps: generating a public key and a private key; encrypting the first data by using the public key to obtain a first ciphertext; wherein the step of generating the publi...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: WANG JIASHOU, YANG SHAOPING, TAO GANG, LI LIGANG, TANG JUN, ZHAO GUIYAN, YU ZHONGJIANG, NI CHAOXIA, LIU QIYAN, YANG FAN, LUO HUI, YANG CHUANZHEN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a data encryption method and a data decryption method. The data encryption method comprises the following steps: generating a public key and a private key; encrypting the first data by using the public key to obtain a first ciphertext; wherein the step of generating the public key and the private key specifically comprises the substeps of randomly generating the private key; a public key is computed using the private key, the order of the finite field, and the lifting of the base point in the SM2 elliptic curve parameters. According to the method, the public key is obtained by using the SM2 elliptic curve parameter, so that the plaintext does not need to be mapped to the elliptic curve point when the data is coded, the calculation amount is reduced, and the situation that the use efficiency is reduced due to coding and decoding errors is avoided. 本申请公开了一种数据加密方法和数据解密方法,数据加密方法包括:生成公钥和私钥;利用公钥对第一数据进行加密,获得第一密文;其中,生成公钥和私钥具体包括:随机生成私钥;利用私钥、有限域的阶以及SM2椭圆曲线参数中的基点的提升计算公钥。本申请利用SM2椭圆曲线参数获得公钥,由此,在对数据