Structureswift-crypto 3.12.2_CryptoExtras
PBKDF2
An implementation of PBKDF2 key derivation function.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
struct PBKDF2
An implementation of PBKDF2 key derivation function.
struct PBKDF2
import _CryptoExtras
Provides additional cryptographic APIs that are not available in CryptoKit (and therefore the core Crypto library).
enum Insecure
A container for older, cryptographically insecure algorithms.
enum KDF
A container for Key Detivation Function algorithms.
protocol Sendable
static func deriveKey<Passphrase, Salt>(from password: Passphrase, salt: Salt, using hashFunction: HashFunction, outputByteCount: Int, rounds: Int) throws -> SymmetricKey where Passphrase : DataProtocol, Salt : DataProtocol
Derives a symmetric key using the PBKDF2 algorithm.
static func deriveKey<Passphrase, Salt>(from password: Passphrase, salt: Salt, using hashFunction: HashFunction, outputByteCount: Int, unsafeUncheckedRounds: Int) throws -> SymmetricKey where Passphrase : DataProtocol, Salt : DataProtocol
Derives a symmetric key using the PBKDF2 algorithm.
struct HashFunction