Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Floating-point number processing method and device, terminal and storage medium

A processing method and floating-point technology, which is applied in the field of data security, can solve problems such as the inability to change the precision of floating-point numbers, the loss of precision of floating-point numbers, and the inability to perform calculations, etc., to achieve efficient encryption and calculation, and save space.

Pending Publication Date: 2022-05-27
上海同态信息科技有限责任公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1. Floating-point numbers cannot use classical cryptography technology for privacy protection, let alone calculations under the background of classical cryptography
[0005] 2. The floating-point numbers processed by the lattice cipher have a large loss of precision. The current best solution, after several floating-point number ciphertext multiplications, the precision of the floating-point numbers cannot become very significant, resulting in unusable calculation results

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Floating-point number processing method and device, terminal and storage medium
  • Floating-point number processing method and device, terminal and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] In order to make the technical means, creative features, goals and effects realized by the present invention easy to understand, the following describes the floating-point number processing method, device, terminal and storage medium of the present invention with reference to the embodiments and accompanying drawings.

[0021]

[0022] figure 1 It is a flow chart of the floating-point number processing method in the embodiment of the present invention.

[0023] refer to figure 1 , the floating-point number processing method provided by the present invention specifically includes the following steps S1 to S5.

[0024] Step S1, obtaining the first floating point number to be encrypted.

[0025] Specifically, the first floating-point number in this embodiment is a floating-point number input by a user, and the floating-point number needs to be uploaded and used to perform a homomorphic operation.

[0026] Step S2, representing the first floating point number as a frac...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a floating-point number processing method and device, a terminal and a storage medium capable of efficiently encrypting and calculating a floating-point number based on a homomorphic encryption algorithm of a classical password, and the method is characterized by comprising the following steps: S1, obtaining a to-be-encrypted first floating-point number; s2, representing the first floating-point number as a score, and obtaining a corresponding to-be-encrypted numerator and a to-be-encrypted denominator; s3, encrypting the to-be-encrypted numerator and the to-be-encrypted denominator based on a homomorphic encryption algorithm to obtain a first numerator and a first denominator corresponding to the first floating-point number; s4, based on the first numerator and the first denominator, completing homomorphic operation for the floating-point number to form a second numerator and a second denominator; and S5, decrypting the second numerator and the second denominator according to a predetermined key, and dividing to obtain a second floating-point number after homomorphic operation is performed on the first floating-point number.

Description

technical field [0001] The invention belongs to the field of data security, and in particular relates to a floating point number processing method, device, terminal and storage medium. Background technique [0002] Since the mathematical foundation of cryptography is based on finite groups, rings, and fields of integers, the processing of floating-point numbers is naturally not supported in the context of cryptography. In recent years, with the gradual popularity of lattice ciphers, there have been some academic innovations in the approximate expression of floating-point numbers, but they still cannot meet the requirements of engineering applications. [0003] From the perspective of privacy computing, the data needs to be encrypted with a cryptographic algorithm, and then the ciphertext is used for operation. In practical engineering, the operation of floating-point numbers must be indispensable. Therefore, this causes the following two problems: [0004] 1. Floating-point...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F21/60G06F7/487
CPCG06F21/602G06F7/4876
Inventor 庞皓天杨赟博魏立斐张懿嘉
Owner 上海同态信息科技有限责任公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products