How to make a Bouncy Castle ECPublicKey

后端 未结 4 807
逝去的感伤
逝去的感伤 2021-02-04 18:14

I know the curve name (secp256k1) and the X and Y coordinates of the EC public key.

How do I make a org.bouncycastle.jce.int

4条回答
  •  情书的邮戳
    2021-02-04 18:43

    ECUtil Already provided

    ECPublicKeyParameters bcecPublicKey =(ECPublicKeyParameters) ECUtil.generatePublicKeyParameter(kp.getPublic());
    ECPrivateKeyParameters bcecPrivateKey = (ECPrivateKeyParameters) ECUtil.generatePrivateKeyParameter(kp.getPrivate());
    

提交回复
热议问题