wolfssl icon indicating copy to clipboard operation
wolfssl copied to clipboard

Added crypto callback functions for TROPIC01 secure element

Open kosmax871 opened this issue 7 months ago • 5 comments

Description

Added support for the TROPIC01 secure element via the callback function Tropic01_CryptoCb Within this function, there is an implementation of the following algo_type:

  1. WC_ALGO_TYPE_RNG

  2. WC_ALGO_TYPE_SEED

  3. WC_ALGO_TYPE_PK (TROPIC01 is used as a secure keys storage) 3.1. WC_PK_TYPE_ED25519_KEYGEN 3.2. WC_PK_TYPE_ED25519_SIGN 3.3. WC_PK_TYPE_ED25519_VERIFY

  4. WC_ALGO_TYPE_CIPHER (TROPIC01 is used as a secure keys storage) 4.1. WC_CIPHER_AES_GCM 4.2. WC_CIPHER_AES_CBC

Testing

For the testing, we have developed and used a dedicated test application, which is available here https://github.com/tropicsquare/tropic01-wolfssl-test This application can be built and run on the following target platforms:

  1. Linux PC + TROPIC01 USB stick
  2. Raspberry PI 4/5/6 + TROPIC01 RPI shield

Checklist

  • [ ] added tests
  • [ ] updated/added doxygen
  • [ x] updated appropriate READMEs
  • [ ] Updated manual and documentation

kosmax871 avatar May 29 '25 11:05 kosmax871

Can one of the admins verify this patch?

wolfSSL-Bot avatar May 29 '25 11:05 wolfSSL-Bot

Hello @kosmax871

Thanks for this excellent PR! Could you tell us a bit about your project and goals using wolfSSL? We require a signed contributor agreement to be in place before we can accept third party code. Could you please send an email to support @ wolfssl.com and I will help you get started with that process.

Kind regards, @embhorn - wolfSSL Support

embhorn avatar May 29 '25 14:05 embhorn

Okay to test. Contributor Agreement approved and on file.

dgarske avatar Jun 05 '25 18:06 dgarske

Jenkins "Retest this please": "Found unhandled org.jenkinsci.plugins.workflow.support.steps.AgentOfflineException exception:"

dgarske avatar Jun 09 '25 16:06 dgarske

Retest this please: "Found unhandled org.jenkinsci.plugins.workflow.support.steps.AgentOfflineException exception:"

dgarske avatar Jun 11 '25 20:06 dgarske

Retest this please "Agent offline"

dgarske avatar Jun 17 '25 16:06 dgarske

Merging with the openssh failure (not related). That was fixed in PR 8879

dgarske avatar Jun 17 '25 17:06 dgarske