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