Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using privateKeyRef instead of publicKeyRef while encrypting data using encryptUsingPrivateKeyWithData #4

Open
das-palash-appsbee opened this issue Jan 2, 2018 · 0 comments

Comments

@das-palash-appsbee
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant