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

publicKey and privateKey not random #23

Closed
GreenSnakeLinux opened this issue Jun 13, 2022 · 1 comment
Closed

publicKey and privateKey not random #23

GreenSnakeLinux opened this issue Jun 13, 2022 · 1 comment

Comments

@GreenSnakeLinux
Copy link

GreenSnakeLinux commented Jun 13, 2022

Hello

Can you provide a test with srptools with same privateKey in the init ?

Example:

var auth_private: [UInt8] = (Array)(Data("2469779c25ab55977dae0e8e4d1bc6a70b8e9cf62864991777457c316c3f6dcf".utf8))
let client = Client<SHA512>(username: username, password: password, group: .N3072, privateKey: Data(privateKey))

thanks

@Bouke
Copy link
Owner

Bouke commented Jun 14, 2022

I looks like you have a hex encoded key, but you aren’t decoding it as such. The constructor takes a byte array, so first decode it before passing it to the constructor.

@Bouke Bouke closed this as completed Jun 15, 2022
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

2 participants