The sizes that a symmetric cryptographic key can take.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
- Apple Crypto
When creating a new
Symmetric instance with a call to its
init(size:) initializer, you typically use one of the standard key sizes, like
bits256. When you need a key with a non-standard length, use the
init(bit initializer to create a
Symmetric instance with a custom bit count.