Show / Hide Table of Contents

DeleteKeySet Method

DeleteKeySet(byte, bool)

Delete the key set with the given keyVersionNumber. If the key set to delete is the last SCP03 key set on the YubiKey, pass true as the isLastKey arg.

C#
public void DeleteKeySet(byte keyVersionNumber, bool isLastKey = false)

Parameters

Type Name Description
byte keyVersionNumber

The number specifying which key set to delete.

bool isLastKey

If this key set is the last SCP03 key set on the YubiKey, pass true, otherwise, pass false. This arg has a default of false so if no argument is given, it will be false.

Remarks

The key set used to create the SCP03 session cannot be the key set to be deleted, unless both of the other key sets have been deleted, and you pass true for isLastKey. In this case, the key will be deleted but the SCP03 application on the YubiKey will be reset with the default key.

In this article
Back to top Generated by DocFX