mirror of https://github.com/wolfSSL/wolfBoot.git
22 lines
653 B
C
22 lines
653 B
C
#ifndef LOADER_H
|
|
#define LOADER_H
|
|
|
|
#if defined(WOLFBOOT_SIGN_EC256)
|
|
extern const unsigned char ecdsa_pub_key[];
|
|
extern unsigned int ecdsa_pub_key_len;
|
|
# define KEY_BUFFER ecdsa_pub_key
|
|
# define KEY_LEN ecdsa_pub_key_len
|
|
# define IMAGE_SIGNATURE_SIZE (72)
|
|
#elif defined(WOLFBOOT_SIGN_ED25519)
|
|
extern const unsigned char ed25519_pub_key[];
|
|
extern unsigned int ed25519_pub_key_len;
|
|
# define KEY_BUFFER ed25519_pub_key
|
|
# define KEY_LEN ed25519_pub_key_len
|
|
# define IMAGE_SIGNATURE_SIZE (64)
|
|
#else
|
|
# error "No public key available for given signing algorithm."
|
|
#endif /* Algorithm selection */
|
|
|
|
|
|
#endif /* LOADER_H */
|