Skip to content

Commit

Permalink
Dropped default parameter for PBKDF2 rounds
Browse files Browse the repository at this point in the history
  • Loading branch information
admkopec committed Jun 11, 2024
1 parent e51c2f0 commit 8042b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/_CryptoExtras/Key Derivation/PBKDF2/PBKDF2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<Passphrase: DataProtocol, Salt: DataProtocol>(from password: Passphrase, salt: Salt, using hashFunction: HashFunction, outputByteCount: Int, rounds: Int = 300_000_000) throws -> SymmetricKey {
public static func deriveKey<Passphrase: DataProtocol, Salt: DataProtocol>(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)
}

Expand Down

0 comments on commit 8042b7b

Please sign in to comment.