Cryptographic Algorithms¶
Overview¶
This chapter describes the cryptographic algorithms supported by System Firmware for authentication operations on High Security (HS) devices.
Signing Algorithms¶
System Firmware supports the following digital signature algorithms for authentication. Each signature algorithm is a combination of an asymmetric cryptography algorithm (RSA or ECDSA) and a hash algorithm.
| Algorithm | Notes |
|---|---|
| RSASSA-PKCS1-v1_5 with SHA-256/384/512 | Standard RSA signature scheme. Hash algorithm depends on key provisioning method. |
| RSASSA-PSS with SHA-512 | RSA with PSS padding. See RSASSA-PSS Signature Algorithm for implementation details |
| ECDSA with SHA-256/384/512 | Elliptic Curve Digital Signature Algorithm. Hash algorithm depends on key provisioning method. |
Key Types and Sizes¶
RSA Keys¶
System Firmware supports RSA keys with the following sizes:
| Key Size | eFuse Keys (via Keywriter) | Keyring Keys (Runtime Import) |
|---|---|---|
| RSA-4096 | Supported | Supported |
| RSA-3072 | Not supported | Supported |
Note
Keys programmed into eFuses via keywriter are limited to RSA-4096 only. RSA-3072 keys can only be imported at runtime via the keyring API
Elliptic Curve (EC) Keys¶
System Firmware supports ECDSA with the following elliptic curves:
| Curve | Notes |
|---|---|
| secp256r1 | NIST P-256 prime curve |
| secp384r1 | NIST P-384 prime curve |
| secp521r1 | NIST P-521 prime curve |
| brainpoolP512r1 | Brainpool 512-bit prime curve |
Encryption Algorithms¶
System Firmware supports the following encryption algorithms on the payload when the System Firmware Encryption Extension is present in the certificate
| Algorithm |
|---|
| AES-256-CBC |
| AES-256-CTR |
Hash Algorithms¶
System Firmware supports the following hash algorithms:
| Hash Algorithm | Key Provisioning Method |
|---|---|
| SHA-512 | eFuse keys (via Keywriter) and Keyring keys (Runtime Import) |
| SHA-384 | Keyring keys only (Runtime Import) |
| SHA-256 | Keyring keys only (Runtime Import) |
Usage:
- Signature generation: Hash algorithm is combined with the asymmetric algorithm (RSA or ECDSA)
- Payload integrity: Hash is used for payload integrity verification
- eFuse keys: Limited to SHA-512 only
- Keyring keys: Support SHA-256, SHA-384, and SHA-512
- Hash value is specified in System Firmware Image Integrity Extension certificate extension
SoC Specific Info¶
The following table shows cryptographic algorithm support across different SoC families:
| SoC | RSASSA-PKCS1-v1_5 | RSASSA-PSS | ECDSA | AES-256-CBC | AES-256-CTR |
|---|---|---|---|---|---|
| AM62x | Yes | Yes | Yes | Yes | Yes |
| AM62Ax | Yes | Yes | Yes | Yes | Yes |
| AM62Px | Yes | Yes | Yes | Yes | Yes |
| AM62Lx | Yes | Yes | Yes | Yes | |
| AM64x | Yes | Yes | Yes | Yes | Yes |
| AM65x | Yes | Yes | Yes | Yes | |
| AM275x | Yes | Yes | Yes | Yes | Yes |
| J721E | Yes | Yes | Yes | Yes | |
| J7200 | Yes | Yes | Yes | Yes | |
| J721S2 | Yes | Yes | Yes | Yes | |
| J722S | Yes | Yes | Yes | Yes | |
| J784S4 | Yes | Yes | Yes | Yes |
See Also¶
- System Firmware Authentication and Decryption Requests - Authentication and decryption request details
- RSASSA-PSS Signature Algorithm - RSASSA-PSS specific implementation details
- Keyring Management - Runtime key import and management
- Key Writer - eFuse key provisioning
- TISCI_MSG_PROC_AUTH_BOOT - Authentication API reference