Håvard Fossli

Results 159 comments of Håvard Fossli
trafficstars

Also, make sure you delete and recreate the keys.

And try with these access flags ``` let publicAccessControl = EllipticCurveKeyPair.AccessControl(protection: kSecAttrAccessibleAlwaysThisDeviceOnly, flags: []) let privateAccessControl = EllipticCurveKeyPair.AccessControl(protection: kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly, flags: { return EllipticCurveKeyPair.Device.hasSecureEnclave ? [.userPresence, .privateKeyUsage] : [.userPresence] }()) ```

``` do { try KeyPair.manager.deleteKeypair() } catch { ... } ```

Or just delete the app before you install

I will try to recreate the bug on my end. I need xcode version, mac version, simulator version etc.

Xcode build version and swift version would also be useful.

Ah! That makes sense! Maybe a better error message could be nice in that case. Keeping it open until I fix that. Thanks!

Not sure. I'll keep this in mind next time I make a change. Please fork in the meantime.

A preview can be seen here https://github.com/hfossli/Express

Here's a comparison (for sake of history): ![screen shot 2016-04-11 at 10 57 28](https://cloud.githubusercontent.com/assets/3652587/14421921/4f92c664-ffd4-11e5-8181-24f525e8c31f.png) --- ![screen shot 2016-04-11 at 10 57 38](https://cloud.githubusercontent.com/assets/3652587/14421922/4f935ca0-ffd4-11e5-9282-42881d322f8d.png)