Instance Propertyswift-crypto 3.12.2Crypto
description
DH.swift:181- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
var description: String { get }
var description: String { get }
import Crypto
A cryptography library for Swift.
struct SharedSecret
A key agreement result from which you can derive a symmetric cryptographic key.
@frozen struct String
A Unicode string value that is a collection of characters.
static func == (lhs: Self, rhs: Self) -> Bool
static func == <D>(lhs: Self, rhs: D) -> Bool where D : DataProtocol
Determines whether a shared secret is equivalent to a collection of contiguous bytes.
func hash(into hasher: inout Hasher)
func hkdfDerivedSymmetricKey<H, Salt, SI>(using hashFunction: H.Type, salt: Salt, sharedInfo: SI, outputByteCount: Int) -> SymmetricKey where H : HashFunction, Salt : DataProtocol, SI : DataProtocol
Derives a symmetric encryption key from the secret using HKDF key derivation.
func withUnsafeBytes<R>(_ body: (UnsafeRawBufferPointer) throws -> R) rethrows -> R
Invokes the given closure with a buffer pointer covering the raw bytes of the shared secret.
func x963DerivedSymmetricKey<H, SI>(using hashFunction: H.Type, sharedInfo: SI, outputByteCount: Int) -> SymmetricKey where H : HashFunction, SI : DataProtocol
Derives a symmetric encryption key from the secret using x9.63 key derivation.