Java compact representation of ECC PublicKey

后端 未结 4 1453
没有蜡笔的小新
没有蜡笔的小新 2021-01-06 08:30

java.security.PublicKey#getEncoded() returns X509 representation of key which in case of ECC adds a lot of overhead compared to raw ECC values.

I\'d lik

4条回答
  •  臣服心动
    2021-01-06 09:28

    With BouncyCastle, ECPoint.getEncoded(true) returns a compressed representation of the point. Basically the affine X coordinate with a sign bit for the affine Y.

提交回复
热议问题