Merge "DICE: Use fixed sized arrays for fixed sized fields."

This commit is contained in:
Treehugger Robot 2022-01-18 19:32:16 +00:00 committed by Gerrit Code Review
commit 9bea46c467
4 changed files with 12 additions and 12 deletions

View file

@ -35,7 +35,7 @@ package android.hardware.security.dice;
/* @hide */
@RustDerive(Clone=true, Eq=true, Hash=true, Ord=true, PartialEq=true, PartialOrd=true) @VintfStability
parcelable BccHandover {
byte[] cdiAttest;
byte[] cdiSeal;
byte[32] cdiAttest;
byte[32] cdiSeal;
android.hardware.security.dice.Bcc bcc;
}

View file

@ -35,10 +35,10 @@ package android.hardware.security.dice;
/* @hide */
@RustDerive(Clone=true, Eq=true, Hash=true, Ord=true, PartialEq=true, PartialOrd=true) @VintfStability
parcelable InputValues {
byte[] codeHash;
byte[64] codeHash;
android.hardware.security.dice.Config config;
byte[] authorityHash;
byte[64] authorityHash;
@nullable byte[] authorityDescriptor;
android.hardware.security.dice.Mode mode = android.hardware.security.dice.Mode.NOT_INITIALIZED;
byte[] hidden;
byte[64] hidden;
}

View file

@ -27,13 +27,13 @@ import android.hardware.security.dice.Bcc;
@RustDerive(Clone=true, Eq=true, PartialEq=true, Ord=true, PartialOrd=true, Hash=true)
parcelable BccHandover {
/**
* CDI_attest. Must a exactly 32 bytes of data.
* CDI_attest. Must be exactly 32 bytes of data.
*/
byte[] cdiAttest;
byte[32] cdiAttest;
/**
* CDI_seal. Must a exactly 32 bytes of data.
* CDI_seal. Must be exactly 32 bytes of data.
*/
byte[] cdiSeal;
byte[32] cdiSeal;
/**
* CBOR encoded BCC.
*

View file

@ -34,7 +34,7 @@ parcelable InputValues {
/**
* The target code hash. Must be exactly 64 bytes.
*/
byte[] codeHash;
byte[64] codeHash;
/**
* The configuration data.
*/
@ -42,7 +42,7 @@ parcelable InputValues {
/**
* The authority hash. Must be exactly 64 bytes. Must be all zero if unused.
*/
byte[] authorityHash;
byte[64] authorityHash;
/**
* Optional free form authorityDescriptor.
*/
@ -54,5 +54,5 @@ parcelable InputValues {
/**
* Optional hidden values. Must be exactly 64 bytes. Must be all zero if unused.
*/
byte[] hidden;
byte[64] hidden;
}