linux/drivers/platform/x86/hp/hp-bioscfg/spmobj-attributes.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Functions corresponding to secure platform management object type
 * attributes under BIOS PASSWORD for use with hp-bioscfg driver
 *
 * Copyright (c) 2022 HP Development Company, L.P.
 */

#include "bioscfg.h"

static const char * const spm_state_types[] =;

static const char * const spm_mechanism_types[] =;

struct secureplatform_provisioning_data {};

/**
 * hp_calculate_security_buffer() - determines size of security buffer
 * for authentication scheme
 *
 * @authentication: the authentication content
 *
 * Currently only supported type is Admin password
 */
size_t hp_calculate_security_buffer(const char *authentication)
{}

/**
 * hp_populate_security_buffer() - builds a security buffer for
 * authentication scheme
 *
 * @authbuf: the security buffer
 * @authentication: the authentication content
 *
 * Currently only supported type is PLAIN TEXT
 */
int hp_populate_security_buffer(u16 *authbuf, const char *authentication)
{}

static ssize_t update_spm_state(void)
{}

static ssize_t statusbin(struct kobject *kobj,
			 struct kobj_attribute *attr,
			 struct secureplatform_provisioning_data *buf)
{}

/*
 * status_show - Reads SPM status
 */
static ssize_t status_show(struct kobject *kobj, struct kobj_attribute
			   *attr, char *buf)
{}

static struct kobj_attribute password_spm_status =;

ATTRIBUTE_SPM_N_PROPERTY_SHOW(is_enabled, spm);
static struct kobj_attribute password_spm_is_key_enabled =;

static ssize_t key_mechanism_show(struct kobject *kobj, struct kobj_attribute *attr,
				  char *buf)
{}

static struct kobj_attribute password_spm_key_mechanism =;

static ssize_t sk_store(struct kobject *kobj,
			struct kobj_attribute *attr,
			const char *buf, size_t count)
{}

static struct kobj_attribute password_spm_signing_key =;

static ssize_t kek_store(struct kobject *kobj,
			 struct kobj_attribute *attr,
			 const char *buf, size_t count)
{}

static struct kobj_attribute password_spm_endorsement_key =;

static ssize_t role_show(struct kobject *kobj, struct kobj_attribute *attr,
			 char *buf)
{}

static struct kobj_attribute password_spm_role =;

static ssize_t auth_token_store(struct kobject *kobj,
				struct kobj_attribute *attr,
				const char *buf, size_t count)
{}

static struct kobj_attribute password_spm_auth_token =;

static struct attribute *secure_platform_attrs[] =;

static const struct attribute_group secure_platform_attr_group =;

void hp_exit_secure_platform_attributes(void)
{}

int hp_populate_secure_platform_data(struct kobject *attr_name_kobj)
{}