/* @ops: AvbOps, contains AVB ops handlers @public_key_data: public key for verifying vbmeta partition signature @public_key_length: length of public key @public_key_metadata: @public_key_metadata_length: @out_key_is_trusted: */
static AvbIOResult validate_vbmeta_public_key(AvbOps *ops, const u8 *public_key_data, size_t public_key_length, const u8 *public_key_metadata, size_t public_key_metadata_length, bool *out_key_is_trusted)
/* @ops: AvbOps, contains AVB ops handlers @public_key_data: public key for verifying vbmeta partition signature @public_key_length: length of public key @public_key_metadata: @public_key_metadata_length: @out_key_is_trusted: */
static AvbIOResult validate_vbmeta_public_key(AvbOps *ops, const u8 *public_key_data, size_t public_key_length, const u8 *public_key_metadata, size_t public_key_metadata_length, bool *out_key_is_trusted)
{
	if (!public_key_length || !public_key_data || !out_key_is_trusted)
		return AVB_IO_RESULT_ERROR_IO;
	*out_key_is_trusted = false;
	if (public_key_length != sizeof(avb_root_pub))
		return AVB_IO_RESULT_ERROR_IO;
	if (memcmp(avb_root_pub, public_key_data, public_key_length) == 0)
		*out_key_is_trusted = true;
	return AVB_IO_RESULT_OK;
}