iOS加密的跨平台兼容性

时间:2017-09-21 14:36:53

标签: ios security encryption cross-platform ecies

我正在使用iOS安全框架进行加密。具体来说,我使用的是ECIES加密,它在选择密钥交换,派生,散列和认证加密方面似乎非常具体。输出跨平台是否以任何方式兼容?即假设我在iOS中使用以下内容加密指向Bob的明文:

let algorithm: SecKeyAlgorithm = .eciesEncryptionStandardX963SHA1AESGCM
guard let cipherText = SecKeyCreateEncryptedData(publicKeyBob!,
                                                 algorithm,
                                                 plainText as! CFData,
                                                 &error) as Data? else {
                                                    throw error!.takeRetainedValue() as Error
}

是否可以使用此密码(以及Bob的私钥)并对其进行解密?

如果答案是否定的,那么在这个意义上,安全框架中是否有任何跨平台兼容的东西?

谢谢, ž

0 个答案:

没有答案
相关问题