Skip to contentSkip to conversation

packagegroups: crypto: Add pkcs11 tools and example TAs

PATCH New Andrew Davis 1 participant 1 message Sep 28, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 packagegroups: crypto: Add pkcs11 tools and example TAs

The OP-TEE package contains some loadable TAs including one used for pkcs11, add this package to the base image.

To make use of the PKCS#11 API (Cryptoki) that this TA provides, one can use libckteec already included with optee-client. An example app that can make use of that library is pkcs11-tool which is part of opensc. Add this package also.

For example, try:

$ pkcs11-tool --show-info --module /usr/lib/libckteec.so.0
---
 .../recipes-core/packagegroups/packagegroup-arago-base-tisdk.bb  | 1 +
 .../packagegroups/packagegroup-arago-tisdk-crypto.bb             | 1 +
 2 files changed, 2 insertions(+)
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-base-tisdk.bb +1 -0
index 03e5a5f9..00f6db61 100644
@@ -7,6 +7,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
 inherit packagegroup
 
 OPTEE_PKGS = " \
+    optee-os \
     optee-client \
     optee-test \
     optee-examples \
meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-crypto.bb +1 -0
index 30224244..ec30942b 100644
@@ -12,6 +12,7 @@ CRYPTO_SUPPORT = "\
     openssl-conf \
     openssl-engines \
     cryptodev-module \
+    opensc \
 "
 
 RDEPENDS:${PN} = "\
Signature · 1 line
2.39.2