Kitura / Kitura/BlueCryptor

PBKDF derivation compiler warning

Open
#56 1 comment 0 reactions 1 assignee Claimed by @adam-rocska View on GitHub
Dominant language
Swift
Stars
192
Forks
48
PR merge metrics
No merged PRs in 30d

Description

I'm having a problem with the following usage

```
key = try PBKDF.deriveKey(fromPassword:password, salt: salt,
prf: .sha512, rounds: 1000,
derivedKeyLength: 256)
```

The compiler is telling me I have an "Ambiguous reference to member 'deriveKey(fromPassword:salt:prf:rounds:derivedKeyLength:)'

password is a String
salt is a [UInt8]
the other values are as expected

I expected the string parameter for password to enable the compiler to disambiguate the call. This is with Swift 5.0

Any thoughts? For now I'll access commoncrypto instead.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.