Function

SecKeyCopyAttributes(_:)

Gets the attributes of a given key.

Declaration

func SecKeyCopyAttributes(_ key: SecKey) -> CFDictionary?

Parameters

key

The key whose attributes you want.

Return Value

A dictionary containing the key's attributes.

See Also

Examining Keys

func SecKeyIsAlgorithmSupported(SecKey, SecKeyOperationType, SecKeyAlgorithm) -> Bool

Returns a Boolean indicating whether a key is suitable for an operation using a certain algorithm.

func SecKeyGetBlockSize(SecKey) -> Int

Gets the block length associated with a cryptographic key.

struct SecKeyAlgorithm

The algorithms that cryptographic keys enable.

enum SecKeyOperationType

The types of operations that you can use a cryptographic key to perform.