#include "bioscfg.h"
static const char * const spm_state_types[] = …;
static const char * const spm_mechanism_types[] = …;
struct secureplatform_provisioning_data { … };
size_t hp_calculate_security_buffer(const char *authentication)
{ … }
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)
{ … }
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)
{ … }