Operation
Entropy generation
The entropy byte stream produced by the AlphaRNG is based on electrical noise from two Zener diodes working in avalanche mode. The independent electrical noise created by each circuit is amplified and sampled into a raw byte stream with a uniform distribution of random values. The two raw byte streams are then combined and de-biased to produce the resulting entropy byte stream. The AlphaRNG software kit provides an API for retrieving data at each processing stage, for evaluation or for applying a different post-processing or conditioning algorithm.
Establishing a secure session
The AlphaRNG implements an API for establishing a secure connection with a computer over a USB interface. The secure connection is initiated on the computer by the AlphaRNG software API (the client). Once the client establishes a connection over the USB interface, it creates a session request, encrypts it with the public RSA key, and sends it to the AlphaRNG (see the figure below). A session request consists of parameters such as the symmetric cipher, a randomly created cipher key, a new non-reusable cipher IV, the cipher AAD, the MAC algorithm, a randomly created MAC key, a new unique non-reusable request token, and a newly generated MAC value of the plain request.
The AlphaRNG receives the session request, decrypts it with its secret RSA key, generates its own MAC value of the plain request (using the MAC key provided in the same request), and compares it with the MAC value provided in the request. Upon successful validation of the session request, the AlphaRNG stores the new session parameters and uses them for the duration of the session. It then creates a response packet, encrypts it with the session cipher and the key/IV/AAD provided, and sends the response packet back to the client. A response packet consists of the session cipher used, the cipher tag, the request token, the MAC value of the plain response, and the RNG internal status code.
The client receives the response, decrypts it with the session cipher using the key/IV/AAD and cipher tag provided, generates its own MAC value of the plain response and matches it against the one provided, then compares the token in the response with the one initially generated for the session request. Once the response is validated, the session is established and the client can communicate securely with the AlphaRNG over the USB interface.

Sending commands over the session
Once a secure connection has been established, the client can send commands to the AlphaRNG and receive responses. The client creates a command packet, generates the MAC value of the plain command data (using the session MAC algorithm and the MAC key), and includes it in the packet. It then encrypts the packet with the session cipher and the key/IV/AAD and sends it to the USB device. The command packet consists of parameters such as the cipher used, a new non-reusable cipher IV, the cipher tag, the MAC value of the plain command data, the command ID, and a freshly generated unique non-reusable command token.
The AlphaRNG receives the command, decrypts it with the session cipher and the key/AAD/IV, generates the MAC value using the session MAC algorithm and the MAC key, and compares it with the MAC value provided in the command packet. Upon successful validation, the AlphaRNG handles the command, creates a response packet, generates its MAC value, encrypts the response packet with the session cipher and the key/IV/AAD, and sends it back to the client. A response packet consists of the session cipher used, the command token, the cipher tag, the MAC value of the plain response, the data payload, and the RNG internal status code.
The client receives the response, decrypts it with the session cipher using the key/IV/AAD and cipher tag provided, generates its own MAC value of the plain response and compares it against the one provided in the packet, then compares the token in the response with the one initially generated for the command packet. Upon successful validation of the response packet, the client checks the RNG internal status and dispatches the response payload accordingly.
Public keys
The AlphaRNG software kit includes four pre-installed public keys: a 2048-bit RSA key, a 1024-bit RSA key, and for AlphaRNG V1.2 devices a 3072-bit RSA key and a 4096-bit RSA key. These keys allow you to connect securely to any AlphaRNG device. In addition, each AlphaRNG comes with its own unique 2048-bit RSA public key for exclusive use with that specific device. AlphaRNG V1.2 devices additionally ship with a unique 3072-bit RSA public key and a unique 4096-bit RSA public key.
Supported systems
- Linux (x86, x64, ARM)
- FreeBSD 12/13/14
- macOS (Intel and Apple Silicon)
- Windows 10/11 (64-bit) and Windows Server 2016/2019 (64-bit)
Fabrication and testing
All AlphaRNG devices are designed, assembled, programmed, and tested in the United States. After each device is assembled, both random noise sources are individually inspected and verified. The device does not require any tune-up after it is assembled, and the quality of the entropy produced remains constant.
Operating temperature
- Maximum ambient temperature in active mode: 81°F (27°C). The connected device should be located at least 1 inch away from other USB devices in an area with free or forced air circulation.
Other information
- Device version currently in production: AlphaRNG V1.2
- Weight: 22 grams (0.78 oz)
- Power consumption: 220 mA in active mode and 90 mA when inactive
- Lead-free and RoHS compliance: all parts and materials used in AlphaRNG devices are lead-free and RoHS compliant
- Tested and compliant with FCC Part 15 (Class B), ISED ICES-003 (Class B), and CE requirements. See the compliance page for details.
- Filled inside with an epoxy compound for protection and heat dissipation