-
Notifications
You must be signed in to change notification settings - Fork 42
Closed
Description
As a relatively minor issue, the YubiKey returns that the security status is not satisfied before checking/revealing that a Data Object is not present.
YubiKey manager uses the printed data object to store the management key in PIN-protected configurations (as it can only be read with the PIN entered), so consistent behaviour here helps ensure compatibility.
An upcoming compatibility pull request will change the behaviour to match that of the YubiKey.
if (file == null || file.data == null ||
file.len == 0) {
ISOException.throwIt(ISO7816.SW_FILE_NOT_FOUND);
return;
}
final byte policy;
if (isContact())
policy = file.contact;
else
policy = file.contactless;
if (policy == File.P_NEVER) {
ISOException.throwIt(
ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);
return;
}Metadata
Metadata
Assignees
Labels
No labels