Add sm4_xts and ghash command

This commit is contained in:
Zhi Guan
2024-05-15 10:00:22 +08:00
parent 8fb8dd05ab
commit 7cc5b77cf8
8 changed files with 431 additions and 6 deletions

View File

@@ -143,7 +143,7 @@ int sm4_gcm_main(int argc, char **argv)
if (--argc < 1) goto bad;
taglen = atoi(*(++argv));
if (taglen < SM4_GCM_MIN_TAG_SIZE || taglen > SM4_GCM_MAX_TAG_SIZE) {
fprintf(stderr, "%s: `-taglen` invalid integer argument\n", prog);
fprintf(stderr, "gmssl %s: `-taglen` invalid integer argument\n", prog);
goto end;
}
} else if (!strcmp(*argv, "-in")) {