7 #include <soc/addressmap.h>
61 if (hash_alg != VB2_HASH_SHA256) {
64 return VB2_ERROR_EX_HWCRYPTO_UNSUPPORTED;
98 return VB2_ERROR_UNKNOWN;
115 while ((
uint8_t *)dest < digest + digest_size)
static void write32(void *addr, uint32_t val)
static uint32_t read32(const void *addr)
#define assert(statement)
#define printk(level,...)
vb2_error_t vb2ex_hwcrypto_digest_init(enum vb2_hash_algorithm hash_alg, uint32_t data_size)
vb2_error_t vb2ex_hwcrypto_digest_finalize(uint8_t *digest, uint32_t digest_size)
vb2_error_t vb2ex_hwcrypto_digest_extend(const uint8_t *buf, uint32_t size)
struct rk3288_crypto * crypto
check_member(rk3288_crypto, trng_dout[7], 0x220)
rk3288_crypto_interrupt_bits
#define BIOS_INFO
BIOS_INFO - Expected events.
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
#define BIOS_ERR
BIOS_ERR - System in incomplete state.