Skip to content

Commit e9980fb

Browse files
authored
Merge pull request #432 from danielinux/update_tz_wolfpkcs11-v1.3.0
Update wolfPKCS11 to v1.3.0
2 parents 625501a + da5b738 commit e9980fb

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

docs/STM32-TZ.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ are accessible from any software staged in non-secure domain.
1010

1111
### Compiling wolfBoot with wolfCrypt in TrustZone-M secure domain
1212

13-
When wolfBoot is compiled with the options `TZEN=1` and `WOLFCRYPT_TZ_ENGINE=1`,
13+
When wolfBoot is compiled with the options `TZEN=1` and `WOLFCRYPT_TZ=1`,
1414
a more complete set of components of the wolfCrypt crypto library are built-in
1515
the bootloader, and they can be accessed by applications or OSs running in
1616
non-secure domain through non-secure callable APIs.
@@ -19,7 +19,7 @@ This feature is used to isolate the core crypto operations from the applications
1919

2020
### PKCS11 API in non-secure world
2121

22-
The `WOLFCRYPT_TZ_PKCS11` provides a standard PKCS11 interface,
22+
The `WOLFCRYPT_TZ_PKCS11` option provides a standard PKCS11 interface,
2323
including a storage for PKCS11 objects in a dedicated flash area in secure mode.
2424

2525
This means that applications, TLS libraries and operating systems running in

include/user_settings.h

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -255,19 +255,20 @@ extern int tolower(int c);
255255

256256
#if defined(SECURE_PKCS11)
257257
# define HAVE_PWDBASED
258-
# define HAVE_PBKDF2
259-
# define WOLFPKCS11_CUSTOM_STORE
260-
# define WOLFBOOT_SECURE_PKCS11
261-
# define WOLFPKCS11_USER_SETTINGS
262-
# define WOLFPKCS11_NO_TIME
263-
# define WOLFSSL_AES_COUNTER
258+
# define HAVE_PBKDF2
259+
# define WOLFPKCS11_CUSTOM_STORE
260+
# define WOLFBOOT_SECURE_PKCS11
261+
# define WOLFPKCS11_USER_SETTINGS
262+
# define WOLFPKCS11_NO_TIME
263+
# define WOLFSSL_AES_COUNTER
264264
# define WOLFSSL_AES_DIRECT
265265
# define WOLFSSL_AES_GCM
266-
# define ENCRYPT_WITH_AES128
266+
# define ENCRYPT_WITH_AES128
267267
# define WOLFSSL_AES_128
268-
# define HAVE_SCRYPT
269-
# define HAVE_AESGCM
270-
typedef unsigned long time_t;
268+
# define HAVE_SCRYPT
269+
# define HAVE_AESGCM
270+
# define HAVE_PKCS8
271+
typedef unsigned long time_t;
271272
#endif
272273

273274
#ifndef HAVE_PWDBASED

0 commit comments

Comments
 (0)