The private key ref I got from my physical smart card with below method:
SecIdentityRef identity = xxxx;
status = SecIdentityCopyPrivateKey(identity, &privKeyRef);
and I also check the algorithm with below lines and result is fail also:
if (!SecKeyIsAlgorithmSupported(privKeyRef, kSecKeyOperationTypeSign, kSecKeyAlgorithmRSASignatureRaw)) {
NSLog(@"Cannot support RSA Signature Algorithm kSecKeyAlgorithmRSASignatureRaw");
}
Looks like the CTK on MAC platform not support this algorithm? for I can use the similar code to sign same data on iOS platform.
Topic:
Privacy & Security
SubTopic:
General
Tags: