Home
last modified time | relevance | path

Searched refs:atx_ops (Results 1 – 6 of 6) sorted by relevance

/external/avb/examples/things/
Davb_atx_slot_verify.c46 AvbAtxOps atx_ops; member
53 static AvbAtxOpsContext* get_ops_context(AvbAtxOps* atx_ops) { in get_ops_context() argument
54 return &((AvbAtxOpsWithContext*)atx_ops)->context; in get_ops_context()
60 static void save_key_version_to_context(AvbAtxOps* atx_ops, in save_key_version_to_context() argument
63 AvbAtxOpsContext* context = get_ops_context(atx_ops); in save_key_version_to_context()
79 ops_with_context->atx_ops = *existing_ops; in setup_ops_with_context()
81 ops_with_context->atx_ops.ops->atx_ops = &ops_with_context->atx_ops; in setup_ops_with_context()
82 ops_with_context->atx_ops.set_key_version = save_key_version_to_context; in setup_ops_with_context()
83 return &ops_with_context->atx_ops; in setup_ops_with_context()
126 AvbAtxOps* atx_ops, in avb_atx_slot_verify() argument
[all …]
/external/avb/libavb_atx/
Davb_atx_validate.c206 result = ops->atx_ops->read_permanent_attributes(ops->atx_ops, in avb_atx_validate_vbmeta_public_key()
212 result = ops->atx_ops->read_permanent_attributes_hash( in avb_atx_validate_vbmeta_public_key()
213 ops->atx_ops, permanent_attributes_hash); in avb_atx_validate_vbmeta_public_key()
276 ops->atx_ops->set_key_version( in avb_atx_validate_vbmeta_public_key()
277 ops->atx_ops, in avb_atx_validate_vbmeta_public_key()
280 ops->atx_ops->set_key_version( in avb_atx_validate_vbmeta_public_key()
281 ops->atx_ops, in avb_atx_validate_vbmeta_public_key()
290 AvbAtxOps* atx_ops, AvbAtxUnlockChallenge* out_unlock_challenge) { in avb_atx_generate_unlock_challenge() argument
295 result = atx_ops->read_permanent_attributes(atx_ops, &permanent_attributes); in avb_atx_generate_unlock_challenge()
300 result = atx_ops->get_random( in avb_atx_generate_unlock_challenge()
[all …]
Davb_atx_ops.h54 AvbAtxOps* atx_ops, AvbAtxPermanentAttributes* attributes);
61 AvbAtxOps* atx_ops, uint8_t hash[AVB_SHA256_DIGEST_SIZE]);
66 void (*set_key_version)(AvbAtxOps* atx_ops,
75 AvbIOResult (*get_random)(AvbAtxOps* atx_ops,
Davb_atx_validate.h75 AvbAtxOps* atx_ops, AvbAtxUnlockChallenge* out_unlock_challenge);
83 AvbAtxOps* atx_ops,
/external/avb/test/
Dfake_avb_ops.cc563 AvbAtxOps* atx_ops, AvbAtxPermanentAttributes* attributes) { in my_ops_read_permanent_attributes() argument
564 return FakeAvbOps::GetInstanceFromAvbOps(atx_ops->ops) in my_ops_read_permanent_attributes()
570 AvbAtxOps* atx_ops, uint8_t hash[AVB_SHA256_DIGEST_SIZE]) { in my_ops_read_permanent_attributes_hash() argument
571 return FakeAvbOps::GetInstanceFromAvbOps(atx_ops->ops) in my_ops_read_permanent_attributes_hash()
576 static void my_ops_set_key_version(AvbAtxOps* atx_ops, in my_ops_set_key_version() argument
579 return FakeAvbOps::GetInstanceFromAvbOps(atx_ops->ops) in my_ops_set_key_version()
584 static AvbIOResult my_ops_get_random(AvbAtxOps* atx_ops, in my_ops_get_random() argument
587 return FakeAvbOps::GetInstanceFromAvbOps(atx_ops->ops) in my_ops_get_random()
595 avb_ops_.atx_ops = &avb_atx_ops_; in FakeAvbOps()
/external/avb/libavb/
Davb_ops.h110 struct AvbAtxOps* atx_ops; member