GmSSL icon indicating copy to clipboard operation
GmSSL copied to clipboard

这里SM4_XTS算法的key_len是否应该为128bit*2?参照AES_XTS_128的设置,里面会取结构体定义的密钥长度的一半来取key2

Open kerry0417 opened this issue 8 years ago • 3 comments

https://github.com/guanzhi/GmSSL/blob/0adf4ce188bde5f9bdfcdf2b5859b1f0c687e64f/crypto/evp/e_sms4_xts.c#L170

kerry0417 avatar Jun 15 '18 01:06 kerry0417

我这边将这个定义修改为SMS4_KEY_LENGTH*2之后,计算结果正确,没修改之前XTS计算结果是错误的

troyseed avatar Oct 25 '18 01:10 troyseed

你可以提供一个pull request吗? @troyseed

guanzhi avatar Dec 11 '18 04:12 guanzhi

Marked as stale issue. Will be closed later if no activity for a while.

github-actions[bot] avatar Oct 04 '20 01:10 github-actions[bot]