We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
private func encryptData(password: String, salt: Data, length: Int, N: Int, R: Int, P: Int) -> Data? { guard let passwordData = password.data(using: .utf8)?.sha3(.keccak256) else {return nil} guard let deriver = try? Scrypt(password: [UInt8](passwordData), salt: [UInt8](salt), dkLen: length, N: N, r: R, p: P) else {return nil} guard let result = try? deriver.calculate() else {return nil} return Data(result) } This method prompts an error: Type of expression is ambiguous without more context
private func encryptData(password: String, salt: Data, length: Int, N: Int, R: Int, P: Int) -> Data? { guard let passwordData = password.data(using: .utf8)?.sha3(.keccak256) else {return nil} guard let deriver = try? Scrypt(password: [UInt8](passwordData), salt: [UInt8](salt), dkLen: length, N: N, r: R, p: P) else {return nil} guard let result = try? deriver.calculate() else {return nil} return Data(result) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
private func encryptData(password: String, salt: Data, length: Int, N: Int, R: Int, P: Int) -> Data? { guard let passwordData = password.data(using: .utf8)?.sha3(.keccak256) else {return nil} guard let deriver = try? Scrypt(password: [UInt8](passwordData), salt: [UInt8](salt), dkLen: length, N: N, r: R, p: P) else {return nil} guard let result = try? deriver.calculate() else {return nil} return Data(result) }
This method prompts an error: Type of expression is ambiguous without more context
The text was updated successfully, but these errors were encountered: