From eea8c8a1432b6e2aa6f9eff3a0449e8b9305bb26 Mon Sep 17 00:00:00 2001 From: Daniel Hugenroth Date: Mon, 27 Nov 2023 12:19:37 +0000 Subject: [PATCH] iOS: add public init for RainbowSlothStorageState --- ios/RainbowSloth/Sources/RainbowSloth/RainbowSloth.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ios/RainbowSloth/Sources/RainbowSloth/RainbowSloth.swift b/ios/RainbowSloth/Sources/RainbowSloth/RainbowSloth.swift index a6a36de..d3b8b86 100644 --- a/ios/RainbowSloth/Sources/RainbowSloth/RainbowSloth.swift +++ b/ios/RainbowSloth/Sources/RainbowSloth/RainbowSloth.swift @@ -7,6 +7,11 @@ private let P256_PUBLIC_KEY_SIZE = 32 public struct RainbowSlothStorageState { public var handle: String public var salt: Data + + public init(handle: String, salt: Data) { + self.handle = handle + self.salt = salt + } } /// Implementation of the RainbowSloth algorithm for tuneable password-based key stretching on iOS using the SecureEnclave (SE).