PCSC Operation APDU Interpreter Vendor instructions SE ATECC DH
September 5, 2025 at 2:26 AMATECC DH instruction
This command asks the SpringCore device to run the ECDH algorithm, using its ATECC Secure Element.
| Field | Value | Remark |
|---|---|---|
| CLA | FF |
|
| INS | F9 |
|
| P1 | E8 |
ECDH agreement |
| P2 | Key Index | 00 to 0D |
| Lc | 20 or 40 |
DataIn is the public key of the peer, either X only (32 bytes) or X followed by Y (64 bytes) |
| DataIn | Peer’s public key | X on 32 bytes Y on 32 bytes (optional) |
| Le | 00 |
Response
| Field | Value | Remark |
|---|---|---|
| DataOut | Shared secret | 32 bytes |
| SW | 9000 on success |
Other values are documented in Status Words |