0
我的问题是CipherBuffer
这是uint8_t我无法将其转换为NSData
并取回相同的值。事情是我需要将加密的数据发送到服务器。将密码缓冲区转换为nsdata并返回到cipherBuffer
即使我从serverside得到NSData
,我需要将其转换为(unit8_t *)。是他们的一个办法做到这一点我使用下面的方法来解密
- (void)decryptWithPrivateKey:(uint8_t *)cipherBuffer plainBuffer:(uint8_t *)decryptedBuffer
上面指定的方法是内置的吗?或与任何自定义库相关? – Iducool 2012-07-19 07:49:56