Appearance
SDK & CLI reference
This page specifies the Python SDK and the command-line interface of the Veloce agent, both included in the Linux distribution. Cryptographic operations are executed within the local agent; callers hold key handles.
Items marked 1.3 are part of the next release.
Python SDK
python
import veloceSession and status
| Function | Description |
|---|---|
veloce.initialize(socket_path=None) | Connect to the local Veloce agent. Call before any other function. |
veloce.health() | Agent state, approved mode, and entropy health. |
veloce.version() | Component versions and the FIPS certificate. |
veloce.banner() | Version and build information as text. |
veloce.validation_status() | Per-item validation status: FIPS module, entropy source, PQC provider, operating environment. |
veloce.approved_mode_status() | Whether the agent is in approved mode, and why not if it is not. |
veloce.run_fips_self_tests() | Run the module, entropy, and post-quantum self-tests. |
Post-quantum operations
| Function | Description |
|---|---|
veloce.mlkem_generate_keypair() | Generate an ML-KEM-768 key pair. Returns a public key and an opaque private-key handle. |
veloce.mlkem_encapsulate(public_key) | Encapsulate against a public key. Returns (ciphertext, shared_secret). |
veloce.mlkem_decapsulate(private_key_handle, ciphertext) | Decapsulate with a private-key handle. Returns the shared secret. |
veloce.mldsa_generate_keypair() | Generate an ML-DSA-65 key pair. Returns a public key and an opaque private-key handle. |
veloce.mldsa_sign(private_key_handle, message) | Sign a message. Returns the signature. |
veloce.mldsa_verify(public_key, message, signature) | Verify a signature. Returns a boolean. |
veloce.release_key(private_key_handle) | Erase a private key held by the agent. |
Inventory, providers, and entropy
| Function | Description |
|---|---|
veloce.export_cbom(format, path) | Export the agent's cryptographic bill of materials. format is "records" or "cyclonedx". |
veloce.list_crypto_providers() | The FIPS module and the PQC provider, with their recorded hashes. |
veloce.list_entropy_providers() | The seed source and the cloud entropy state. |
veloce.list_policy_profiles() | Available policy profiles. |
veloce.set_ems_mode(enabled) | Turn the connection to the Light Rider entropy service on or off. |
veloce.set_entropy_mixin(enabled) | Turn the cloud entropy mix-in on or off. Requires the connection to be on. |
veloce.generate_diagnostic_bundle(path=None) | Write a redacted diagnostic bundle. |
The environment variable VELOCE_SOCKET selects a non-default agent socket.
CLI (veloce)
The option --json, placed before a command, selects machine-readable output.
| Command | Description |
|---|---|
veloce status | Agent health. |
veloce version | Component versions. |
veloce validation | Per-item validation status. |
veloce self-test | Run the FIPS, entropy, and post-quantum self-tests. |
veloce providers | Crypto providers. |
veloce entropy | Entropy providers, including the cloud entropy state. |
veloce ems on|off | Turn the connection to the Light Rider entropy service on or off. |
veloce mixin on|off | Turn the cloud entropy mix-in on or off. |
veloce policies | Policy profiles. |
veloce cbom [cyclonedx] | Export the CBOM. |
veloce diag | Write a redacted diagnostic bundle. |
veloce scan <path> | Run a qSearch source scan. |
veloce system-scan | Inventory the cryptography on this host. |
veloce kex-demo | 1.3. ML-KEM-768 exchange with both parties on this computer. Prints sizes, timings, and fingerprints. |
veloce kex-offer | 1.3. Two computers, starting party: create a key pair and print the public-key message. |
veloce kex-respond <message> | 1.3. Responding party: print the ciphertext message and the confirmation code. |
veloce kex-finish <handle> <message> | 1.3. Starting party: derive the secret and print the confirmation code. |
veloce kex-cancel <handle> | 1.3. Release an unused key pair. |
The kex- commands are specified in Key exchange between two computers.
CLI (qsearch)
| Command | Description |
|---|---|
qsearch scan <path> --out <dir> | Scan a source tree for cryptographic patterns and PEM certificates. |
qsearch system --out <dir> | Inventory the cryptography present on the host. |
qsearch auto [--root <dir>]... [--no-system] --out <dir> | 1.3. Host inventory and the named folders in one report. |
The output artifacts are specified in Cryptographic discovery.
Underlying cryptography
- Classical algorithms and random generator: wolfCrypt v5.2.1, FIPS 140-3 certificate #4718.
- Post-quantum: ML-KEM-768 and ML-DSA-65, provided beside the FIPS boundary in the same agent.
- Seed source: the processor's hardware entropy instruction (RDSEED) with SP 800-90B health tests.
Related pages
- Quickstart: installation.
- Cryptographic discovery: scope, classification, and output artifacts.

