Skip to content

Commit

Permalink
Add KM_TAG_USE_SECURE_PROCESSOR tag definition
Browse files Browse the repository at this point in the history
This tag determines whether or not the key blob is generated via SPU/StrongBox.

Signed-off-by: BlackMesa123 <[email protected]>
  • Loading branch information
salvogiangri committed May 25, 2024
1 parent 1efa7ad commit 7964c1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jni/core/skeymaster_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ typedef enum keymaster_tag_t {
KM_TAG_EKEY_BLOB_HEK_RANDOMNESS = 0x90001392,
KM_TAG_INTEGRITY_FLAGS = 0x300013a7,
KM_TAG_EXPORTABLE = 0x7000025a,
KM_TAG_ORIGIN_2 = 0x100002be
KM_TAG_ORIGIN_2 = 0x100002be,
KM_TAG_USE_SECURE_PROCESSOR = 0x70000bb8 // KM_BOOL | 3000
} keymaster_tag_t;

typedef enum KM_ERROR {
Expand Down
2 changes: 2 additions & 0 deletions jni/core/skeymaster_key_params.c
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,8 @@ char *get_tag_string(keymaster_tag_t tag)
return "KM_TAG_EXPORTABLE";
case KM_TAG_ORIGIN_2:
return "KM_TAG_ORIGIN_2";
case KM_TAG_USE_SECURE_PROCESSOR:
return "KM_TAG_USE_SECURE_PROCESSOR";
default:
return "Unknown";
}
Expand Down

0 comments on commit 7964c1d

Please sign in to comment.