SMS4-ECB 参数iv必须传,不然会挂掉。 SMS4-ECB 传递iv后,返回值为null。
Describe the bug SMS4-ECB 参数iv必须传,不然会挂掉。 SMS4-ECB 传递iv后,返回值为null。
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Environments
- OS: windows10
- GmSSL-JNI API/1.1 2017-09-01,
- GmSSL 2.5.4 - OpenSSL 1.1.0d 19 Jun 2019,
- compiler: cl " "VC-WIN64A,
- built on: reproducible build, date unspecified,
- platform: ,
- OPENSSLDIR: "C:\Program Files\Common Files\SSL",
- ENGINESDIR: "C:\Program Files\GmSSL\lib\engines-1_1"
Additional context Add any other context about the problem here.
Marked as stale issue. Will be closed later if no activity for a while.
SMS4-ECB 内部会修改你的iv值,所以你传入的iv必须先拷贝一份,然后把拷贝部分传入,不然你的原始iv会被修改。
CBC, OFB, CFB ,CTR 经过测试都可以。 ECB 会出现 core dump
这个问题啥时间可以修复呢? 另外,对比了一下 Java中的 bc 生成的,发现Java生成的字节数都是16倍数,而gmssl生成的,非 cbc模式下是跟原始内容长度一致,cbc是16的倍数。也就是说两者只有在 cbc模式下生成的数据才能互认
Marked as stale issue. Will be closed later if no activity for a while.