Hi friends
i want to use secure enclave to iPad mini2(ios 10.2.1)
ex:
CFErrorRef err=nil;
CFDataRef result = SecKeyCreateDecryptedData(privateKey.m_underlying,kSecKeyAlgorithmECIESEncryptionStandardX963SHA256AESGCM, (__bridge CFDataRef)digest, &err);
but i got err
Error Domain=NSOSStatusErrorDomain Code=-50 "algid:encrypt:ECIES:ECDH:KDFX963:SHA256:AESGCM: algorithm not supported by the key <SecKeyRef:('com.apple.setoken') 0x1740aa6e0>" UserInfo={NSDescription=algid:encrypt:ECIES:ECDH:KDFX963:SHA256:AESGCM: algorithm not supported by the key <SecKeyRef:('com.apple.setoken') 0x1740aa6e0>}
my question is kSecKeyAlgorithmECIESEncryptionStandardX963SHA256AESGCM only for ios 10.3? for SecKeyCreateDecryptedData?