Skip to content

Conversation

Akshay-Belsare
Copy link

  • Extend acipher example to support for RSA algorithms:
    • TEE_ALG_RSAES_PKCS1_V1_5
    • TEE_ALG_RSAES_PKCS1_OAEP_MGF1_SHA1/224/256/384/512
  • Users can select algorithm and key size at runtime via: optee_example_acipher <key_size> <string> <algo>
  • Supported key sizes: 2048, 3072, 4096 bits
  • Defaults to TA_ALG_PKCS1_V1_5 if no algorithm is specified
  • Enhances the acipher example for flexible testing of multiple RSA modes

- Extend acipher example to support for RSA algorithms:
  - TEE_ALG_RSAES_PKCS1_V1_5
  - TEE_ALG_RSAES_PKCS1_OAEP_MGF1_SHA1/224/256/384/512
- Users can select algorithm and key size at runtime via:
  `optee_example_acipher <key_size> <string> <algo>`
- Supported key sizes: 2048, 3072, 4096 bits
- Defaults to TA_ALG_PKCS1_V1_5 if no algorithm is specified
- Enhances the acipher example for flexible testing of multiple RSA
modes

Signed-off-by: Amey Avinash Raghatate <[email protected]>
const char *pname = "acipher";

if (argc)
pname = argv[0];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How can argc be zero?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part of the code remains unchanged from the existing example.

Akshay-Belsare pushed a commit to Xilinx/optee_examples that referenced this pull request Sep 29, 2025
- Extend acipher example to support for RSA algorithms:
  - TEE_ALG_RSAES_PKCS1_V1_5
  - TEE_ALG_RSAES_PKCS1_OAEP_MGF1_SHA1/224/256/384/512
- Users can select algorithm and key size at runtime via:
  `optee_example_acipher <key_size> <string> <algo>`
- Supported key sizes: 2048, 3072, 4096 bits
- Defaults to TA_ALG_PKCS1_V1_5 if no algorithm is specified
- Enhances the acipher example for flexible testing of multiple RSA
modes

Signed-off-by: Amey Avinash Raghatate <[email protected]>
State: waiting
Link: linaro-swg#133
Copy link

This pull request has been marked as a stale pull request because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment, otherwise this pull request will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time.

@github-actions github-actions bot added the Stale label Oct 13, 2025
@Akshay-Belsare
Copy link
Author

@jforissier @etienne-lms Could you please take a moment to review this change?

@github-actions github-actions bot removed the Stale label Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants