We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
go version
$ go version go version go1.16 darwin/arm64
Yes
go env
$ go env GOARCH="arm64"
The value of the public key will be the same every time. I think the reason is probably that the arm version is not supported.
func generateKeyPair() (privateKey, publicKey *[32]byte) { privateKey, publicKey = new([32]byte), new([32]byte) if _, err := rand.Read(privateKey[:]); err != nil { log.Fatal(err) } curve25519.ScalarBaseMult(privateKey, publicKey) return }
result private key >> L+V9o0fNYkMVKNqsX7spBzD/9oSvxM/C7ZCZX1jLO3Q= public key >> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
The text was updated successfully, but these errors were encountered:
Your order of arguments is wrong
Sorry, something went wrong.
Hi @seankhliao,
What was I expecting? It outputs the same value every time. It worked on non-arm64.
What did you see instead? As shown in PoC.
No branches or pull requests
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
The value of the public key will be the same every time.
I think the reason is probably that the arm version is not supported.
result
private key >> L+V9o0fNYkMVKNqsX7spBzD/9oSvxM/C7ZCZX1jLO3Q=
public key >> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: