SM4_BLOCK_SIZE
|| inl < SM4_BLOCK_SIZE)
if (inl > XTS_MAX_BLOCKS_PER_DATA_UNIT * SM4_BLOCK_SIZE) {
static const uint8_t k[SM4_BLOCK_SIZE] = {
static const uint8_t input[SM4_BLOCK_SIZE] = {
static const uint8_t expected[SM4_BLOCK_SIZE] = {
static const uint8_t expected_iter[SM4_BLOCK_SIZE] = {
uint8_t block[SM4_BLOCK_SIZE];
memcpy(block, input, SM4_BLOCK_SIZE);
if (!TEST_mem_eq(block, SM4_BLOCK_SIZE, expected, SM4_BLOCK_SIZE))
if (!TEST_mem_eq(block, SM4_BLOCK_SIZE, expected_iter, SM4_BLOCK_SIZE))
if (!TEST_mem_eq(block, SM4_BLOCK_SIZE, input, SM4_BLOCK_SIZE))