Hi @michaelsalfer ,
Thank you for your response.
Does this "special issue with sss and multistep symmetric ciphers" is limited to only symmetric ciphers?
Please consider below:
I am trying to run sign operations using pkcs11-tool tool with SSS library in parallel.
I am running below two commands on my i.MX6 with SE in parallel.
pkcs11-tool --module /usr/lib/libsss_pkcs11.so --sign --id 88881000 -m SHA256-RSA-PKCS --slot 1 --input-file /tmp/data1 --output-file /tmp/data1.sig &
pkcs11-tool --module /usr/lib/libsss_pkcs11.so --sign --id 88881001 -m SHA256-RSA-PKCS --slot 1 --input-file /tmp/data2 --output-file /tmp/data2.sig
Note: Assume the data and keys are pre-generated.
I observe that most of the time this operation fails with below error and only somtimes passes.
error: PKCS11 function C_SignUpdate failed: rv = CKR_FUNCTION_NOT_SUPPORTED (0x54)
Could this be a timing issue?

Note: Same Image also attached if this screenshot is not clear
I did some trial and errors by running multiple asymmetric operations in parallel.
Following are my observations.
1. If same asymmetric operation is run in parallel, example RSA_SHA256 and RSA_SHA256, it runs into above error most of the times. Rarely succeeds.
2. If different asymmetric operations are run in parallel (Example: RSA + ECDSA or RSA_SHA256 + RSA_SHA512), it passes most of the time. Sometimes fails.
Do you know why this might be the case?
Regards,
Riz