Contents

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.

Return Value

The decrypted data, or nil if an error occurred.

See Also

Performing Cryptographic Operations