Instance Propertyswift-crypto 3.15.1Crypto
bitCount
The number of bits in the key.
- iOS
- 13+
- macOS
- 10.15+
- Mac Catalyst
- 13+
- tvOS
- 13+
- visionOS
- 1.0+
- watchOS
- 6+
var bitCount: Int { get }The number of bits in the key.
var bitCount: Int { get }import CryptoA cryptography library for Swift.
struct SymmetricKeyA symmetric cryptographic key.
@frozen struct IntA signed integer value type.
init<D>(data: D) where D : ContiguousBytes Creates a key from the given data.
init(size: SymmetricKeySize) Generates a new random key of the given size.
static func == (lhs: SymmetricKey, rhs: SymmetricKey) -> Bool func withUnsafeBytes<R>(_ body: (UnsafeRawBufferPointer) throws -> R) rethrows -> R Invokes the given closure with a buffer pointer covering the raw bytes of the key.