Instance Method

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 -> Data

Parameters

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.

error

If an error occurred, this method should return nil and populate this parameter with an object containing details of the error. The error object should have a domain equal to TKErrorDomain and a code equal to a value defined by the TKError.Code enumeration.

Return Value

The decrypted data, or nil if an error occurred.

See Also

Performing Cryptographic Operations

func tokenSession(TKTokenSession, sign: Data, keyObjectID: TKToken.ObjectID, algorithm: TKTokenKeyAlgorithm) -> Data

Tells the delegate to sign a data object using the specified key and algorithm.

class TKTokenKeyExchangeParameters

Parameters used to perform specific key exchange operations.