Electronic device for encrypting data by public key and methods thereof
Abstract
Disclosed is an electronic device. The electronic device includes a communicator, a memory configured to store data for generating a key, and a processor. The processor may generate a secret key by randomly combining values within a preset range based on the data stored in the memory, generate a public key using the secret key and an error, and store the secret key and the public key in the memory, transmit the public key to an external device using the communicator, and a sum of the number of remaining values other than zero (0), among the values within the preset range, may correspond to a Hamming weight. Accordingly, encryption and decryption may be performed efficiently.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 2 · Forward citations: 0.
Claims (14 — 4 Independent, 10 Dependent)
- Claim 1Independent Claim
An electronic device comprising: a communicator; a memory configured to store data for generating a key; and a processor, wherein the processor is configured to: generate a secret key by randomly combining values within a preset range based on the data stored in the memory, generate a public key using the secret key and an error, and store the secret key and the public key in the memory, transmit the public key to an external device using the communicator, and wherein a sum of the number of remaining values other than zero (0), among the values within the preset range, corresponds to a Hamming weight.
- Claim 2Depends on #1
The electronic device of claim 1, wherein the processor is configured to: obtain a random matrix (A) composed of randomly decided vectors, obtain the error from discrete Gaussian distribution or a distribution within a short statistical distance to the discrete Gaussian distribution, obtain a random vector (b) based on a value obtained through modular operation of the error, the secret key, and the random matrix, wherein the public key comprises the random matrix (A), a seed used for obtaining the random matrix (A), and the random vector (b).
- Claim 3Depends on #2
The electronic device of claim 2, wherein the processor is configured to: obtain a first seed, a second seed, and a third seed by applying an extendable-output function (XOF) for the seed, among the data stored in the memory, obtain the random matrix (A) by applying a random matrix sampler function to the first seed, obtain the secret key s, which is a sparse vector having a Hamming weight h, by applying the Hamming weight sampler function to the second seed, and obtain an error e having standard deviation σ by applying a discrete Gaussian sampler function to the third seed.
- Claim 4Depends on #3
The electronic device of claim 3, wherein, based on receiving, from the external device through the communicator, a ciphertext comprising a first value (c1) obtained by rounding a result value of operation based on a random vector r that randomly extracts values within a preset range and a random matrix A, and a second value (c2) obtained by rounding a result value of operation based on the random vector b and the random vector r, the processor decrypts a message by, after performing modulus operation for each of the first value, the result value of operating of the secret key, and the second value, performing addition.
- Claim 5Independent Claim
An electronic device comprising: a communicator; an interface configured to receive data to be transmitted to an external device; a memory configured to store the data; and a processor, wherein the processor is configured to, based on receiving information about a public key generated by an external device using an error through the communicator: obtain a random vector r that randomly extracts values within a preset range, obtain a random matrix A and a random vector b from the public key, obtain a first value (c1) obtained by rounding a result value of operation based on the random matrix A, and a second value (c2) obtained by rounding a result value of operation based on the random vector b, the random vector r, and the data, respectively, and transmit a ciphertext comprising the first value and the second value to the external device through the communicator.
- Claim 6Depends on #5
The electronic device of claim 5, wherein the processor is configured to: based on the public key comprising the random matrix A, extract the random matrix A, and based on the public key comprising a seed, obtain the random matrix (A) by applying a random matrix sampler function to the seed.
- Claim 7Depends on #6
The electronic device of claim 6, wherein the processor is configured to obtain the random vector r by applying a Hamming weight sampler function to the seed stored in the memory.
- Claim 8Independent Claim
A control method of an electronic device, the method comprising: generating a secret key by randomly combining values within a preset range based on pre-stored data; generating a public key using the secret key and an error; storing the secret key and the public key; and transmitting the public key to an external device, wherein a sum of the number of remaining values other than zero (0), among the values within the preset range, corresponds to a Hamming weight.
- Claim 9Depends on #8
The method of claim 8, wherein the generating the public key comprises: obtaining a random matrix (A) composed of randomly decided vectors; obtaining the error from discrete Gaussian distribution or a distribution within a short statistical distance to the discrete Gaussian distribution; obtaining a random vector (b) based on a value obtained through modular operation of the error, the secret key, and the random matrix; and generating the public key comprising the random matrix (A), a seed used for obtaining the random matrix (A), and the random vector (b).
- Claim 10Depends on #9
The method of claim 9, wherein the generating the public key comprises: obtaining a first seed, a second seed, and a third seed by applying an extendable-output function (XOF) for the pre-stored seed; obtaining the random matrix (A) by applying a random matrix sampler function to the first seed; obtaining an error e having standard deviation o by applying a discrete Gaussian sampler function to the third seed, wherein the generating the secret key comprises obtaining the secret key s, which is a sparse vector having a Hamming weight h, by applying the Hamming weight sampler function to the second seed.
- Claim 11Depends on #10
The method of claim 10, further comprising: based on receiving, from the external device, a ciphertext comprising a first value (c1) obtained by rounding a result value of operation based on a random vector r that randomly extracts values within a preset range and a random matrix A, and a second value (c2) obtained by rounding a result value of operation based on the random vector b and the random vector r, decrypting a message by, after performing modulus operation for each of the first value, the result value of operating of the secret key, and the second value, performing addition.
- Claim 12Independent Claim
An encryption method of an electronic device, the method comprising: receiving information about a public key generated by an external device using an error and storing the information; obtaining a random vector r that randomly extracts values within a preset range; obtaining a random matrix A and a random vector b from the public key; obtaining a first value (c1) obtained by rounding a result value of operation based on the random matrix A, and a second value (c2) obtained by rounding a result value of operation based on the random vector b, the random vector r, and the data, respectively; and transmitting a ciphertext comprising the first value and the second value to the external device.
- Claim 13Depends on #12
The method of claim 12, wherein the obtaining a random matrix A and a random vector b from the public key comprises: based on the public key comprising the random matrix A, extracting the random matrix A; and based on the public key comprising a seed, obtaining the random matrix (A) by applying a random matrix sampler function to the seed.
- Claim 14Depends on #13
The method of claim 13, wherein the obtaining the random vector r comprises obtaining the random vector r by applying a Hamming weight sampler function to the pre-stored seed.
Technical Overview & Description
BACKGROUND 1. Field The disclosure relates to an electronic device for encrypting data by a public key and a method thereof and, more particularly to, an electronic device for generating a public key using an error and performing encryption using the public key, and a method thereof. 2. Description of Related Art When transmitting data to an external device, there is a possibility of leakage of the corresponding data to a third party during transmission. Therefore, it is general to encrypt data and transmit the encrypted data so that even if the data is leaked the third party may not identify the contents of the data. An encryption method is broadly divided into a symmetric key encryption method and an asymmetric key encryption method. In the symmetric key encryption method, a key used for encryption and a key used for decryption are the same and thus speed of the method is fast, but when the key is leaked to the outside, the security may not be guaranteed. In order to address the problem, the asymmetric key encryption method is used. In the asymmetric key encryption method, a public key disclosed to a third party and a secret key (or a private key) owned only by the user are used. The user encrypts a message using the public key and transmits the message and a receiver receiving this message decrypts a ciphertext using own secret key. In the related art, various encryption/decryption technologies have been studied and used. However, the related-art algorithms give a lot of operation burden to a processor and a memory in order to improve security performance. Therefore, there has been a difficulty in using the related-art encryption/decryption technology for a small-sized portable device like a smartphone, a tablet personal computer (PC), a wearable device, or the like. Accordingly, there emerges a necessity for more efficient encryption/decryption technology. SUMMARY The disclosure is devised to address the problems described above, and provides an electronic devic
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (2)
| Patent | Title | Year | Citations |
|---|