intel / cryptography-primitives

Apache License 2.0
318 stars 86 forks source link

Add SM4-GCM support #57

Open zkonge opened 1 year ago

zkonge commented 1 year ago

https://datatracker.ietf.org/doc/html/rfc8998

Why CCM exists but GCM not?

ElenaTyuleneva commented 1 year ago

Hello @zkonge !

Glad to see your interest in IPP Crypto. Let me answer your question. 

Why CCM exists but GCM not?

Currently, we support the next modes for SM4 algorithm: ECB, CBC, CFB, OFB, CTR, CCM. GCM is not currently supported. 

Is SM4-GCM mode important for you? Could you please share the application/use-case where you use this algorithm?

Regarding the request to implement this mode:  Please, submit your feature request via Intel online center - https://supporttickets.intel.com/s/?language=en_US - with a description of why this mode is important for you. 

 

bingzhux commented 1 year ago

@zkonge you can try this? https://github.com/mjosaarinen/sm4ni