Hi,
I'm writing a CryptoTokenKit extension (simular to sample available in CTK documentation).
In this extension I'm trying to use SecKeyCreateSignature or SecKeyCreateDecryptedData using private keys I get using SecItemCopyMatching.
However the crypto operations fail with errors -25308 :
CSSM Exception: -2147415840 CSSMERR_CSP_NO_USER_INTERACTION (errKCInteractionNotAllowed / errSecInteractionNotAllowed / Interaction is not allowed with the Security Server)
The same code runs fine from the host App.
Are there Sec API limitations in CTK ?
I've seen some posts in the forum about application whitelising using provisioning profiles but I don't understand which keys should to be used.
Here is one of the post I refer to : https://forums.developer.apple.com/thread/128767
Any help is welcome,
Regards,
Jerome T