1 #pragma once 2 3 #include "ffi_test_utils.rs.h" 4 #include "rust/cxx.h" 5 6 bool validateCertChain(rust::Vec<rust::u8> cert_buf, uint32_t cert_len, bool strict_issuer_check); 7 CxxResult createWrappedKey(rust::Vec<rust::u8> encrypted_secure_key, 8 rust::Vec<rust::u8> encrypted_transport_key, rust::Vec<rust::u8> iv, 9 rust::Vec<rust::u8> tag); 10 CxxResult buildAsn1DerEncodedWrappedKeyDescription(); 11 bool performCryptoOpUsingKeystoreEngine(int64_t grant_id); 12 CxxResult getValueFromAttestRecord(rust::Vec<rust::u8> cert_buf, int32_t tag, 13 int32_t expected_sec_level); 14 uint32_t getOsVersion(); 15 uint32_t getOsPatchlevel(); 16 uint32_t getVendorPatchlevel(); 17