Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oath: add rename instruction to protocol #294

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions content/OATH/YKOATH_Protocol.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ performed before they are available, if a validation code is set.
|DELETE |0x02 | Y
|SET CODE |0x03 | Y
|RESET |0x04 | N
|RENAME |0x05 | Y
|LIST |0xa1 | Y
|CALCULATE |0xa2 | Y
|VALIDATE |0xa3 | N
Expand Down Expand Up @@ -198,6 +199,41 @@ Resets the application to just-installed state.
|Success | 0x9000
|================

== RENAME INSTRUCTION
Renames a credential.

NOTE: This is only available in YubiKey 5.3 and newer.

=== Request Syntax
|===================
|CLA |0x00
|INS |0x05
|P1 |0x00
|P2 |0x00
|Lc |Length of Data
|Data|Rename Data
|===================

=== Rename Data
|===================
|Old Name tag |0x71
|Old Name length |Length of old name data, max 64 bytes
|Old Name data |Old name
|New Name tag |0x71
klali marked this conversation as resolved.
Show resolved Hide resolved
|New Name length |Length of new name data, max 64 bytes
|New Name data |New name
|===================

=== Response Codes
|=========================
|Success | 0x9000
|No such object | 0x6984
|Name already used| 0x6984
klali marked this conversation as resolved.
Show resolved Hide resolved
|Auth required | 0x6982
|Wrong syntax | 0x6a80
|=========================


== LIST INSTRUCTION
Lists configured credentials.

Expand Down