Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New additions for MAXQ with wolfPKCS11 #8343

Merged
merged 1 commit into from
Jan 24, 2025
Merged

Conversation

anhu
Copy link
Member

@anhu anhu commented Jan 8, 2025

  • Support using MAXQ for:
    • AES-ECB
    • AES-CCM
    • AES-CBC
    • ECC Key Generation and ECDH
  • in wc_ecc_import_private_key_ex():
    • check to make sure devId is not invalid before calling wc_MAXQ10XX_EccSetKey().
    • This is because the raspberry pi sometimes need to sign stuff.
  • in aes_set_key() and ecc_set_key():
    • delete a key in case it already exists; ignore error since it might not exist.
    • unlock, lock the HW mutex around ECDSA_sign() because it needs access to rng
  • in wolfSSL_MAXQ10XX_CryptoDevCb:
    • allow maxq1065 to call the crypto callback.
    • do not set the key during signing; use pre provisioned one instead (DEVICE_KEY_PAIR_OBJ_ID)

@anhu anhu requested a review from wolfSSL-Bot January 8, 2025 23:32
@anhu anhu self-assigned this Jan 8, 2025
Copy link
Contributor

@dgarske dgarske left a comment

Choose a reason for hiding this comment

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

Nice work

wolfcrypt/src/port/maxim/maxq10xx.c Outdated Show resolved Hide resolved
wolfcrypt/src/port/maxim/maxq10xx.c Outdated Show resolved Hide resolved
@anhu anhu requested a review from dgarske January 9, 2025 00:11
wolfcrypt/src/port/maxim/maxq10xx.c Outdated Show resolved Hide resolved
wolfcrypt/src/port/maxim/maxq10xx.c Outdated Show resolved Hide resolved
wolfcrypt/src/port/maxim/maxq10xx.c Outdated Show resolved Hide resolved
wolfcrypt/src/port/maxim/maxq10xx.c Outdated Show resolved Hide resolved
wolfcrypt/src/port/maxim/maxq10xx.c Outdated Show resolved Hide resolved
wolfcrypt/src/port/maxim/maxq10xx.c Outdated Show resolved Hide resolved
@dgarske dgarske removed the request for review from wolfSSL-Bot January 21, 2025 00:40
@anhu anhu requested a review from dgarske January 22, 2025 20:24
@anhu
Copy link
Member Author

anhu commented Jan 22, 2025

cat: test-suite.log: No such file or directory

@anhu
Copy link
Member Author

anhu commented Jan 22, 2025

Retest this please

@anhu anhu removed their assignment Jan 23, 2025
@anhu anhu requested a review from wolfSSL-Bot January 23, 2025 14:07
wolfcrypt/src/port/maxim/maxq10xx.c Outdated Show resolved Hide resolved
wolfcrypt/src/port/maxim/maxq10xx.c Outdated Show resolved Hide resolved
- Support using MAXQ for:
    - AES-ECB
    - AES-CCM
    - AES-CBC
    - ECC Key Generation and ECDH
- in wc_ecc_import_private_key_ex():
    - check to make sure devId is not invalid before calling wc_MAXQ10XX_EccSetKey().
    - This is because the raspberry pi sometimes need to sign stuff.
- in aes_set_key() and ecc_set_key():
    - delete a key in case it already exists; ignore error since it might not exist.
    - unlock, lock the HW mutex around ECDSA_sign() because it needs access to rng
- in wolfSSL_MAXQ10XX_CryptoDevCb:
    - allow maxq1065 to call the crypto callback.
    - do not set the key during signing; use pre provisioned one instead (DEVICE_KEY_PAIR_OBJ_ID)
@anhu anhu requested a review from dgarske January 24, 2025 18:54
@anhu anhu removed their assignment Jan 24, 2025
@dgarske dgarske removed the request for review from wolfSSL-Bot January 24, 2025 19:27
@dgarske dgarske merged commit 7ad4131 into wolfSSL:master Jan 24, 2025
156 checks passed
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