Update sm4 ctr tests

This commit is contained in:
Zhi Guan
2024-06-02 22:33:00 +08:00
parent df950995e8
commit 478d75349b
2 changed files with 71 additions and 1 deletions

View File

@@ -111,7 +111,7 @@ int hex2bin(const char *in, size_t inlen, uint8_t *out)
while (inlen) {
if ((c = hexchar2int(*in++)) < 0) {
error_print_msg("%d", 5);
error_print();
return -1;
}
*out = (uint8_t)c << 4;