-
Notifications
You must be signed in to change notification settings - Fork 2
[ Example ] Symmetric key provisioning control fields
This example demonstrates how to configure the provisioning control fields for symmetric key slots in the STSAFE-A120 secure element. These control fields determine the methods and security levels allowed for provisioning symmetric keys into each slot.
Control fields provide fine-grained control over how symmetric keys can be installed into the STSAFE-A120, including whether keys can be written in plaintext, wrapped (encrypted), or derived via ECDHE (Elliptic Curve Diffie-Hellman Ephemeral). This configuration is critical for establishing the security posture of the device.
The following flowchart illustrates the control field configuration process:
Upon execution, the host terminal displays the control field configuration:
----------------------------------------------------------------------------------------------------------------
- STSAFE-A120 Configure Symmetric key slot provisioning control fields example -
----------------------------------------------------------------------------------------------------------------
- Initialize target STSAFE-A120
- Query current control fields for slot 0
-----------------------------------------------------------------------
PROVISIONNING CTRL FIELDS
-----------------------------------------------------------------------
SLOT | CHANGE RIGHT | DERIVED | PLAINTEXT | PUT KEY | WRAPPED | ECDHE
-----------------------------------------------------------------------
00 | x | . | . | . | . | .
-----------------------------------------------------------------------
+--------------------------------------------------------------------------------------------------------------+
| |
| /!\ W A R N I N G /!\ |
| |
| This operation will permanently configure symmetric key provisioning control fields. |
| Once change_right is disabled, these settings cannot be modified again. |
| |
| Press any key to continue and configure control fields: |
| |
+--------------------------------------------------------------------------------------------------------------+
- Configuring control fields...
- Control fields updated successfully
- Query updated control fields for slot 0
-----------------------------------------------------------------------
PROVISIONNING CTRL FIELDS
-----------------------------------------------------------------------
SLOT | CHANGE RIGHT | DERIVED | PLAINTEXT | PUT KEY | WRAPPED | ECDHE
-----------------------------------------------------------------------
00 | x | . | . | x | x | x
The symmetric key slot provisioning control fields include:
- Change Right: Indicates whether control fields can still be modified. Once disabled, the configuration becomes permanent.
- Derived: Allows key derivation using key derivation functions (e.g., HKDF).
- Plaintext: Allows keys to be written in plaintext (not recommended for production).
- Put Key: Allows keys to be installed using the put key command.
- Wrapped (Anonymous): Allows keys to be provisioned using wrapped envelope without authentication.
- Wrapped (Authenticated): Allows keys to be provisioned using wrapped envelope with authentication via specified key slot.
- ECDHE (Anonymous): Allows keys to be provisioned using ECDHE key agreement without authentication.
- ECDHE (Authenticated): Allows keys to be provisioned using ECDHE key agreement with authentication via specified key slot.
Symmetric key provisioning control field configuration is essential for:
- Production Security Policy: Define secure key provisioning methods during device personalization.
- Key Lifecycle Management: Control how symmetric keys can be updated or replaced throughout device lifetime.
- Zero-Touch Provisioning: Enable secure remote key provisioning using ECDHE or wrapped methods.
- Multi-Stage Provisioning: Allow different provisioning methods at different stages of device lifecycle (manufacturing, field deployment, updates).
- Compliance Requirements: Meet security standards by enforcing encrypted key transfer methods.
Recommended Settings for Production:
- Disable plaintext provisioning
- Enable wrapped provisioning with authentication
- Enable ECDHE provisioning for zero-touch scenarios
- Disable change right after configuration to lock settings permanently
WARNING: This is a permanent configuration operation. Once the change right is disabled, control fields cannot be modified. Carefully plan and test your provisioning strategy before deploying to production devices.
- STSAFE-A120 Secure Element
- STSAFE-A110 Secure Element
- Feature Description
- Standard Use-cases
- Product Perso Profile
- STSAFE-A120 : X-NUCLEO-ESE01A1
- STSAFE-A110 : X-NUCLEO-SAFEA1
- Software Package Architecture
- Getting Started with Software Package
-
Project examples list
- Project template
- Echo loop
- Random number generation
- NIST P-256 key pair generation
- NIST P-512 key pair generation
- BRAINPOOL P-512 Key Pair Generation
- Edwards-25519 Key Pair Generation
- Secure Data Storage Zone Access
- Secure data storage counter access
- Hash
- Device authentication
- Multi-step device authentication
- Host key provisioning
- Host key provisioning (Wrapped)
- Command Access Condition provisioning
- Secret or key wrapping
- ECDH
- Symmetric key provisioning Control Fields
- Symmetric key establishment AES-128 CMAC
- Symmetric key establishment AES-256 CCM
- Symmetric Key Management AES-128 CMAC
- Symmetric Key Management AES-256 CCM
- Wrapped Symmetric Key Provisioning - AES-128 CMAC
- Wrapped Symmetric Key Provisioning - AES-256 CCM*