-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[crypto] implement PBKDF2 key generation using PSA
This commit adds support for PBKDF2 operation using PSA crypto. We import the salt and password into PSA and generate the key. The generated key is then exported into a flat buffer and all the transient keys are destroyed. Remove dependency on psa_crypto_pbkdf2 component, psa_crypto_pbkdf2_cmac should be enough for our usecase Co-authored-by: Hemanth Rao <[email protected]>
- Loading branch information
Showing
7 changed files
with
140 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
id: ot_psa_crypto | ||
label: PSA Crypto | ||
package: OpenThread | ||
category: OpenThread | ||
quality: production | ||
description: This component references to all the third party support needed by the OpenThread stack | ||
ui_hints: | ||
visibility: never | ||
provides: | ||
- name: ot_psa_crypto | ||
requires: | ||
- name: psa_crypto | ||
- name: psa_its | ||
- name: psa_crypto_hkdf | ||
- name: psa_crypto_cmac | ||
- name: psa_crypto_hmac | ||
- name: psa_crypto_tls12_prf | ||
- name: psa_crypto_tls12_psk_to_ms | ||
- name: psa_crypto_sha256 | ||
- name: psa_crypto_ecdh | ||
- name: psa_crypto_ecdsa | ||
- name: psa_crypto_ecc_secp256r1 | ||
- name: psa_crypto_pbkdf2_cmac | ||
template_contribution: | ||
- name: mbedtls_config | ||
value: MBEDTLS_USE_PSA_CRYPTO | ||
- name: psa_key_slots | ||
value: | ||
name: psa_key_slots_openthread | ||
count: 15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters