Re: issues about sm4

2022-11-24 Thread Niels Möller
"wuchangsheng (C)" writes: > When we look into the realization of sm4 codes, we found that there is > no check of input ctx and key in sm4_set_encrypt_key and > sm4_set_decrypt_key, also the problem exist in sm4_crypt. So we wonder > if there is necessary to check if the input pointer is NULL.

issues about sm4

2022-11-24 Thread wuchangsheng (C)
Hi Niels, When we look into the realization of sm4 codes, we found that there is no check of input ctx and key in sm4_set_encrypt_key and sm4_set_decrypt_key, also the problem exist in sm4_crypt. So we wonder if there is necessary to check if the input pointer is NULL. We would like to hear