Armin Wolf
dd81d185cd
sys/psa_crypto: Split key definitions into separate files
...
Split key definitions into separate files, together with some basic
support macros.
This allows PSA crypto backends to use this definitions without
pulling in all the other type definitions.
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
2024-11-26 20:01:09 +01:00
mguetschow
80a0681f45
Merge pull request #20906 from netd-tud/psa-headers
...
sys/psa_crypto: split algorithm definitions
2024-11-26 10:56:57 +00:00
Armin Wolf
94f2b82ede
sys/psa_crypto: Fix definition of PSA_ALG_IS_WILDCARD
...
A definition of PSA_ALG_HASH_ANY does not exist, use
PSA_ALG_ANY_HASH instead.
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
2024-10-29 17:57:56 +01:00
Armin Wolf
e713b3d863
sys/psa_crypto: Add HKDF-Extract/-Expand key derivation algorithms
...
The PSA crypto API specification 1.1.1 introduced two new algorithms
for HKDF. Add support for those.
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
2024-10-29 17:57:01 +01:00
Armin Wolf
b17402bc9f
sys/psa_crypto: Split algorithm definitions into separate files
...
Split definition of psa_algorithm_t into a separate file, together
with some basic algorithm macros. Also move the definitions of the
hash/mac/cipher/AEAD/etc algorithm macros into separate files as
well.
This allows PSA crypto backends to use this definitions without
pulling in all the other type definitions.
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
2024-10-29 17:52:54 +01:00
mguetschow
00e25adfe3
Merge pull request #20720 from netd-tud/chacha20-glue-code-implementation
...
sys/psa_crypto: one-shot Chacha20 support
2024-10-29 16:52:30 +00:00
Wunderbaeumchen
b9396c4739
sys/psa_crypto: chacha20 oneshot gluecode
2024-10-17 10:25:59 +02:00
Armin Wolf
fe56b7d19c
sys/psa_crypto: Implement PSA_MAC_MAX_SIZE()
...
This support macro is necessary for full MAC support.
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
2024-09-17 21:37:10 +02:00
Armin Wolf
98d268040a
sys/psa_crypto: Implement PSA_HASH_BLOCK_LENGTH()
...
The initial implementation was inspired by MbedTLS, with the
addition of the MD2 and MD4 algorithms.
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
2024-09-17 21:37:10 +02:00
Armin Wolf
d0c4e01ca3
sys/psa_crypto: Move PSA status definition to separate file
...
When psa_status_t is defined inside crypto_types.h, then all
users of psa_status_t are forced to pull the full range of PSA
Crypto API type definitions.
This however means that psa_status_t cannot be used when defining
those PSA Crypto API types, since doing so would create a cycle.
Fix this by moving the PSA status definitions into a separate header
file which additionally is compatible with the PSA Status code API.
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
2024-09-07 12:12:19 +02:00
Wunderbaeumchen
9b502027ab
sys/psa_crypto: added sha3 glue code
2024-07-13 04:35:21 +02:00
mguetschow
3255b95937
Merge pull request #20598 from mguetschow/psa-hashes-sha512-truncated
...
sys/psa_crypto: SHA-{384,512/{224,256}}
2024-05-17 09:20:03 +00:00
mguetschow
e9f290c2e8
Merge pull request #20674 from mguetschow/psa-crypto-keysize
...
sys/psa_crypto: remove keysize determination from Kconfig files
2024-05-16 11:47:24 +00:00
Mikolai Gütschow
6f5f4313bd
sys/psa_crypto: remove keysize determination from Kconfig files
2024-05-16 10:28:40 +02:00
Mikolai Gütschow
ecf259579a
sys/psa_crypto: support for SHA-{384,512-{224,256}}
2024-05-14 17:06:39 +02:00
Mikolai Gütschow
15e48f0cf3
sys/psa_crypto: correct use of (ECDSA) key_bits
2024-05-14 17:02:46 +02:00
mguetschow
ad9d50163e
Merge pull request #20334 from mguetschow/psa-import-key
...
sys/psa_crypto: ed25519 private key {ex,im}port
2024-04-17 11:24:04 +00:00
Mikolai Gütschow
5f08f7478b
sys/psa_crypto: ed25519 private key {ex,im}port
2024-04-17 12:42:05 +02:00
Lena Boeckmann
cbadc4f658
sys/psa_crypto: implement persistent key storage
2024-04-16 11:04:51 +02:00
Lena Boeckmann
de09b2a0b4
sys/psa_crypto: Build PSA Crypto functions based on module selection
2023-11-30 21:02:42 +01:00
Mikolai Gütschow
6935ea21e7
sys/hashes: add SHA-512 support
2023-11-29 19:18:51 +01:00
Lena Boeckmann
130420258c
sys/psa_crypto: Fix conditions for public key max export size
2023-10-19 14:12:14 +02:00
Mikolai Gütschow
335c4f8c0c
sys/psa_crypto: fix PSA signing macros
...
guarding {sign,verify}_{hash,message} functions
see 72718dd87e/include/psa/crypto_values.h
\#L1678
2023-10-09 10:21:45 +02:00
Mikolai Gütschow
963775bdd9
sys/psa_crypto: add support for Ed25519 (EdDSA)
2023-10-09 10:21:44 +02:00
Lena Boeckmann
d4c73d6a30
sys: Add PSA Crypto Module
2023-08-31 14:38:49 +02:00