aws-samples / aws-samples/aws-cloudhsm-pkcs11-examples
Multi threading
- Dominant language
- C
- Stars
- 63
- Forks
- 49
- Avg merge
- 1h 15m
- Merged PRs (30d)
- 2
Description
Would it be possible to get a multi-threaded example, we are trying to scale out encryption and decryption operations using threading to try and counter network latency however we keep getting 'operation in progress internal error code 0x000000BB' errors in the client log which translate to a pkcs#11 error code 6 which is operation failed. I am guessing this is going to be down to where and what we need to lock with mutex's but cannot find any reference or examples to help with this.
Contributor guide
Research direction
Start by reading the existing C sample applications in this repository and the CloudHSM PKCS#11 library usage around encryption and decryption. Reproduce the reported “operation in progress” error with threaded operations, then document or demonstrate the required mutex and session handling. Done means a working multithreaded example with guidance for avoiding the reported PKCS#11 error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- cryptography, security
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100