SymmetricKey
public struct SymmetricKey : ContiguousBytes
extension SymmetricKey: Equatable
A symmetric key for use with software implementations of cryptographic algorithms.
-
Declaration
Swift
public func withUnsafeBytes<R>(_ body: (UnsafeRawBufferPointer) throws -> R) rethrows -> R -
Initializes a key with data
Declaration
Swift
public init<D>(data: D) where D : ContiguousBytes -
Generates a key of the provided key size
Declaration
Swift
public init(size: SymmetricKeySize)Parameters
sizeThe key size
-
The key size in bits
Declaration
Swift
public var bitCount: Int { get } -
Declaration
Swift
public static func == (lhs: `Self`, rhs: `Self`) -> Bool
View on GitHub
Install in Dash
SymmetricKey Structure Reference