You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that you are using only publicKeyRef in both encryption (encryptUsingPublicKeyWithData, encryptUsingPrivateKeyWithData) whereas privateKeyRef should be used in encryptUsingPrivateKeyWithData.
In - (NSString *)rsaEncryptWithData:(NSData*)data usingPublicKey:(BOOL)usePublicKey server:(BOOL)isServer and on line number 438 you used SecKeyRef key = self.publicKeyRef; for both cases.
I tried to use privateKeyRef in place of publicKeyRef but I got nil response. Please fix it
The text was updated successfully, but these errors were encountered:
I found that you are using only
publicKeyRef
in both encryption (encryptUsingPublicKeyWithData, encryptUsingPrivateKeyWithData) whereas privateKeyRef should be used in encryptUsingPrivateKeyWithData.In
- (NSString *)rsaEncryptWithData:(NSData*)data usingPublicKey:(BOOL)usePublicKey server:(BOOL)isServer
and on line number 438 you usedSecKeyRef key = self.publicKeyRef;
for both cases.I tried to use
privateKeyRef
in place ofpublicKeyRef
but I gotnil
response. Please fix itThe text was updated successfully, but these errors were encountered: