Commit Graph

10 Commits

Author SHA1 Message Date
Zhi Guan
c12edeb7b1 Fix SM4 API bugs and change behavior 2026-06-13 22:14:56 +08:00
wangtsiao
3163d7d927 fix: use constant-time comparisons for auth tags 2026-06-12 19:13:30 -10:00
Melacau
403891478d Fixed sm4_ccm decrypt. 2024-09-06 13:08:21 +08:00
Zhi Guan
4f21be027e Remove warnings 2024-05-23 17:12:53 +08:00
Zhi Guan
d56eeaac5a Remove warnings 2024-05-17 13:12:51 +08:00
Zhi Guan
e17df320be Remove cl building warnings 2024-05-13 15:52:59 +08:00
Zhi Guan
ae2f635b7f Fix SM4-CCM counter overflow bug
Need test vectors to check the correctness
2024-04-22 17:43:29 +08:00
Zhi Guan
a485fa0b10 Fix SM4-CCM bug in length encoding 2024-04-21 10:09:31 +08:00
Zhi Guan
c9c26aca44 Add more SM4 modes 2024-02-19 14:16:49 +08:00
Zhi Guan
8ae03e8105 Add more sm4 modes
Not tested yet
2024-02-10 15:46:59 +08:00