Questions tagged [ecdh]

136 questions
-1
votes
1 answer

Why P-521 public key X,Y some time is 65 bytes some time is 66 bytes

I use golang generate the P-521 public key. source code look like that: curve:=elliptic.P521() priv, x, y, err := elliptic.GenerateKey(curve, rand.Reader) xBytes:=x.Bytes() yBytes:=y.bytes() //len(xBytes) some time is 65 bytes ,some time is 66…
user9235725
  • 23
  • 1
  • 2
1 2 3
9
10