31#ifndef _VERIFY_RUNTIME_H
32#define _VERIFY_RUNTIME_H
40#if (defined(BOOT_RUNTIME_SIGNATURE_RSA) && (BOOT_RUNTIME_SIGNATURE_RSA == ENABLED)) || \
41 (defined(BOOT_FIRST_STAGE_RUNTIME_SIGNATURE_RSA) && \
42 (BOOT_FIRST_STAGE_RUNTIME_SIGNATURE_RSA == ENABLED))
43#define VERIFY_RUNTIME_RSA_SUPPORT ENABLED
45#define VERIFY_RUNTIME_RSA_SUPPORT DISABLED
48#if (defined(BOOT_RUNTIME_SIGNATURE_ECDSA) && (BOOT_RUNTIME_SIGNATURE_ECDSA == ENABLED)) || \
49 (defined(BOOT_FIRST_STAGE_RUNTIME_SIGNATURE_ECDSA) && \
50 (BOOT_FIRST_STAGE_RUNTIME_SIGNATURE_ECDSA == ENABLED))
51#define VERIFY_RUNTIME_ECDSA_SUPPORT ENABLED
53#define VERIFY_RUNTIME_ECDSA_SUPPORT DISABLED
56#if (VERIFY_RUNTIME_RSA_SUPPORT == ENABLED)
58#include "pkix/pem_key_import.h"
61#if (VERIFY_RUNTIME_ECDSA_SUPPORT == ENABLED)
64#include "pkix/pem_key_import.h"
86 const char_t *signKey,
size_t signKeyLen,
97 const HashAlgo *hashAlgo);
cboot_error_t
Error codes.
Definition cboot_error.h:57
CycloneBOOT Image management.
CycloneBOOT Memory Layer Abstraction.
Slot Type definition.
Definition memory.h:181
CycloneBOOT Image data verification module.
VerifySignAlgo
Verification signature algorithms.
Definition verify.h:146
cboot_error_t verifyRuntimeImageSignature(const Slot *slot, uint32_t entryOffset, const char_t *signKey, size_t signKeyLen, const HashAlgo *hashAlgo, VerifySignAlgo signAlgo)
Verify the runtime signature of an image.
Definition verify_runtime.c:51
cboot_error_t verifyRuntimeImageIntegrity(const Slot *slot, uint32_t entryOffset, const HashAlgo *hashAlgo)
Verify the runtime integrity digest embedded in an image.
Definition verify_runtime.c:69