![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <2crypto.h>
#include <2return_codes.h>
#include <bl_uapp/bl_syscall_public.h>
#include <commonlib/bsd/helpers.h>
#include <console/console.h>
#include "psp_verstage.h"
#include <stddef.h>
#include <string.h>
#include <swab.h>
#include <vb2_api.h>
Go to the source code of this file.
Functions | |
vb2_error_t | vb2ex_hwcrypto_digest_init (enum vb2_hash_algorithm hash_alg, uint32_t data_size) |
vb2_error_t | vb2ex_hwcrypto_digest_extend (const uint8_t *buf, uint32_t size) |
vb2_error_t | vb2ex_hwcrypto_digest_finalize (uint8_t *digest, uint32_t digest_size) |
vb2_error_t | vb2ex_hwcrypto_modexp (const struct vb2_public_key *key, uint8_t *inout, uint32_t *workbuf32, int exp) |
Variables | |
static struct sha_generic_data | sha_op |
static uint32_t | sha_op_size_remaining |
static uint8_t | sha_hash [64] |
Definition at line 47 of file vboot_crypto.c.
References BIOS_ERR, buf, printk, sha_op, sha_op_size_remaining, and svc_crypto_sha().
vb2_error_t vb2ex_hwcrypto_digest_init | ( | enum vb2_hash_algorithm | hash_alg, |
uint32_t | data_size | ||
) |
Definition at line 18 of file vboot_crypto.c.
References BIOS_DEBUG, BIOS_INFO, NULL, platform_set_sha_op(), printk, sha_hash, sha_op, and sha_op_size_remaining.
vb2_error_t vb2ex_hwcrypto_modexp | ( | const struct vb2_public_key * | key, |
uint8_t * | inout, | ||
uint32_t * | workbuf32, | ||
int | exp | ||
) |
Definition at line 101 of file vboot_crypto.c.
References BIOS_ERR, printk, svc_modexp(), and swab32.
|
static |
Definition at line 16 of file vboot_crypto.c.
Referenced by vb2ex_hwcrypto_digest_finalize(), and vb2ex_hwcrypto_digest_init().
|
static |
Definition at line 1 of file vboot_crypto.c.
Referenced by platform_set_sha_op(), svc_crypto_sha(), vb2ex_hwcrypto_digest_extend(), vb2ex_hwcrypto_digest_finalize(), and vb2ex_hwcrypto_digest_init().
|
static |
Definition at line 15 of file vboot_crypto.c.
Referenced by vb2ex_hwcrypto_digest_extend(), and vb2ex_hwcrypto_digest_init().