1
0
mirror of https://github.com/Yubico/yubikey-ksm.git synced 2025-02-12 15:54:28 +01:00
yubikey-ksm/doc/Decryption_Protocol.adoc

42 lines
907 B
Plaintext
Raw Normal View History

2014-09-30 21:46:19 +02:00
Yubikey KSM Decryption Protocol
-------------------------------
2014-09-19 15:02:49 +02:00
The protocol for asking the Yubikey Key Storage Module to decrypt an
OTP is to request a HTTP resource as follows:
http://ykksm.example.com/wsapi/decrypt/?otp=dteffujehknhfjbrjnlnldnhcujvddbikngjrtgh
On success, the response will follow this format:
^OK .*
For example:
OK counter=000f low=c541 high=a7 use=04
The content of the various fields are as follows:
2014-10-29 14:06:08 +01:00
counter::
16-bit hex integer, counting upwards on each powerup&touch
2014-09-19 15:02:49 +02:00
2014-10-29 14:06:08 +01:00
low::
16-bit hex integer, low part of time-stamp of OTP
2014-09-19 15:02:49 +02:00
2014-10-29 14:06:08 +01:00
high::
8-bit hex integer, high part of time-stamp of OTP
2014-09-19 15:02:49 +02:00
2014-10-29 14:06:08 +01:00
use::
8-bit hex integer, counting upwards on each touch
2014-09-19 15:02:49 +02:00
On soft errors, the response will follow this format:
^ERR .*
For example:
ERR Invalid OTP format
The data matching .* will be a english error message in one line.
Any other kind of response means a hard error occured.