Searched hist:a72295ea7645c65f0f030d344b4ba5f4171adbe6 (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/lib/libtomcrypt/ |
| H A D | sm2-pke.c | a72295ea7645c65f0f030d344b4ba5f4171adbe6 Thu Jan 16 21:29:52 UTC 2020 Jerome Forissier <jerome@forissier.org> core: ltc: SM2 PKE: fix bignum conversions
All integers used in the SM2 algorithms are encoded as 32 byte buffers in big endian format. The current code does not properly pad the buffer with zeros when a value does not need the whole 32 bytes and has a few other related issues. Fix that.
Fixes: f9a78287dd12 ("core: ltc: add support for SM2 PKE") Signed-off-by: Jerome Forissier <jerome@forissier.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
|