summaryrefslogtreecommitdiff
path: root/keystore2/tests/ffi_test_utils.hpp
blob: b8c7c483a16299f528f12fd80414041c8a87057f (plain)
1
2
3
4
5
6
7
8
9
10
11
#pragma once

#include "rust/cxx.h"
#include "ffi_test_utils.rs.h"

bool validateCertChain(rust::Vec<rust::u8> cert_buf, uint32_t cert_len, bool strict_issuer_check);
CxxResult createWrappedKey(rust::Vec<rust::u8> encrypted_secure_key,
                              rust::Vec<rust::u8> encrypted_transport_key,
                              rust::Vec<rust::u8> iv,
                              rust::Vec<rust::u8> tag);
CxxResult buildAsn1DerEncodedWrappedKeyDescription();