Two firmware packages can have the same name and version and still contain different bytes. The interesting question is which bytes the operator approved, and where that approval can be checked after the file leaves the workstation.
SLX SecureToken USB is a development-board demonstrator for that decision. A Windows app sends a synthetic release package to a Nordic nRF5340 DK. The token hashes the received bytes, shows the version and destination on its own display and signs a receipt after PIN entry and a separate physical confirmation. The receipt can be checked on another machine with the original package and the trusted public key.
What a signed approval needs to cover
A SHA-256 digest identifies the contents of a package. Its value as evidence depends on where the expected digest came from. If a release service obtains the digest from an authenticated record, it can compare that field to the package it is about to distribute.
Authorization also needs context. An image can be valid for one board revision and inappropriate for another. The release decision therefore includes the version, intended destination and operation. The production component that controls distribution or installation applies the policy. In a field-service workflow, for example, that might mean authorization for one identified device during a maintenance window.
The prototype separates the token's approval record from the firmware image signature that a bootloader checks. That separation gives each signing authority a defined job.
ECDSA P-256 and two SHA-256 digests
ECDSA uses a private key to generate the signature and its corresponding public key to verify it. In the P-256 format used by PSA Crypto here, the signature consists of two integers, r and s, taking 32 bytes each.
The package digest and the digest supplied to the signer are two different values. The first covers the bytes of the package. It becomes a field in the approval record with the release identifier, size, version, destination, identities and request context. The token hashes that record and signs the resulting digest.
The Windows app verifies the live response against the current request. A fresh identifier binds the response to that operation. A historical receipt can also be checked offline. The verifier uses an independently retained public key, verifies the signed record and compares the package bytes with the digest in the record. Long-term audit also needs a policy for key replacement, revocation and time.
Inside the nRF5340
The nRF5340 has application and network Cortex-M33 cores. The application core runs both the Non-secure Zephyr USB transport and the Secure Trusted Firmware-M environment. The network core stays inactive in this USB profile. TrustZone states and the System Protection Unit make it possible to assign memory and peripherals to a defined boundary. In the demonstrator, the Secure partition drives the SPI display, reads the buttons and controls the signing decision.
CryptoCell-312 provides entropy and cryptographic engines on the application side. The actual path depends on the build. In the signed DK build, PSA dispatches ECDSA to the Oberon software implementation on the Cortex-M33. Nordic's CTR-DRBG uses CryptoCell entropy and supplies the random bytes needed by the software. The persistent keys and the PIN verifier use the TF-M and PSA storage design on internal flash.
The first pairing step checks the token's public-key fingerprint against a reference obtained separately. The client is registered on the token after local confirmation. With those identities established, the display can be used to compare the release details derived on the device with the expected work order. The PIN grants access to the review path. A subsequent button press records the approval.
A one-byte test on the DK
On the physical bench, release 1.1.0 was approved over USB after PIN entry and confirmation. The original 127-byte package and the signed receipt passed verification in the app and in a separate verifier. The copy with one modified payload byte retained the same version and destination. Both verifiers rejected it because its digest differed from the digest in the receipt.
Two real requests produced distinct identifiers. Reused responses were checked separately in the CDC simulator. The DK results establish the physical signing and persistence path. For a product, the same workflow needs target-specific checks of the update policy, key provisioning, debug access and recovery.
The design question is where to enforce the approval. A test fixture, distribution service and bootloader each have different responsibilities. Putting the verification at the point where it can actually stop a mismatched package is what turns the receipt into a release control.
The full SLX SecureToken USB project includes the threat model, the nRF5340 diagrams and a description of the bench validation.
Digital Signature Standard, NIST FIPS 186-5 and Nordic nRF5340 CryptoCell-312 documentation.




