Skip to content

KeystoreV3.swift An error occurred .error missage: 'Type of expression is ambiguous without more context' #65

@Ann-iOS

Description

@Ann-iOS

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions