You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working with SM4 algorithm, setsockopt() fails with errno -EINVAL. This is because SM4 supports 16-byte keys only but a 32-byte key is used by kcapi-enc.
An optional solution is to add an option to kcapi-enc to specify key length, imho.
The text was updated successfully, but these errors were encountered:
This issue is similar to #141 .
When working with
SM4
algorithm,setsockopt()
fails with errno-EINVAL
. This is becauseSM4
supports 16-byte keys only but a 32-byte key is used bykcapi-enc
.An optional solution is to add an option to
kcapi-enc
to specify key length, imho.The text was updated successfully, but these errors were encountered: