我正在为RSA算法创建密钥对。我正在研究Apple在Crypto上的示例项目,https://developer.apple.com/library/ios/samplecode/CryptoExercise/Introduction/Intro.html
请参阅以下代码
sanityCheck = SecKeyGeneratePair((__bridge CFDictionaryRef)keyPairAttr, &publicKey, &privateKey);
LOGGING_FACILITY( sanityCheck == noErr && publicKey != NULL && privateKey != NULL, @"Something really bad went wrong with generating the key pair." );
我发现使用了LOGGING_FACILITY。据我所知,它用于记录目的。任何人都可以详细说明LOGGING_FACILITY和NSLog之间的区别是什么?还显示了指向Apple文档的指示,解释了LOGGING_FACILITY
的用法