Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
RSA加密&x2B;使用Transforms/Security.framework的Objective-C_Objective C_Cocoa_Encryption_Cryptography_Openssl - Fatal编程技术网

RSA加密&x2B;使用Transforms/Security.framework的Objective-C

RSA加密&x2B;使用Transforms/Security.framework的Objective-C,objective-c,cocoa,encryption,cryptography,openssl,Objective C,Cocoa,Encryption,Cryptography,Openssl,我试图使用RSA公钥加密在网络上加密AES+CBC密钥,但是我很难找到正确的工具或设置来实现我的目标 我一直在研究Transforms API,它完全能够使用RSA对数据进行签名/验证,但到目前为止,还无法找出如何利用它对自身进行加密 因此,我的问题如下:我是否坚持使用libcrypto/OpenSSL,或者我试图通过API实现的目标是否仍然可行?目标是使用“SecEncryptTransformCreate”等来使用RSA而不是AES/对称加密。根据API,SecEncryptTransfor

我试图使用RSA公钥加密在网络上加密AES+CBC密钥,但是我很难找到正确的工具或设置来实现我的目标

我一直在研究Transforms API,它完全能够使用RSA对数据进行签名/验证,但到目前为止,还无法找出如何利用它对自身进行加密


因此,我的问题如下:我是否坚持使用libcrypto/OpenSSL,或者我试图通过API实现的目标是否仍然可行?目标是使用“SecEncryptTransformCreate”等来使用RSA而不是AES/对称加密。

根据API,SecEncryptTransformCreate似乎同时支持PKCS#1(v1.5,尽管没有说明)和OAEP填充。我还看到了一些样品(更安全)

同样,API似乎没有在任何地方指定RSA,而是指定PKCS#1填充和OAEP填充

因此,您似乎正在考虑如何使用。请注意,要加密大量纯文本,应使用混合加密(AES和RSA)