<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASAuthorizationPublicKeyCredentialPRFAssertionInput-swift.struct/InputValues-swift.struct/init(saltInput1:saltInput2:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "s:22AuthenticationServices51ASAuthorizationPublicKeyCredentialPRFAssertionInputV0H6ValuesV10saltInput10J6Input2AE10Foundation4DataV_AJSgtcfc"
  },
  "title" : "init(saltInput1:saltInput2:)"
}
-->

# init(saltInput1:saltInput2:)

Initializes an input values structure with the given salts.

```
init(saltInput1: Data, saltInput2: Data? = nil)
```

## Parameters

`saltInput1`

A salt for the hashing function.

`saltInput2`

An optional second salt for the hashing function.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)