【Feature Request】Consider adding "SM2" as a new algorithm

For more: cdn.standards.iteh.ai/samples/76382/b9b985d381c649c2b275d69fa947968a/ISO-IEC-14888-3-2018.pdf (6.12——SM2 Part).

Advantages in brief:

  1. Much less size (fixed size to 256 bits) only, compared with RSA (2048 or 4096 bits) and ECC (128-512 bits).

  2. Much faster, compared with RSA in decryption/encryption, a little faster than ECC.

  3. With encryption/decryption functions/key changing with each other.

  4. Free to the public.

  5. Safe in use.

SM2 is already implemented. You can read more about this topic in the ticket system for Gpg4win/GnuPG.

1 Like

Thanks anyway! I should send another issue to GPG4WIN to confirm other issues.

I have to revise my previous answer after I tried to find an answer for Is "SM2" called by Kleopatra?. SM2 is implemented by libgcrypt which is used by GnuPG. I looked into the source code and found only two lines of code where SM2 is mentioned like in the file https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blob_plain;f=tpm2d/tpm2.c;hb=HEAD. But other algorithms appear much more often. So, right now I’m not sure if GnuPG is making use of SM2. Also, if I’m calling gpg --expert --full-gen-key there is no hint about SM2.

I recommend you to open an issue on https://dev.gnupg.org instead of a topic in this forum because the developers of GnuPG/Gpg4win might overlook your topic here.

1 Like

Got it, thanks and I’ll check it first.