commit | fafd83694350ba2a04ad90e32246b1998578f77c | [log] [tgz] |
---|---|---|
author | Janis Danisevskis <jdanis@google.com> | Fri Oct 30 21:44:13 2020 -0700 |
committer | Janis Danisevskis <jdanis@google.com> | Fri Oct 30 22:10:16 2020 -0700 |
tree | eadef7ec346e14cc5ef5cd820174316018385075 | |
parent | f5c754682f14115ac23eaacceb06ae3ac2dd6096 [diff] |
attestation_record: Fixed get_ulong truncation get_ulong uses BN_get_word returns unsigned long, which is sensitive to the mashine word size. In the context of the attestation record ulong means 64bit though. So on 32bit architectures 64 bit records would be truncated (or rather saturated). This patch uses BN_get_u64 instead. Test: keymaster_tests Change-Id: I827415ebd7b95609b2781104a851f16a21d6ce24