【问题标题】:In SecItemCopyMatching the &keyRef returns nil在 SecItemCopyMatching 中 &keyRef 返回 nil
【发布时间】:2015-10-05 09:52:02
【问题描述】:

我一直在使用 https://github.com/ideawu/Objective-C-RSA/blob/master/RSA.m 对于 RSA 加密,但在 iOS 9 中,kefRef 返回 nil,适用于 iOS 8。应该进行哪些更改?

    SecKeyRef keyRef = nil;
    status = SecItemCopyMatching((__bridge CFDictionaryRef)privateKey,(CFTypeRef *)&keyRef);
    if(status != noErr){
    return nil;
    }
    return keyRef;

【问题讨论】:

    标签: ios objective-c encryption ios8 ios9


    【解决方案1】:

    问题在于使用的公钥。

    https://forums.developer.apple.com/thread/15129

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-17
      • 2023-03-29
      • 1970-01-01
      • 1970-01-01
      • 2016-12-21
      • 1970-01-01
      相关资源
      最近更新 更多