itext-java icon indicating copy to clipboard operation
itext-java copied to clipboard

itext7 support sm3withsm2 signature

Open HankoZhou opened this issue 3 years ago • 0 comments

SM2 signature is used by more and more use in China, and BouncyCastle has also supported SM2/SM3 algorithm. It is hoped that iText can also support SM2 signature. At present, there are several ways of PDF signature. I implement mode 2 and mode 3. At present, I submit mode 2.

mode1: RSA: original - > sha256withrsa - > pkcs#7 mode2: SM2: original - > sm3withsm2 - > pkcs#7 mode3: SM2: original - > sm3withsm2 - > gb38540

HankoZhou avatar Jan 07 '22 03:01 HankoZhou