EllipticCurveKeyPair icon indicating copy to clipboard operation
EllipticCurveKeyPair copied to clipboard

AccessControl for publicKey doesn't restrict to biometryCurrentSet flag

Open romanbaitaliuk opened this issue 4 years ago • 3 comments

Hi,

I've found your helper is really useful. Despite, I couldn't understand the AccessControl for publicKey. When I set it to [.biometryCurrentSet, .privateKeyUsage] it doesn't ask me to authenticate with FaceID/TouchID when encrypting data.

Do you know why is it happening?

I believe there is no point to have those flags when create KeyPair manager, we can just provide AccessControl for privateKey.

Thanks, Roman

romanbaitaliuk avatar Dec 04 '20 04:12 romanbaitaliuk

Simulator or device?

hfossli avatar Feb 01 '21 07:02 hfossli

I've tried on real device.

romanbaitaliuk avatar Feb 03 '21 21:02 romanbaitaliuk

I agree with your point though I believed it would be the same for public key

hfossli avatar Feb 04 '21 16:02 hfossli