Page 2 of 2

Re: simulator not Support china Shangmi

Posted: Thu Apr 25, 2019 11:59 pm
by kuafu
simulator didn't support sm2.

Re: simulator not Support china Shangmi

Posted: Tue Dec 17, 2019 7:43 am
by tay00000
weiwei2009 wrote:
Wed Apr 10, 2019 9:51 am

Code: Select all

SM2_PUB_KEY = (SM2PublicKey)KeyBuilder.buildKey(SMConstant.KEY_TYPE_SM2_PUBLIC, (short)512, false);
The length field for key builder for the SM2 Public Key is incorrect. The length should be:

Code: Select all

SMConstant.KEY_LENGTH_SM2
Correct code should be:

Code: Select all

SM2_PUB_KEY = (SM2PublicKey)KeyBuilder.buildKey(SMConstant.KEY_TYPE_SM2_PUBLIC, SMConstant.KEY_LENGTH_SM2, false);

Re: simulator not Support china Shangmi

Posted: Tue Jan 07, 2020 1:03 am
by Poonaam
Hi!
Excellent share.. keep sharing!

Thank you!!