neopg icon indicating copy to clipboard operation
neopg copied to clipboard

Request for SM2, SM3 and SM4

Open yeungtuzi opened this issue 6 years ago • 2 comments

Botan2 already has support for SM2/3/4 algorithms which are published by OSCCA(Office of State Commercial Cipher Administration) to meet regulations for use within China. And also, openpgp has that draft extension which can be found here: https://datatracker.ietf.org/doc/draft-ribose-openpgp-oscca/

So, please, if you can add the support for those algorithms? Thanks.

You can run 'botan-test sm2_enc sm2_sig hash' to verify the support.

yeungtuzi avatar Dec 13 '17 01:12 yeungtuzi

Ok, cool! Thanks for bringing this to my attention.

Unforunately, we have not yet refactored the cipher parts in neopg, so we can not easily plug in the new ciphers yet. Once the framework is there, we can plug this in, probably starting in January/February.

Something else I noticed browsing through the document: The draft document does not have the IANA identifiers yet. Do we want to use the private id space initially?

lambdafu avatar Dec 13 '17 02:12 lambdafu

Sure. But since it is required by the lcoal law, that's only a matter of time, I think.

yeungtuzi avatar Dec 14 '17 07:12 yeungtuzi