Home
last modified time | relevance | path

Searched refs:SM4_BLOCK_SIZE (Results 1 – 2 of 2) sorted by relevance

/freebsd/crypto/openssl/test/
H A Dsm4_internal_test.c24 static const uint8_t k[SM4_BLOCK_SIZE] = { in test_sm4_ecb()
29 static const uint8_t input[SM4_BLOCK_SIZE] = { in test_sm4_ecb()
38 static const uint8_t expected[SM4_BLOCK_SIZE] = { in test_sm4_ecb()
48 static const uint8_t expected_iter[SM4_BLOCK_SIZE] = { in test_sm4_ecb()
55 uint8_t block[SM4_BLOCK_SIZE]; in test_sm4_ecb()
58 memcpy(block, input, SM4_BLOCK_SIZE); in test_sm4_ecb()
61 if (!TEST_mem_eq(block, SM4_BLOCK_SIZE, expected, SM4_BLOCK_SIZE)) in test_sm4_ecb()
67 if (!TEST_mem_eq(block, SM4_BLOCK_SIZE, expected_iter, SM4_BLOCK_SIZE)) in test_sm4_ecb()
73 if (!TEST_mem_eq(block, SM4_BLOCK_SIZE, input, SM4_BLOCK_SIZE)) in test_sm4_ecb()
/freebsd/crypto/openssl/include/crypto/
H A Dsm4.h25 # define SM4_BLOCK_SIZE 16 macro