How to extend the support of SM2 national secret algorithm?

Issue #479 new
张晓明 created an issue

At present, RSAKey is used for verification based on rea algorithm. For some reasons, sm2 needs to be supported. Is there any relevant sample program for reference? Thank you very much~

SM2 default curve: sm2p256v1

Oid identifier of the public key parameter of the SM2 national secret algorithm: 1.2.156.10197.1.301

Curve curve = new Curve("sm2p256v1", "sm2p256v1", "1.2.156.10197.1.301");
ECKey key = new ECKey.Builder(curve, x, y).keyID(UUID.randomUUID().toString()).build();

Comments (2)

  1. Log in to comment