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 you
"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. We