mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 05:49:27 +00:00
VTS to use enum for MissingAction am: 84187967cb
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2909582 Change-Id: Ib0f40b9058f070a60924df5cfc6bb92efccd785c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -26,7 +26,7 @@ use authgraph_vts_test as ag_vts;
|
||||
use authgraph_boringssl as boring;
|
||||
use authgraph_core::key;
|
||||
use coset::{CborSerializable, CoseEncrypt0};
|
||||
use dice_policy::{ConstraintSpec, ConstraintType, DicePolicy};
|
||||
use dice_policy::{ConstraintSpec, ConstraintType, DicePolicy, MissingAction};
|
||||
use secretkeeper_client::dice::OwnedDiceArtifactsWithExplicitKey;
|
||||
use secretkeeper_client::SkSession;
|
||||
use secretkeeper_core::cipher;
|
||||
@@ -255,16 +255,12 @@ fn sealing_policy(dice: &[u8]) -> Vec<u8> {
|
||||
let security_version: i64 = -70005;
|
||||
|
||||
let constraint_spec = [
|
||||
ConstraintSpec::new(
|
||||
ConstraintType::ExactMatch,
|
||||
vec![authority_hash],
|
||||
/* Optional */ false,
|
||||
),
|
||||
ConstraintSpec::new(ConstraintType::ExactMatch, vec![key_mode], false),
|
||||
ConstraintSpec::new(ConstraintType::ExactMatch, vec![authority_hash], MissingAction::Fail),
|
||||
ConstraintSpec::new(ConstraintType::ExactMatch, vec![key_mode], MissingAction::Fail),
|
||||
ConstraintSpec::new(
|
||||
ConstraintType::GreaterOrEqual,
|
||||
vec![config_desc, security_version],
|
||||
true,
|
||||
MissingAction::Ignore,
|
||||
),
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user