# US 2025/0097048 A1 · Low-memory dilithium with masked hint vector computation

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0097048 A1
- Document ID: US20250097048A1
- Status: Published application
- Kind: A1
- Application number: 18/366,384
- Filed: 2023-08-07
- Published: 2025-03-20
- Earliest claimed: 2023-08-07
- Assignees: NXP B.V.
- Applicants: NXP B.V.
- Inventors: Joost Roland Renes; Tobias Schneider; Melissa Azouaoui; Mohamed ElGhamrawy
- Web page: https://patentgrep.com/patent/US20250097048A1

## CPC

- H04L 9/3247: {involving digital signatures}
- H04L 9/0852: {Quantum cryptography (transmission systems employing electromagnetic waves other than radio waves, e.g. light, infrared H04B10/00; wavelength-division multiplex systems H04J14/02; WDM arrangements H04J14/03)}
- H04L 9/0869: {involving random numbers or seeds}
- H04L 9/3252: {using DSA or related signature schemes, e.g. elliptic based signatures, ElGamal or Schnorr schemes}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method of performing a Dilithium signature operation on a message M using a secret key sk, including: calculating a value {tilde over (r)} based upon w0, c, and s2, where w0 and c are calculated as part of the Dilithium signature operation and s2 is part of the secret key sk; performing a bound check on {tilde over (r)} based upon γ2 and β, where γ2 and β are parameters of the Dilithium signature operation; calculating a hint h based on the value {tilde over (r)} and deleting the value {tilde over (r)} in a memory; regenerating a value y using an ExpandMask function; calculating z based upon y, c, and s1, where s1 is part of the secret key sk and replacing y with z in the memory; performing a bound check on z based on γ1 and β, where γ1 is a parameter of the Dilithium signature operation; and returning a digital signature of the message M where the digital signature includes z and h.

## Claims

### Claim 1

A method of performing a Dilithium signature operation on a message M using a secret key sk, comprising:
calculating a value {tilde over (r)} upon w0, c, and s2, where w0 and c are calculated as part of the Dilithium signature operation and s2 is part of the secret key sk;
performing a bound check on {tilde over (r)} based upon γ2 and β, where γ2 and β are parameters of the Dilithium signature operation;
calculating a hint h based on the value {tilde over (r)} and deleting the value {tilde over (r)} in a memory;
regenerating a value y using an ExpandMask function;
calculating z based upon y, c, and s1, where s1 is part of the secret key sk and replacing y with z in the memory;
performing a bound check on z based on γ1 and β, where γ1 is a parameter of the Dilithium signature operation; and
returning a digital signature of the message M where the digital signature includes z and h.

### Claim 2 (depends on 1)

The method of claim 1, wherein calculating the value {tilde over (r)} includes calculating:
r
˜
=
w
0
-
cs
2
.

### Claim 3 (depends on 1)

The method of claim 1, wherein performing a bound check on {tilde over (r)} includes determining if

r
˜

∞
≥
γ
2
-
β
.

### Claim 4 (depends on 1)

The method of claim 1, wherein calculating the hint h is further based on c, t0, w1, and γ2, where to is part of the secret key sk, where w1 is calculated as part of the Dilithium signature operation, and where γ2 is a parameter of the Dilithium signature operation.

### Claim 5 (depends on 1)

The method of claim 1, further comprising after calculating the hint h determining if

ct
0

∞
≥
γ
2
.

### Claim 6 (depends on 1)

The method of claim 1, wherein regenerating the value y is based upon ρ′ and κ where κ is a counter value and ρ′ is a randomly generated value.

### Claim 7 (depends on 1)

The method of claim 1, wherein regenerating the value y is based upon ρ′ and κ, where κ is a counter value and ρ′ is based on the message M.

### Claim 8 (depends on 1)

The method of claim 1, wherein calculating z includes calculating z=y+cs1.

### Claim 9 (depends on 1)

The method of claim 1, wherein performing a bound check on z includes determining if

z

∞
≥
γ
1
-
β
.

### Claim 10 (depends on 1)

The method of claim 1, further comprising determining if a number of 1's in h is greater than ω, where ω is a parameter of the Dilithium signing algorithm.

### Claim 11 (depends on 1)

The method of claim 1, wherein {tilde over (r)}, z, and y are masked using a plurality of shares.

### Claim 12

A data processing system comprising instructions embodied in a non-transitory computer readable medium, the instructions for a method of performing a Dilithium signature operation on a message M using a secret key sk, the instructions, comprising:
calculating a value {tilde over (r)} based upon w0, c, and s2, where w0 and c are calculated as part of the Dilithium signature operation and s2 is part of the secret key sk;
performing a bound check on {tilde over (r)} based upon γ2 and β, where γ2 and β are parameters of the Dilithium signature operation;
calculating a hint h based on the value {tilde over (r)} and deleting the value {tilde over (r)} in a memory;
regenerating a value y using an ExpandMask function;
calculating z based upon y, c, and s1, where s1 is part of the secret key sk and replacing y with z in the memory;
performing a bound check on z based on γ1 and β, where γ1 is a parameter of the Dilithium signature operation; and
returning a digital signature of the message M where the digital signature includes z and h.

### Claim 13 (depends on 12)

The data processing system of claim 12, wherein calculating the value f includes calculating:
r
˜
=
w
0
-
cs
2
.

### Claim 14 (depends on 12)

The data processing system of claim 12, wherein performing a bound check on {tilde over (r)} includes determining if ∥{tilde over (r)}∥∞≥γ2−β.

### Claim 15 (depends on 12)

The data processing system of claim 12, wherein calculating the hint h is further based on c, t0, w1, and γ2, where to is part of the secret key sk, where w1 is calculated as part of the Dilithium signature operation, and where γ2 is a parameter of the Dilithium signature operation.

### Claim 16 (depends on 15)

The data processing system of claim 15, further comprising after calculating the hint h determining if ∥ct0∥28≥γ2.

### Claim 17 (depends on 12)

The data processing system of claim 12, wherein regenerating the value y is based upon ρ′ and κ, where k is a counter value and ρ′ is a randomly generated value.

### Claim 18 (depends on 12)

The data processing system of claim 12, wherein regenerating the value y is based upon ρ′ and κ, where κ is a counter value and ρ′ is based on the message M.

### Claim 19 (depends on 12)

The data processing system of claim 12, wherein calculating z includes calculating z=y+cs1.

### Claim 20 (depends on 12)

The data processing system of claim 12, wherein performing a bound check on z includes determining if ∥z∥28≥γ1−β.

### Claim 21 (depends on 12)

The data processing system of claim 12, further comprising determining if a number of 1's in h is greater than ω, where ω is is a parameter of the Dilithium signing operation.

### Claim 22 (depends on 12)

The data processing system of claim 12, wherein {tilde over (r)}, z, and y are masked using a plurality of shares.
