algorithm kSecKeyAlgorithmRSASignatureRaw not support on mac platform when using the method SecKeyCreateSignature

On my mac platform I try to use the method SecKeyCreateSignature to sign data with algorithm kSecKeyAlgorithmRSASignatureRaw but always failed. I double checked the support status but it failed with sample code:

if (!SecKeyIsAlgorithmSupported(privKeyRef, kSecKeyOperationTypeSign, kSecKeyAlgorithmRSASignatureRaw))  {return 0;} 

But on my iOS client, the kSecKeyAlgorithmRSASignatureRaw works well.

If I can not use the algorithm kSecKeyAlgorithmRSASignatureRaw, which algorithm I can use to get the same signed result by sign the given to-be-signed raw data.

Replies

I posted a partial response in the other thread where you asked about this. Read that through and reply here if you have follow-up questions.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"