Hi guys,
I've been searching over an hour and cannot find anywhere online (and yes I checked StackOverflow) or in the Xcode docs what OSStatus -9809 means and I'm ready to rip my hair out.
Does anyone have any idea how to find this or what it means?
I'm trying to use this example: https://developer.apple.com/library/ios/documentation/Security/Conceptual/CertKeyTrustProgGuide/iPhone_Tasks/iPhone_Tasks.html#//apple_ref/doc/uid/TP40001358-CH208-SW9
For encrypting and decrypting data and run into this error on decrypt and can't figure out what it means to try and fix it.
This line of code is what causes the error to return:
I've been searching over an hour and cannot find anywhere online (and yes I checked StackOverflow) or in the Xcode docs what OSStatus -9809 means and I'm ready to rip my hair out.
Does anyone have any idea how to find this or what it means?
I'm trying to use this example: https://developer.apple.com/library/ios/documentation/Security/Conceptual/CertKeyTrustProgGuide/iPhone_Tasks/iPhone_Tasks.html#//apple_ref/doc/uid/TP40001358-CH208-SW9
For encrypting and decrypting data and run into this error on decrypt and can't figure out what it means to try and fix it.
This line of code is what causes the error to return:
//Decrypt the data
status = SecKeyDecrypt( privateKey,
kSecPaddingPKCS1,
cipherBuffer,
cipherBufferSize,
plainBuffer,
&plainBufferSize
);
Last edited: