Next: Scdaemon GETATTR, Previous: Scdaemon PKSIGN, Up: Scdaemon Protocol [Contents][Index]
To decrypt some data the caller should use the command
SETDATA hexstring
to tell scdaemon
about the data to be decrypted. The data
must be given in hex notation. The actual decryption is then done
using the command
PKDECRYPT keyid
where keyid is the hexified ID of the key to be used.
If the card is aware of the apdding format a status line with padding
information is send before the plaintext data. The key for this
status line is PADDING
with the only defined value being 0 and
meaning padding has been removed.