blob: 3ed7edc1ad8f130f0e1cbc913ba55252096dbaff [file] [log] [blame]
Rajesh Nyamagoud4d483372022-02-09 01:38:23 +00001#pragma once
2
3#include "rust/cxx.h"
Rajesh Nyamagoudc946cc42022-04-12 22:49:11 +00004#include "ffi_test_utils.rs.h"
Rajesh Nyamagoud4d483372022-02-09 01:38:23 +00005
6bool validateCertChain(rust::Vec<rust::u8> cert_buf, uint32_t cert_len, bool strict_issuer_check);
Rajesh Nyamagoudc946cc42022-04-12 22:49:11 +00007CxxResult createWrappedKey(rust::Vec<rust::u8> encrypted_secure_key,
8 rust::Vec<rust::u8> encrypted_transport_key,
9 rust::Vec<rust::u8> iv,
10 rust::Vec<rust::u8> tag);
11CxxResult buildAsn1DerEncodedWrappedKeyDescription();
Rajesh Nyamagoud28abde62023-04-01 01:32:32 +000012bool performCryptoOpUsingKeystoreEngine(int64_t grant_id);
Rajesh Nyamagouda42dee62022-04-22 21:15:55 +000013CxxResult getValueFromAttestRecord(rust::Vec<rust::u8> cert_buf, int32_t tag);