Function

SecKeyCopyAttributes

Gets the attributes of a given key.

Declaration

CFDictionaryRef SecKeyCopyAttributes(SecKeyRef key);

Parameters

key

The key whose attributes you want.

Return Value

A dictionary containing the key's attributes. Call the CFRelease function to free this dictionary's memory when you are done with it.

See Also

Examining Keys

SecKeyIsAlgorithmSupported

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

SecKeyGetBlockSize

Gets the block length associated with a cryptographic key.

SecKeyAlgorithm

The algorithms that cryptographic keys enable.

SecKeyOperationType

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