Searched hist:"8 cda2ac42aaaf0328b00347a6b08759458a4fc20" (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/lib/libtomcrypt/ |
| H A D | sm2-dsa.c | 8cda2ac42aaaf0328b00347a6b08759458a4fc20 Thu Jan 16 21:29:52 UTC 2020 Jerome Forissier <jerome@forissier.org> core: ltc: SM2 DSA: 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. Fix that.
Fixes: 76c7ba4b9ff7 ("core: ltc: add support for SM2 DSA") Signed-off-by: Jerome Forissier <jerome@forissier.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
|