Allow after first unlock accessibility (#871)

* Allow after first unlock

* Fix tests

* Fix tests
This commit is contained in:
Max Goedjen authored and GitHub committed 2026-11-17 20:28:30 -08:00
1 parent 0d1ca5e744
commit c0562ba50a
14 files changed
+50 -13

No files matched your search

@@ -9,7 +9,7 @@ import Testing
@Test func eraser() {
let data = Data(UUID().uuidString.utf8)
let secret = SmartCard.Secret(id: data, name: "Name", publicKey: data, attributes: Attributes(keyType: KeyType(algorithm: .ecdsa, size: 256), authentication: .notRequired))
let secret = SmartCard.Secret(id: data, name: "Name", publicKey: data, attributes: Attributes(keyType: KeyType(algorithm: .ecdsa, size: 256), authentication: .notRequired, allowWhileLocked: true))
let erased = AnySecret(secret)
#expect(erased.id == secret.id as AnyHashable)
#expect(erased.name == secret.name)