commit | c8905b663d57b82afc8fadd72db85eb54c098637 | [log] [tgz] |
---|---|---|
author | Shawn Willden <swillden@google.com> | Tue May 03 15:37:04 2016 -0600 |
committer | Shawn Willden <swillden@google.com> | Tue May 03 18:21:32 2016 -0600 |
tree | 155e32a54fa48991f3ba8ae5b7313db476b1a1af | |
parent | d487dc9e95162f249048bd31d4191a0d50b77496 [diff] |
Handle 64-bit attestation values on 32-bit platforms. The BN_set_word OpenSSL function takes an unsigned long, which on 32-bit platforms (like fugu) is 32 bits, causing 64-bit values to be truncated. This CL adds a function that handles the conversion correctly on 32-bit platforms, and fails hard on platforms whose unsigned long is neither 64 nor 32 bits. Bug: 28558974 Change-Id: Iac2b23cf2cac3c035b3636ddd135666aaf15b40d