emSecure
The digital signature suite for embedded systems
- Protect firmware and data against unauthorized modifications
- Verify authenticity and integrity with digital signatures
- Integrate security into virtually any embedded system

Key features

Digital signing and verification
emSecure enables developers to create digital signatures and verify the authenticity and integrity of firmware and other data. This helps detect unauthorized modifications and supports secure firmware update processes.

RSA & ECDSA
emSecure supports RSA and ECDSA digital signatures. Both algorithms use asymmetric cryptography, allowing signatures created with a private key to be verified using the corresponding public key.

Hardware independence
emSecure runs on virtually any embedded system without requiring dedicated cryptographic hardware. Its straightforward API simplifies the integration of digital signing and signature verification into existing applications.

Compact and efficient
Designed for resource-constrained embedded systems, emSecure combines a small memory footprint with efficient signature verification. This makes it suitable for applications where memory and processing power are limited.
Use cases
Anti-tampering
Firmware signing in production & verification by the bootloader
To ensure that only authorized firmware runs on a product, emSecure is used to digitally sign firmware images. A key pair is generated once, with the private key used in the firmware production process and the public key integrated into the product's bootloader.
Before release, each firmware image is signed using the private key. The resulting signature is transferred to the product and stored alongside the firmware.
During firmware updates and at startup, the bootloader verifies the firmware signature using the public key. If verification succeeds, the firmware is started. If verification fails, the bootloader can prevent execution or even erase the firmware.
Anti-cloning
Hardware signing in production & verification by the firmware
To protect products against unauthorized reproduction, emSecure is used to digitally sign hardware-specific data for each genuine product unit. A key pair is generated once, with the private key used in the production process and the public key integrated into the product's firmware.
After assembly and testing, unique, fixed hardware-specific data, such as the microcontroller's unique ID, is read from the unit and signed using the private key. The resulting signature is stored on the unit in an OTP area or a designated memory location.
During operation, the firmware reads the hardware-specific data and verifies it against the stored signature using the public key. If the signature has been copied to a counterfeit unit with a different hardware ID, verification fails and the firmware refuses to run.
How emSecure works
emSecure uses asymmetric cryptography to enable verification of the authenticity and integrity of firmware and other data. A private key is used to create digital signatures, while the corresponding public key is used to verify them.
The process consists of three main steps:
1. Key generation and integration
Generate a private/public key pair using the emKeyGen utility or emSecure's C API. Use emPrintKey to convert the public key into C source code for integration into the application. Keep the private key confidential.
2. Signing and distribution
Use the emSign utility or emSecure's C API to digitally sign firmware or other data with the private key. Distribute the data and its signature to the target system.
3. Verification
The target system uses emSecure's verification API and the public key to verify the digital signature. If verification fails, the target system can reject the firmware or data.
Secure key handling
The security of digital signatures depends on keeping the private signing key confidential. Only the public key is required for signature verification on the target system, allowing the private key to remain securely stored outside the embedded application.
Sign & Verify tools
emSecure includes ready-to-use utilities for key generation, key export, digital signing, and signature verification. These tools simplify integration into existing development and production workflows without requiring custom applications.
The same cryptographic functionality can also be integrated directly into applications using emSecure's C API.
Editions
emSecure is available in two editions based on different digital signature algorithms: RSA and ECDSA. Each offers distinct advantages in terms of performance, memory requirements, key size, and signature size, allowing developers to select the algorithm that best suits their application.
| emSecure-RSA | emSecure-ECDSA |
|---|---|
|
|
Both editions include a complete set of utilities for key generation, digital signing, signature verification, and conversion of keys and signatures into compilable formats.
They also include the source code required to integrate signature generation into production processes and signature verification into applications or firmware.
Example project
emSecure includes a sample application that demonstrates digital signature verification. The example is provided as a SEGGER Embedded Studio project and can be run in the Embedded Studio Simulator or on real hardware.
The project includes a Message.txt file that can be signed using emSign and the provided sample keys. The message and its signature are converted into compilable buffers and integrated into the application, which then verifies the signature.
Developers can modify the message, generate new signatures, and convert the data using the included utilities to explore the signing and verification process.
void main(void) {
int Status;
[...]
printf("Verifying message...");
Status = SECURE_Verify(&PublicKey, 0, 0, message_file, sizeof(message_file), _S, sizeof(_S));
if (Status > 0) {
printf(" OK\nTry modifying the message to see what happens.\n");
} else {
printf("FAILED! The signature does not match the message.\n");
}
[...]
}
Media gallery

Licensing
The software is available under various embedded software license models and can be delivered as source code. All commercial licenses are based on a one-time payment, are royalty-free, and include six months of updates and support from SEGGER’s Embedded Experts.
There are no subscription fees, ensuring predictable and fixed costs over the entire product lifetime.
For non-commercial use, evaluation, and educational purposes, the software is provided under SEGGER’s Friendly License.
FAQ
I want to prevent firmware from being copied to and executed on cloned hardware. How can emSecure help?
Nearly every modern MCU has a unique identifier (UID) that differs from one device to another. By including this UID in the signed data, the signature is valid only for that specific device. If the firmware and signature are copied to cloned hardware with a different UID, signature verification fails. The firmware can perform this verification at startup and refuse to continue execution if verification fails.
I have digitally signed data for my product. Where should signature verification take place?
Signature verification can be performed either within the product or externally. With internal verification, the firmware verifies the digital signature at boot time and refuses to run if verification fails.
With external verification, an application running on a PC, for instance, communicates with the product, reads the data and its signature, and verifies the signature.
I want my product to run only genuine firmware images. How can emSecure ensure this?
To ensure the authenticity and integrity of a firmware image, the entire image can be digitally signed. Rather than relying solely on a CRC to check data integrity, a digital signature is transmitted alongside the firmware during an update.
The application or bootloader verifies the firmware signature using the public key and programs the firmware onto the device only if verification succeeds.
The signature can only be generated using the corresponding private key and is typically created during firmware preparation.
I want to offer additional licenses for my product that are tied to a specific user or computer. Can emSecure generate such license keys?
Yes. emSecure can generate unique license keys based on arbitrary data, such as a computer ID, a username, an email address, or other identifiers.
My product sends data to a computer application. Can I ensure that the application receives data only from my product using emSecure?
Yes. In this case, the product signs the data and the computer application verifies it. To prevent the private key from being extracted from the product, it can be stored in encrypted form on the device or within the application and decrypted only when needed for signing.
Does emSecure support DSA?
No. However, SEGGER provides signing and verification code for DSA. Please contact us if DSA signature verification is required.
Related content
Get in touch with us
Have questions or need assistance? Our Embedded Experts are here to help!
Reach out to us for:
- Licensing quotes
- Technical inquiries
- Project support