Adding unwrap(), to decrypt and verify secure APDU.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2022-04-10 20:23:36 +02:00
parent 57d593561a
commit c3a93a46ba
4 changed files with 148 additions and 1 deletions

View File

@@ -1963,6 +1963,7 @@ static const cmd_t cmds[] = {
};
int sc_hsm_process_apdu() {
int r = sm_unwrap();
for (const cmd_t *cmd = cmds; cmd->ins != 0x00; cmd++) {
if (cmd->ins == INS(apdu))
return cmd->cmd_handler();