Instance Method

tokenSession(_:sign:keyObjectID:algorithm:)

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

Declaration

optional func tokenSession(_ session: TKTokenSession, sign dataToSign: Data, keyObjectID: TKToken.ObjectID, algorithm: TKTokenKeyAlgorithm) throws -> Data

Parameters

session

The token session.

data

The data to sign.

keyObjectID

The identifier of the private key object.

algorithm

The algorithm to be used for signing.

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 signed data, or nil if an error occurred.

See Also

Performing Cryptographic Operations

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

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

class TKTokenKeyExchangeParameters

Parameters used to perform specific key exchange operations.