Contents

SecKeyGetBlockSize(_:)

Gets the block length associated with a cryptographic key.

Declaration

func SecKeyGetBlockSize(_ key: SecKey) -> Int

Parameters

  • key:

    The key for which you want the block length.

Mentioned in

Return Value

The block length associated with the key in bytes. If the key is an RSA key, for example, this is the size of the modulus.