ba3c557420
When the mpi_ec_ctx structure is initialized, some fields are not
cleared, causing a crash when referencing the field when the
structure was released. Initially, this issue was ignored because
memory for mpi_ec_ctx is allocated with the __GFP_ZERO flag.
For example, this error will be triggered when calculating the
Za value for SM2 separately.
Fixes:
|
||
---|---|---|
.. | ||
mpi | ||
aes.c | ||
aesgcm.c | ||
arc4.c | ||
blake2s-generic.c | ||
blake2s-selftest.c | ||
blake2s.c | ||
chacha20poly1305-selftest.c | ||
chacha20poly1305.c | ||
chacha.c | ||
curve25519-fiat32.c | ||
curve25519-generic.c | ||
curve25519-hacl64.c | ||
curve25519-selftest.c | ||
curve25519.c | ||
des.c | ||
gf128mul.c | ||
Kconfig | ||
libchacha.c | ||
Makefile | ||
memneq.c | ||
poly1305-donna32.c | ||
poly1305-donna64.c | ||
poly1305.c | ||
sha1.c | ||
sha256.c | ||
utils.c |