itext-java
itext-java copied to clipboard
itext7 support sm3withsm2 signature
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