Generic Initializer

init(data:)

Creates a key from the given data.

Declaration

init<D>(data: D) where D : ContiguousBytes

Parameters

data

The contiguous bytes from which to create the key.

See Also

Creating a Key

init(size: SymmetricKeySize)

Generates a new random key of the given size.

struct SymmetricKeySize

The sizes that a symmetric cryptographic key can take.