Skip to main content

aen-secure-element-sign

AEN-native OPTIGA Trust M signing: init the secure element on BRD_I2C, read product info, and issue an ECDSA-P256 sign APDU over a SHA-256 digest. The E1M-AEN sibling of the V2N example — identical portable <alp/*> src/.

Source: examples/aen/aen-secure-element-sign/.

What it does

  1. Opens BRD_I2C — on AEN that is the Alif LPI2C0 on the low-power island (P7_4 SCL_A / P7_5 SDA_A).
  2. Initialises OPTIGA Trust M at address 0x30, reads product info.
  3. Issues an ECDSA-P256 sign APDU against a SHA-256 digest.

Bench note: requires LPI2C0 enabled on the board.

board.yaml

som:
sku: E1M-AEN801

preset: e1m-evk

cores:
m55_he:
app: ./src
peripherals: [i2c]

chips:
- optiga_trust_m

diagnostics:
log_level: info

Expected output

[secure-element-sign] OPTIGA product info: ...
[secure-element-sign] ECDSA-P256 signature (64 bytes): ...

See also

Questions about this page? Discuss in Community Forum