commit | a72295ea7645c65f0f030d344b4ba5f4171adbe6 | [log] [tgz] |
---|---|---|
author | Jerome Forissier <jerome@forissier.org> | Thu Jan 16 22:29:52 2020 +0100 |
committer | Jérôme Forissier <jerome@forissier.org> | Fri Jan 17 15:16:37 2020 +0100 |
tree | 99c3a43e2163752a35720069765a233f8690db61 | |
parent | 463acb4d50929fc3d3c803c7de8a55c07694c951 [diff] |
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>
This git contains source code for the secure side implementation of OP-TEE project.
All official OP-TEE documentation has moved to http://optee.readthedocs.io.
// OP-TEE core maintainers