Initializerswift-crypto 3.8.0Crypto
init(data:)
Creates a key from the given data.
SymmetricKeys.swift:85init<D>(data: D) where D : ContiguousBytes
Parameters
- data
The contiguous bytes from which to create the key.
Other members in extension
Type members
init(size: SymmetricKeySize
) Generates a new random key of the given size.
static func == (lhs: `Self`, rhs: `Self`
) -> Bool
Instance members
var bitCount: Int
The number of bits in the key.
func withUnsafeBytes<R>((UnsafeRawBufferPointer) throws -> R
) rethrows -> R Invokes the given closure with a buffer pointer covering the raw bytes of the key.