Skip to content

Commit 1451fac

Browse files
committed
feat: use .data from KeychainWrapper
1 parent 239fb83 commit 1451fac

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

firefox-ios/Storage/Rust/RustLogins.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -997,13 +997,9 @@ public class RustLogins: LoginsProtocol, KeyManager {
997997
* ```
998998
*/
999999
public func getKey() throws -> Data {
1000-
let rustKeys = RustLoginEncryptionKeys()
1001-
let (key, _) = getKeychainData(rustKeys: rustKeys)
1002-
1003-
guard let keyData = key?.data(using: .utf8) else {
1000+
guard let keyData = rustKeys.keychain.data(forKey: rustKeys.loginPerFieldKeychainKey) else {
10041001
throw LoginsStoreError.MissingKey
10051002
}
1006-
10071003
return keyData
10081004
}
10091005
}

0 commit comments

Comments
 (0)