mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-06 16:36:16 +08:00
XTS use new GF(2^128) API
This commit is contained in:
@@ -559,8 +559,8 @@ bad:
|
||||
goto end;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_SM4_XTS
|
||||
if (mode == SM4_MODE_XTS) {
|
||||
#ifdef ENABLE_SM4_CCM
|
||||
if (mode == SM4_MODE_CCM) {
|
||||
if (sm4_ccm_crypt(key, keylen, iv, ivlen, aad, aadlen, taglen, infp, outfp, enc, prog) != 1) {
|
||||
goto end;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user