Apparatus and method for ciphertext comparison capable of preventing side channel attack

US12526128B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12526128-B2
Application numberUS-202218702071-A
CountryUS
Kind codeB2
Filing dateOct 28, 2022
Priority dateOct 28, 2021
Publication dateJan 13, 2026
Grant dateJan 13, 2026

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A ciphertext comparison method according to an embodiment is performed by a processor in a computing apparatus, and the method includes an operation of segmenting a first ciphertext and a second ciphertext into m part bitstreams (in this instance, m is a natural number satisfying 1<m), respectively; an operation of extracting a value corresponding to a j−1th part bitstream (in this instance, j=i+1, i is a natural number satisfying 0≤i≤m−1) of the first ciphertext and a j−1th part bitstream of the second ciphertext, as a jth intermediate value between a first value and a second value in a first lookup table including the first value and the second value of which Hamming weights are identical; an operation extracting a value corresponding to the jth intermediate value and a j−1th result value, as a jth result value between a third value and a fourth value in a second lookup table including the third value and the fourth value of which Hamming weights are identical; and in a case of j≠m, an operation of repeatedly performing extraction as the jth intermediate value and extraction as the jth result value by increasing J; and in a case of j=m, an operation of outputting an mth result value as a result value of comparison between the first ciphertext and the second ciphertext.

First claim

Opening claim text (preview).

The invention claimed is: 1 . A ciphertext comparison method performed by a processor in a computing apparatus, the method comprising: segmenting a first ciphertext and a second ciphertext into m part bitstreams (in this instance, m is a natural number satisfying 1<m), respectively; extracting a value corresponding to a j−1 th part bitstream (in this instance, j=i+1, i is a natural number satisfying 0≤i≤m−1) of the first ciphertext and a j−1 th part bitstream of the second ciphertext, as a j th intermediate value between a first value and a second value in a first lookup table including the first value and the second value of which Hamming weights are identical; extracting a value corresponding to the j th intermediate value and a j−1 th result value, as a j th result value between a third value and a fourth value in a second lookup table including the third value and the fourth value of which Hamming weights are identical; and in a case of j≠m, repeatedly performing extraction as the j th intermediate value and extraction as the j th result value by increasing J; and in a case of j=m, outputting an m th result value as a result value of comparison between the first ciphertext and the second ciphertext. 2 . The method of claim 1 , wherein the segmenting comprises segmenting, based on a predetermined segmentation unit, the first ciphertext and the second ciphertext into m part bitstreams, respectively. 3 . The method of claim 1 , wherein the extracting as the j th intermediate value comprises extracting a value of which an index is identical to a bitstream obtained by concatenating the j−1 th part bitstream of the first ciphertext and the j−1 th part bitstream of the second ciphertext, as the j th intermediate value between the first value and the second value in the first lookup table, and wherein the extracting as the j th result value comprises extracting a value of which an index is identical to a value obtained by concatenating the j th intermediate value and the j−1 th result value, as the j th result value between the third value and the fourth value in the second lookup table. 4 . The method of claim 1 , wherein the first value and the second value are predetermined values indicating whether the j−1 th part bitstream of the first ciphertext and the j−1 th part bitstream of the second ciphertext are identical, and wherein the third value and the fourth value are predetermined values indicating whether the first ciphertext and the second ciphertext are identical. 5 . The method of claim 1 , wherein the j th intermediate value satisfies Equation 2 below, t ⁢ m ⁢ p j = T 1 [ C j - 1 ⁢  C j - 1 ′ ] = { A 1 , if C j - 1 = C j - 1 ′ A 2 , if C j - 1 ≠ C j - 1 ′ [ Equation ⁢ 2 ] (in this instance, C j−1 denotes the j−1 th part bitstream of the first ciphertext that satisfies C j−1 ∈[0,2 n ), C′ j−1 denotes the j−1 th part bitstream of the second ciphertext that satisfies C′ j−1 ∈[0,2 n ), n denotes a predetermined segmentation unit, A 1 denotes the first value, A 2 denotes the second value, and T 1 [C j−1 ||C′ j−1 ] denotes a value of which an index is C j−1 ||C′ j−1 in the first lookup table). 6 . The method of claim 5 , wherein the j th result value satisfies Equation 3 or Equation 4 below, r j =

Assignees

Inventors

Classifications

  • Testing cryptographic entity, e.g. testing integrity of encryption key or encryption algorithm · CPC title

  • Manipulating the length of blocks of bits, e.g. padding or block truncation · CPC title

  • H04L9/003Primary

    for power analysis, e.g. differential power analysis [DPA] or simple power analysis [SPA] · CPC title

  • Countermeasures against side channel or fault attacks · CPC title

  • Passive attacks, e.g. eavesdropping or listening without modification of the traffic monitored · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12526128B2 cover?
A ciphertext comparison method according to an embodiment is performed by a processor in a computing apparatus, and the method includes an operation of segmenting a first ciphertext and a second ciphertext into m part bitstreams (in this instance, m is a natural number satisfying 1<m), respectively; an operation of extracting a value corresponding to a j−1th part bitstream (in this instance, j=…
Who is the assignee on this patent?
Samsung Sds Co Ltd, Univ Kookmin Ind Acad Coop Found
What technology area does this patent fall under?
Primary CPC classification H04L9/003. Mapped technology areas include Electricity.
When was this patent published?
Publication date Tue Jan 13 2026 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 4 related publications on this page (citations in our corpus or others sharing the same primary CPC).