coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
vboot_storage.c File Reference
Include dependency graph for vboot_storage.c:

Go to the source code of this file.

Macros

#define VBOOT_HASH_VSLOT   0
 
#define VBOOT_HASH_VSLOT_MASK   (1 << (VBOOT_HASH_VSLOT))
 

Functions

int vboot_save_hash (void *digest, size_t digest_size)
 
int vboot_retrieve_hash (void *digest, size_t digest_size)
 

Macro Definition Documentation

◆ VBOOT_HASH_VSLOT

#define VBOOT_HASH_VSLOT   0

Definition at line 8 of file vboot_storage.c.

◆ VBOOT_HASH_VSLOT_MASK

#define VBOOT_HASH_VSLOT_MASK   (1 << (VBOOT_HASH_VSLOT))

Definition at line 9 of file vboot_storage.c.

Function Documentation

◆ vboot_retrieve_hash()

int vboot_retrieve_hash ( void digest,
size_t  digest_size 
)

Definition at line 43 of file vboot_storage.c.

References assert, EC_VSTORE_SLOT_SIZE, google_chromeec_vstore_read(), and VBOOT_HASH_VSLOT.

Referenced by handle_digest_result().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vboot_save_hash()

int vboot_save_hash ( void digest,
size_t  digest_size 
)

Definition at line 11 of file vboot_storage.c.

References assert, BIOS_ERR, EC_VSTORE_SLOT_SIZE, google_chromeec_vstore_info(), google_chromeec_vstore_write(), printk, VBOOT_HASH_VSLOT, and VBOOT_HASH_VSLOT_MASK.

Referenced by handle_digest_result().

Here is the call graph for this function:
Here is the caller graph for this function: