commit | 7b239ab92b9db5a04c3037e78455ef7f29167bf0 | [log] [tgz] |
---|---|---|
author | Jerome Forissier <jerome@forissier.org> | Tue Mar 30 15:03:59 2021 +0200 |
committer | Jérôme Forissier <jerome@forissier.org> | Tue Mar 30 16:25:18 2021 +0200 |
tree | a5b675f9f2a10551ecbf2250d194dd8960c061f5 | |
parent | e86aba278fa505f4420da9ac384b95a42d6f83c0 [diff] |
gp: fix endianness of two RSA public exponents GP tests 30125 (9d-21-98) and 30127 (9d-28-5d) use badly encoded constants: TEE_ATTR_RSA_PUBLIC_EXPONENT_VALUE_GEN_NOT_ODD (= 65538) TEE_ATTR_RSA_PUBLIC_EXPONENT_VALUE_NOT_GEN_DEFAULT (= 66001), respectively. The values are given in decimal in the test suite documentation and were erroneously encoded in little endian order in source file host/xtest/gp/include/xml_datastorage_api.h. Fix the values by using big endian encoding as expected by the GP API when big numbers are provided as input to crypto functions. Fixes the failure of "xtest gp_30125" after OP-TEE OS commit [1] (prior to that commit, both the code and the test were wrong). Link: [1] https://github.com/OP-TEE/optee_os/commit/c9366c1eeaa1c3dcecafeb03bef24e9e6fc660c4 Signed-off-by: Jerome Forissier <jerome@forissier.org>
This git contains source code for the test suite (xtest) used to test the OP-TEE project.
All official OP-TEE documentation has moved to http://optee.readthedocs.io. The information that used to be here in this git can be found under optee_test.
// OP-TEE core maintainers