# US 2025/0211435 A1 · Configurable variable-word size xorshift random number generator

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

- Number: US 2025/0211435 A1
- Document ID: US20250211435A1
- Status: Published application
- Kind: A1
- Application number: 18/396,412
- Filed: 2023-12-26
- Published: 2025-06-26
- Earliest claimed: 2023-12-26
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Saurav MAJI; Anuj DUBEY; Sachin TANEJA; Raghavan KUMAR; Sanu K. MATHEW
- Web page: https://patentgrep.com/patent/US20250211435A1

## CPC

- H04L 9/0869: {involving random numbers or seeds}
- H04L 9/008: {involving homomorphic encryption}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Efficient generation of uniform random numbers for FHE public key generation across varying prime numbers with different bit width is provided by configuring an xorshift linear feedback shift register (LFSR) based Random Number Generator (RNG) to optimal bit width while maintaining the uniformity properties. The prime value and corresponding xorshift RNG tap locations are used to configure the xorshift LFSR based RNG to generate the random numbers between [0, 2m] where m is configured to generate the next power of 2 corresponding to a selected prime q value. The configuration of the xorshift LFSR based RNG reduces the worst-case rejection rate from 100% to 50% across prime q values from 17 bits to 32 bits.

## Claims

### Claim 1

An apparatus comprising:
a fully homomorphic encryption accelerator comprising:
a key generator module to generate fully homomorphic encryption relinearization public keys from a seed, the fully homomorphic encryption relinearization public keys to be used by the plurality of compute elements to perform operations on polynomials, the key generator module comprising a plurality of key generator circuitry, each key generator circuitry to be loaded with the seed in response to a Key Generation seed instruction, each key generator circuitry comprising a configurable random number generator, the configurable random number generator to be loaded with a prime q value in response to the Key Generation seed instruction, the configurable random number generator configured to generate random numbers between [0, 2m) where m is configured to generate a next power of 2 corresponding to the prime q value; and
scratch pad memory to store coefficients used by the plurality of compute elements to perform operations on polynomials; and
memory to store data to be processed by the fully homomorphic encryption accelerator.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the configurable random number generator is an xorshift random number generator.

### Claim 3 (depends on 2)

The apparatus of claim 2, wherein the configurable random number generator is to be loaded with tap locations in response to the Key Generation seed instruction, the configurable random number generator is to use tap locations to generate the random numbers.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein key generation operations are initiated in each key generator circuitry in response to a Key Generation start stop instruction.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the key generator module comprises 16 key generator circuitry.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein each key generator circuitry comprises:
samplers to map raw random number generator values received from the configurable random number generator from a number space to a ciphertext modulus space; and
buffers to store valid values received from the samplers.

### Claim 7 (depends on 6)

The apparatus of claim 6, wherein the number space is 0-(2m−1) and the ciphertext modulus space is 0-(q−1).

### Claim 8 (depends on 7)

The apparatus of claim 7, wherein the fully homomorphic encryption accelerator further comprises:
a compute engine control block, the compute engine control block is to include a Keygen valid vector, the Keygen valid vector including one bit for each key generator circuitry, a respective bit in the Keygen valid vector set to valid when the buffers in the key generator circuitry are full.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein in response to a Key Generation load instruction, if all bits in the keygen valid vector are valid, valid values stored in the buffers are output to a compute engine and all bits in the keygen valid vector are cleared.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein the buffers comprise FIFOs, the FIFOs to store 128 bytes of valid values.

### Claim 11

A system comprising:
a processor core;
a fully homomorphic encryption accelerator comprising:
a key generator module to generate fully homomorphic encryption relinearization public keys from a seed, the fully homomorphic encryption relinearization public keys to be used by a plurality of compute elements to perform operations on polynomials, the key generator module comprising a plurality of key generator circuitry, each key generator circuitry to be loaded with the seed in response to a Key Generation seed instruction, the key generator circuitry comprising a configurable random number generator, a configurable random number generator to be loaded with a prime q value in response to the Key Generation seed instruction, the configurable random number generator configured to generate random numbers between [0, 2m) where m is configured to generate a next power of 2 corresponding to the prime q value; and
scratch pad memory to store coefficients used by the plurality of compute elements to perform operations on polynomials; and
memory to store data to be processed by the fully homomorphic encryption accelerator.

### Claim 12 (depends on 11)

The system of claim 11, wherein the configurable random number generator is an xorshift random number generator.

### Claim 13 (depends on 12)

The system of claim 12, wherein the configurable random number generator is to be loaded with tap locations in response to the Key Generation seed instruction, the configurable random number generator is to use tap locations to generate the random numbers.

### Claim 14 (depends on 11)

The system of claim 11, wherein key generation operations are initiated in each key generator circuitry in response to a Key Generation start stop instruction.

### Claim 15 (depends on 11)

The system of claim 11, wherein the key generator module comprises 16 key generator circuitry.

### Claim 16 (depends on 11)

The system of claim 11, wherein each key generator circuitry comprises:
samplers to map raw random number generator values received from the configurable random number generator from a number space to a ciphertext modulus space; and
buffers to store valid values received from the samplers.

### Claim 17 (depends on 16)

The system of claim 16, wherein the number space is 0-(2m−1) and the ciphertext modulus space is 0-(q−1).

### Claim 18

A method comprising:
generating, by a key generator module in a fully homomorphic encryption accelerator, fully homomorphic encryption relinearization public keys from a seed, the key generator module comprising a plurality of key generator circuitry;
using, by a plurality of compute elements, the fully homomorphic encryption relinearization public keys to perform operations on polynomials;
loading, each key generator circuitry with the seed in response to a Key Generation seed instruction, the key generator circuitry comprising a configurable random number generator;
loading the configurable random number generator with a prime q value in response to the Key Generation seed instruction, the configurable random number generator configured to generate random numbers between [0, 2m) where m is configured to generate a next power of 2 corresponding to the prime q value;
storing, in a scratch pad memory in the fully homomorphic encryption accelerator, coefficients to be used by the plurality of compute elements to perform operations on polynomials; and
storing, in a memory, data to be processed by the fully homomorphic encryption accelerator.

### Claim 19 (depends on 18)

The method of claim 18, wherein the configurable random number generator is an xorshift random number generator.

### Claim 20 (depends on 19)

The method of claim 19, further comprises:
loading the configurable random number generator with tap locations in response to the Key Generation seed instruction, the configurable random number generator is to use tap locations to generate the random numbers.
