tokenSession(_:decrypt:keyObjectID:algorithm:)
Tells the delegate to decrypt a data object using the specified key and algorithm.
Declaration
optional func tokenSession(_ session: TKTokenSession, decrypt ciphertext: Data, keyObjectID: TKToken.ObjectID, algorithm: TKTokenKeyAlgorithm) throws -> DataParameters
- session:
The token session.
- ciphertext:
The data to decrypt.
- keyObjectID:
The identifier of the public key object.
- algorithm:
The algorithm to be used for decryption.
Return Value
The decrypted data, or nil if an error occurred.