[DO NOT MERGE] Revert "Restructed reference root of trust (1/3 Keybox)"
This reverts commit e4ee4eb404.
Reason for revert: Feature missed deadline
Bug: 135283522
Change-Id: I4ee2caac2dadfcc3e145b9c9b977d216d4edd929
This commit is contained in:
@@ -65,40 +65,31 @@ class CryptoEngine {
|
||||
|
||||
virtual bool Initialize();
|
||||
|
||||
bool ValidRootOfTrust() const { return root_of_trust_.IsValid(); }
|
||||
bool ValidRootOfTrust() { return root_of_trust_.Validate(); }
|
||||
|
||||
OEMCryptoResult InstallKeybox(const uint8_t* keybox, size_t keybox_length) {
|
||||
bool InstallKeybox(const uint8_t* keybox, size_t keybox_length) {
|
||||
return root_of_trust_.InstallKeybox(keybox, keybox_length);
|
||||
}
|
||||
|
||||
OEMCryptoResult InstallTestKeybox(const uint8_t* keybox_data,
|
||||
size_t keybox_length) {
|
||||
return root_of_trust_.InstallTestKeybox(keybox_data, keybox_length);
|
||||
bool UseTestKeybox(const uint8_t* keybox_data, size_t keybox_length) {
|
||||
return root_of_trust_.UseTestKeybox(keybox_data, keybox_length);
|
||||
}
|
||||
|
||||
OEMCryptoResult LoadTestRsaKey() { return root_of_trust_.LoadTestRsaKey(); }
|
||||
bool LoadTestRsaKey() { return root_of_trust_.LoadTestRsaKey(); }
|
||||
|
||||
OEMCryptoResult IsKeyboxValid() const {
|
||||
return root_of_trust_.IsKeyboxValid();
|
||||
}
|
||||
KeyboxError ValidateKeybox() { return root_of_trust_.ValidateKeybox(); }
|
||||
|
||||
std::vector<uint8_t> DeviceRootKey() const {
|
||||
const std::vector<uint8_t>& DeviceRootKey() {
|
||||
return root_of_trust_.DeviceKey();
|
||||
}
|
||||
|
||||
OEMCryptoResult GetDeviceRootId(uint8_t* device_id,
|
||||
size_t* device_id_length) const {
|
||||
return root_of_trust_.GetDeviceId(device_id, device_id_length);
|
||||
}
|
||||
|
||||
std::vector<uint8_t> DeviceRootId() const {
|
||||
const std::vector<uint8_t>& DeviceRootId() {
|
||||
return root_of_trust_.DeviceId();
|
||||
}
|
||||
|
||||
OEMCryptoResult GetRootKeyData(uint8_t* key_data,
|
||||
size_t* key_data_length) const {
|
||||
return root_of_trust_.GetKeyData(key_data, key_data_length);
|
||||
}
|
||||
size_t DeviceRootTokenLength() { return root_of_trust_.DeviceTokenLength(); }
|
||||
|
||||
const uint8_t* DeviceRootToken() { return root_of_trust_.DeviceToken(); }
|
||||
|
||||
virtual void Terminate();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user