Initializerswift-crypto 3.15.1Crypto
init(data:)
Creates a key from the given data.
- iOS
- 13+
- macOS
- 10.15+
- Mac Catalyst
- 13+
- tvOS
- 13+
- visionOS
- 1.0+
- watchOS
- 6+
init<D>(data: D) where D : ContiguousBytes Parameters
- data
The contiguous bytes from which to create the key.