commit | e13b54e5f74c5f2d4b87bcbdba919d742ac0b9de | [log] [tgz] |
---|---|---|
author | Andres Amaya Garcia <andres.amayagarcia@arm.com> | Fri Aug 04 13:49:29 2017 +0100 |
committer | Andres Amaya Garcia <andres.amayagarcia@arm.com> | Fri Aug 04 13:49:29 2017 +0100 |
tree | 813cff38b084e895e4431ad03ff2c71e11d0cc4e | |
parent | c94aeb5be9ee12b676c8767cdbf1c269f6d80123 [diff] |
Change PK module preprocessor check on word size There were preprocessor directives in pk.c and pk_wrap.c that cheked whether the bit length of size_t was greater than that of unsigned int. However, the check relied on the POLARSSL_HAVE_INT64 macro being defined which is not directly related to size_t. This might result in errors in some platforms. This change modifies the check to use the macros SIZE_MAX and UINT_MAX instead making the code more robust.