
Cryptotokenkit
If you're building macOS token driver extensions or integrating hardware security tokens with the system keychain, this covers the entire CryptoTokenKit stack. You'll find concrete implementations for TKTokenDriver subclasses, smart card APDU communication, PIN authentication flows, and how to expose token-backed keys as standard keychain items. The architecture split is clear: token extensions run macOS-only to bridge hardware to the system, while client apps on iOS 14+ can query those keychain items. Most useful if you're writing drivers for specific smart cards or USB tokens rather than just consuming existing ones. The session management and certificate authentication patterns are production-ready, not just API surface documentation.
- skills.sh installs
- 3.2K
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add dpearson2699/swift-ios-skills --skill cryptotokenkit --agent claude-codeInstalls into .claude/skills of the current project.
Files
CryptoTokenKit
Use CryptoTokenKit for token driver extensions, smart-card communication, token sessions, token-backed keychain integration, and certificate-based authentication in Swift 6.3 apps.
Platform availability: CryptoTokenKit classes are available across Apple
platforms, but capability depends on extension point, entitlement, hardware, and
OS version. The smart-card app extension flow for login/keychain unlock is macOS.
TKSmartCardSlotManager.default is optional and returns nil unless smart-card
access is enabled. iOS/iPadOS 26+ add NFC smart-card slots and registration.
Contents
- Architecture Overview
- Token Extensions
- Token Sessions
- Smart Card Communication
- Keychain Integration
- Certificate Authentication
- Token Watching
- Error Handling
- Common Mistakes
- Review Checklist
- References
Architecture Overview
Sponsors
Details
- Repository
- github.com/dpearson2699/swift-ios-skills
- Categories
- Backend & APIs, Security, DevOps & CI/CD, Mobile Development
- First seen
- May 16, 2026
More from dpearson2699/swift-ios-skills
All 98- Financekit3.2K
- Adattributionkit3.2K
- Paperkit3.2K
- Passkit3.2K
- Audioaccessorykit3.2K
- Dockkit3.2K
- Browserenginekit3.2K
- Appmigrationkit3.2K
- Relevancekit3.2K
- Sensorkit3.2K
- Swift Security3.2K
- Tabletopkit3.1K
- App Store Optimization3.1K
- Swift Api Design Guidelines3K
- Swiftlint2.9K
- Swift Formatstyle2.8K
- Core Data2.8K
- Focus Engine2.8K
- Ios Security1.1K
- Live Activities465
- Mapkit Location461
- Photos Camera Media456
- Eventkit Calendar415
- Cloudkit Sync413