mirror of https://github.com/wolfSSL/wolfBoot.git
Rebased on latest master
parent
d53999de18
commit
bcbb0c2cfe
2
.gdbinit
2
.gdbinit
|
@ -1,4 +1,6 @@
|
||||||
tar rem:3333
|
tar rem:3333
|
||||||
file wolfboot.elf
|
file wolfboot.elf
|
||||||
|
add-symbol-file test-app/image.elf
|
||||||
foc c
|
foc c
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -118,6 +118,8 @@ extern int tolower(int c);
|
||||||
# define SP_WORD_SIZE 32
|
# define SP_WORD_SIZE 32
|
||||||
# define WOLFSSL_HAVE_SP_ECC
|
# define WOLFSSL_HAVE_SP_ECC
|
||||||
//# define WOLFSSL_SP_MATH_ALL
|
//# define WOLFSSL_SP_MATH_ALL
|
||||||
|
# define WOLFSSL_KEY_GEN
|
||||||
|
# define HAVE_ECC_KEY_EXPORT
|
||||||
|
|
||||||
int hal_trng_get_entropy(unsigned char *out, unsigned len);
|
int hal_trng_get_entropy(unsigned char *out, unsigned len);
|
||||||
# define CUSTOM_RAND_GENERATE_SEED hal_trng_get_entropy
|
# define CUSTOM_RAND_GENERATE_SEED hal_trng_get_entropy
|
||||||
|
@ -365,11 +367,11 @@ int hal_trng_get_entropy(unsigned char *out, unsigned len);
|
||||||
#define WOLFSSL_NO_SOCK
|
#define WOLFSSL_NO_SOCK
|
||||||
#define WOLFSSL_IGNORE_FILE_WARN
|
#define WOLFSSL_IGNORE_FILE_WARN
|
||||||
#define NO_ERROR_STRINGS
|
#define NO_ERROR_STRINGS
|
||||||
#define NO_AES_CBC
|
|
||||||
|
|
||||||
#ifndef WOLFCRYPT_SECURE_MODE
|
#ifndef WOLFCRYPT_SECURE_MODE
|
||||||
#define WC_NO_RNG
|
#define WC_NO_RNG
|
||||||
#define WC_NO_HASHDRBG
|
#define WC_NO_HASHDRBG
|
||||||
|
#define NO_AES_CBC
|
||||||
#else
|
#else
|
||||||
#define HAVE_HASHDRBG
|
#define HAVE_HASHDRBG
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -173,11 +173,9 @@ void main(void)
|
||||||
TokenPin,
|
TokenPin,
|
||||||
strlen(TokenPin));
|
strlen(TokenPin));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
ret = wolfpkcs11nsFunctionList.C_Logout(session);
|
ret = wolfpkcs11nsFunctionList.C_Logout(session);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
while(1)
|
while(1)
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in New Issue