diff --git a/content/OATH/YKOATH_Protocol.adoc b/content/OATH/YKOATH_Protocol.adoc index 54132e188..8510630dc 100644 --- a/content/OATH/YKOATH_Protocol.adoc +++ b/content/OATH/YKOATH_Protocol.adoc @@ -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 @@ -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 +|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 +|Auth required | 0x6982 +|Wrong syntax | 0x6a80 +|========================= + + == LIST INSTRUCTION Lists configured credentials.