From 8042b7babe4e73f615cb4245f0752ffa860fe451 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Kope=C4=87?= Date: Thu, 2 May 2024 22:31:50 +0200 Subject: [PATCH] Dropped default parameter for PBKDF2 rounds --- Sources/_CryptoExtras/Key Derivation/PBKDF2/PBKDF2.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/_CryptoExtras/Key Derivation/PBKDF2/PBKDF2.swift b/Sources/_CryptoExtras/Key Derivation/PBKDF2/PBKDF2.swift index 8b28cb28..fc2bdef2 100644 --- a/Sources/_CryptoExtras/Key Derivation/PBKDF2/PBKDF2.swift +++ b/Sources/_CryptoExtras/Key Derivation/PBKDF2/PBKDF2.swift @@ -36,7 +36,7 @@ extension KDF.Insecure { /// - outputByteCount: The length in bytes of resulting symmetric key. /// - rounds: The number of rounds which should be used to perform key derivation. /// - Returns: The derived symmetric key. - public static func deriveKey(from password: Passphrase, salt: Salt, using hashFunction: HashFunction, outputByteCount: Int, rounds: Int = 300_000_000) throws -> SymmetricKey { + public static func deriveKey(from password: Passphrase, salt: Salt, using hashFunction: HashFunction, outputByteCount: Int, rounds: Int) throws -> SymmetricKey { return try BackingPBKDF2.deriveKey(from: password, salt: salt, using: hashFunction, outputByteCount: outputByteCount, rounds: rounds) }