Closed Gsealy closed 5 years ago
you can use blow code:
final ECGenParameterSpec ecGenSpec = new ECGenParameterSpec("sm2p256v1"); final KeyPairGenerator kpg = KeyPairGenerator.getInstance("EC","BC"); kpg.initialize(ecGenSpec); final KeyPair kp = kpg.generateKeyPair();
BR, Gsealy
wow, thank you
https://github.com/Trisia/alg-sm2-demo/blob/eb3d231804bd2b2c5aa6966c4899f56af1d792f8/src/main/java/edu/hznu/crypto/algsm2demo/SM2KeyGenerateFactory.java#L34
you can use blow code:
BR, Gsealy