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
1 file changed