Expand description
§Bindings to the CryptoTokenKit framework
See Apple’s docs and the general docs on framework crates for more information.
Structs§
- TKBERTLV
Record TKTLVRecord - TKBERTLVRecord implements encoding using BER-TLV encoding rules. It is able to parse BER-encoded data and always produces DER-encoded data. No interpretation of tag values is made, all values are treated only as NSData irrespective of the tag.
- TKCompactTLV
Record TKTLVRecord - TKCompactTLVRecord implements Compact-TLV encoding according to ISO7816-4 Tag is number in range < 0..15> encoded as high 4 bits of initial byte, length is number in range < 0..15> encoded as low 4 bits of initial byte. Value immediatelly follows leading byte.
- TKError
Code TKError - Apple’s documentation
- TKSimpleTLV
Record TKTLVRecord - TKSimpleTLVRecord implements Simple-TLV encoding according to ISO7816-4. Tag is number in range < 1..254> encoded as single byte, length is either single byte specifying length 0-254 or 3 bytes encoded as 0xff followed by 2 bytes of big-endian encoded number.
- TKSmart
Card TKSmartCard - Represents SmartCard inserted in the slot. Once the card is physically removed from the slot, the session object is invalid and will always fail the operation invoked on it. In order to communicate with the card, an exclusive session must be established.
- TKSmart
CardATR TKSmartCardATR - Represents parsed SmartCard ATR. Provides routine for parsing byte stream or NSData with binary ATR and accessors to parsed ATR parts.
- TKSmart
CardATR Interface Group TKSmartCardATR - Represents single interface-bytes group of ATR.
- TKSmart
CardPIN Charset TKSmartCard - Enumerates all possible PIN character sets.
- TKSmart
CardPIN Completion TKSmartCard - Bitmask specifying condition(s) under which PIN entry should be considered complete.
- TKSmart
CardPIN Confirmation TKSmartCard - Bitmask specifying whether PIN confirmation should be requested.
- TKSmart
CardPIN Encoding TKSmartCard - Enumerates all possible PIN encoding types.
- TKSmart
CardPIN Format TKSmartCard - Specifies PIN formatting properties.
- TKSmart
CardPIN Justification TKSmartCard - Enumerates all posible PIN justification types.
- TKSmart
Card Protocol TKSmartCardATR - Bitmask of available SmartCard protocols.
- TKSmart
Card Slot TKSmartCard - Represents single slot which can contain SmartCard.
- TKSmart
Card Slot Manager TKSmartCard - Represents pool of SmartCard reader slots.
- TKSmart
Card SlotNFC Session TKSmartCardSlotNFCSession - NFC session that’s related to NFC smart card slot which was created.
- TKSmart
Card Slot State TKSmartCard - Enumerates all possible slot states.
- TKSmart
Card Token TKSmartCardTokenandTKToken - TKSmartCardToken base class for implementing SmartCard based token.
- TKSmart
Card Token Driver TKSmartCardTokenandTKToken - TKSmartCardTokenDriver represents driver for specific SmartCard type.
- TKSmart
Card Token Registration Manager TKSmartCardTokenRegistrationManager - Provides a centralized management system for registering and unregistering smartcards using their token IDs.
- TKSmart
Card Token Session TKSmartCardTokenandTKToken - TKSmartCardTokenSession represents token session based on SmartCard token.
- TKSmart
Card User Interaction TKSmartCard - Represents handle to a user interaction involving the SmartCard reader.
- TKSmart
Card User Interaction ForPIN Operation TKSmartCard - User interaction for the secure PIN operations on the SmartCard reader.
- TKSmart
Card User Interaction ForSecurePIN Change TKSmartCard - User interaction for the secure PIN change on the SmartCard reader.
- TKSmart
Card User Interaction ForSecurePIN Verification TKSmartCard - User interaction for the secure PIN verification on the SmartCard reader.
- TKTLV
Record TKTLVRecord - Base class representing Tag-Length-Value record. Every record has its tag and binary value represented as NSData instance. Allows retrieving record’s tag, value (as NSData object) and binary representation of the record. Existing subclasses implement assorted encodings - TKBERTLVRecord, TKSimpleTLVRecord and TKCompactTLVRecord.
- TKToken
TKToken - Class representing single token. When implementing SmartCard based token, it is recommended to inherit the implementation from TKSmartCardToken. Token object serves as synchronization point, all operations invoked upon token and all its sessions are serialized.
- TKToken
Auth Operation TKToken - Context of a pending authentication operation.
- TKToken
Configuration TKTokenConfiguration - Holds configuration of one token identified by unique token’s instanceID
- TKToken
Driver TKToken - Base class for token drivers. SmartCard token drivers should use TKSmartCardTokenDriver subclass.
- TKToken
Driver Configuration TKTokenConfiguration - Holds configuration of one class of tokens
- TKToken
KeyAlgorithm TKToken - TKTokenKeyAlgorithm Encapsulates cryptographic algorithm, possibly with additional associated required algorithms.
- TKToken
KeyExchange Parameters TKToken - TKTokenKeyExchangeParameters Encapsulates parameters needed for performing specific Key Exchange operation types.
- TKToken
Keychain Certificate TKTokenKeychainItem - Interface for propagation token’s certificates into the keychain.
- TKToken
Keychain Contents TKTokenKeychainItem - Contains TKTokenKeychainItem instances (keys and certificates) which represent keychain state (i.e. set of items) of specific token.
- TKToken
Keychain Item TKTokenKeychainItem - Base interface for propagation token’s items into the keychain.
- TKToken
Keychain Key TKTokenKeychainItem - Interface for propagation token’s keys into the keychain.
- TKToken
Operation TKToken - Apple’s documentation
- TKToken
Password Auth Operation TKToken - Context of a password authentication operation.
- TKToken
Session TKToken - TKTokenSession represents token session which shares authentication status.
- TKToken
Smart CardPIN Auth Operation TKSmartCardTokenandTKToken - Context of a SmartCard PIN authentication operation.
- TKToken
Watcher TKTokenWatcher - Apple’s documentation
- TKToken
Watcher Token Info TKTokenWatcher - Apple’s documentation
Statics§
Traits§
- TKSmart
Card Token Driver Delegate TKSmartCardTokenandTKToken - TKSmartCardTokenDriverDelegate is used to implement creation of new token instance according to the SmartCard.
- TKSmart
Card User Interaction Delegate TKSmartCard - Delegate for user interactions involving the SmartCard reader.
- TKToken
Delegate TKToken - TKTokenDelegate contains operations implementing functionality of token class.
- TKToken
Driver Delegate TKToken - Delegate for customizing token driver operations. SmartCard tokens should implement TKSmartCardTokenDriverDelegate instead of this base protocol.
- TKToken
Session Delegate TKToken - TKTokenSessionDelegate contains operations with token objects provided by token implementors which should be performed in the context of authentication session.
Type Aliases§
- TKTLV
Tag TKTLVRecord - Type used for identifying TLV format tags. Although for some encodings tags can have theoretically any length, this implementation supports tag length only up to 64bits.
- TKToken
Driver ClassID TKToken - TKTokenDriverClassID ClassID of the token driver.
- TKToken
InstanceID TKToken - TKTokenInstanceID Unique, persistent identifier of this token in the form of string.
- TKToken
ObjectID TKToken - TKTokenObjectID Unique and persistent identification of objects on the token.
- TKToken
Operation Constraint TKToken - TKTokenOperationConstraint represents authentication constraint of token object for specific token operation.