keycard.status.im-old/source/api/apdu_generatekey.md

17 lines
439 B
Markdown
Raw Normal View History

2019-01-24 15:32:26 +00:00
---
id: apdu_generatekey
title: GENERATE KEY
---
# GENERATE KEY
* CLA = 0x80
* INS = 0xD4
* P1 = 0x00
* P2 = 0x00
* Response SW = 0x9000 on success.
* Response Data = the key UID, defined as the SHA-256 of the public key
* Preconditions: Secure Channel must be opened, user PIN must be verified
Generates and stores keys completely on card. The state of the card after execution is the same as if a LOAD KEY command had been performed.