Jerry Yu
|
fb0621d841
|
fix pk_sign_ext issues
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-23 11:42:06 +08:00 |
|
Jerry Yu
|
5fb7d176f3
|
Replace rsakey to 2048bits for test
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-23 11:16:53 +08:00 |
|
Jerry Yu
|
cef3f33012
|
Guard rsa sig algs with rsa_c and pkcs1_v{15,21}
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 23:16:42 +08:00 |
|
Jerry Yu
|
701656fb29
|
fix redefine error
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 21:52:05 +08:00 |
|
Jerry Yu
|
e91a51a539
|
Refactor get_sig_alg_from pk
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 21:42:50 +08:00 |
|
Jerry Yu
|
bf455e7516
|
rename pk_psa_rsa_sign_ext param
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 21:39:41 +08:00 |
|
Jerry Yu
|
e2c882518c
|
Add pk_sign_ext unit tests
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 21:24:19 +08:00 |
|
Jerry Yu
|
dddf5a0e18
|
Refactor get_sig_alg_from_pk
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 15:47:19 +08:00 |
|
Jerry Yu
|
5512ad9df8
|
fix genkey fail
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 15:14:53 +08:00 |
|
Jerry Yu
|
89107d1bc2
|
fix ci fail without RSA_C
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 15:14:53 +08:00 |
|
Jerry Yu
|
92339d25b4
|
Add more unit test for pk_sign_ext
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 15:14:53 +08:00 |
|
Jerry Yu
|
b3bfe9f5d2
|
Add verify for pk_sign_ext test
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 15:14:53 +08:00 |
|
Jerry Yu
|
406cf27cb5
|
fix various issues
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 15:14:53 +08:00 |
|
Jerry Yu
|
848ecce990
|
fix wrong typo in function name
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 15:14:52 +08:00 |
|
Jerry Yu
|
5a0afc8a12
|
fix test fail for pk_sign_ext
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 15:13:35 +08:00 |
|
Jerry Yu
|
20f9f819bb
|
Remove use_psa_crypto in test scripts
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 15:13:35 +08:00 |
|
Jerry Yu
|
07869e804c
|
fix psa crypto test fail
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 15:13:35 +08:00 |
|
Jerry Yu
|
b02ee18e64
|
replace use_psa_crypto with psa_crypto_c
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 15:13:35 +08:00 |
|
Jerry Yu
|
b6875bc17a
|
change rsa_pss salt type
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 15:13:35 +08:00 |
|
Jerry Yu
|
704cfd2a86
|
fix comments and style issues
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 15:13:35 +08:00 |
|
Jerry Yu
|
718a9b4a3f
|
fix doxgen fail
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 15:13:34 +08:00 |
|
Jerry Yu
|
bc18c23531
|
Guard pk_sign_ext with PSA_CRYPTO_C
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 15:13:34 +08:00 |
|
Jerry Yu
|
1f45b67474
|
Add unit tests
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 15:13:34 +08:00 |
|
Jerry Yu
|
1d172a3483
|
Add pk_psa_sign_ext
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 15:13:34 +08:00 |
|
Jerry Yu
|
79c004148d
|
Add PSA && TLS1_3 check_config
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 15:13:34 +08:00 |
|
Jerry Yu
|
8beb9e173d
|
Change prototype of pk_sign_ext
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 15:13:34 +08:00 |
|
Jerry Yu
|
67eced0132
|
replace pk_sign with pk_sign_ext
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 15:13:34 +08:00 |
|
Jerry Yu
|
d69439aa61
|
add mbedtls_pk_sign_ext
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 15:13:34 +08:00 |
|
Jerry Yu
|
3a58b462b6
|
add pss_rsae_sha{384,512}
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 15:13:34 +08:00 |
|
Jerry Yu
|
bfcfe74b4e
|
add signature algorithm debug helper
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 15:13:33 +08:00 |
|
Jerry Yu
|
919130c035
|
Add rsa_pss_rsae_sha256 support
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
|
2022-03-22 15:13:33 +08:00 |
|
Manuel Pégourié-Gonnard
|
f4042f076b
|
Merge pull request #5573 from superna9999/5176-5177-5178-5179-tsl-record-hmac
TLS record HMAC
|
2022-03-21 11:36:44 +01:00 |
|
Manuel Pégourié-Gonnard
|
706f6bae27
|
Merge pull request #5518 from superna9999/5274-ecdsa-signing
PK: ECDSA signing
|
2022-03-21 09:57:57 +01:00 |
|
Manuel Pégourié-Gonnard
|
472044f21e
|
Merge pull request #5525 from superna9999/5161-pk-rsa-encryption
PK: RSA encryption
|
2022-03-21 09:57:38 +01:00 |
|
Ronald Cron
|
8d7afc642c
|
Merge pull request #5523 from ronald-cron-arm/one-flush-output-development
TLS 1.3: One flush output
|
2022-03-21 08:44:04 +01:00 |
|
Neil Armstrong
|
62e6ea2c22
|
Avoid spurious write to *olen in PSA version of rsa_encrypt_wrap()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-03-18 15:39:49 +01:00 |
|
Neil Armstrong
|
c23d2e3ef1
|
Wrap unused declaration in #if/#endif when USE_PSA is set in x509_csr_check()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-03-18 15:31:59 +01:00 |
|
Neil Armstrong
|
17a0655c8d
|
Add documentation to find_ecdsa_private_key()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-03-18 15:27:38 +01:00 |
|
Neil Armstrong
|
05132ed490
|
md_alg is used in ecdsa_sign_wrap(), cleanup code
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-03-18 15:14:57 +01:00 |
|
Neil Armstrong
|
cb753a6945
|
Use mbedtls_eckey_info directly in ecdsa_sign_wrap()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-03-18 15:14:48 +01:00 |
|
Manuel Pégourié-Gonnard
|
e5b53193e0
|
Merge pull request #5636 from mprse/tls_ecdh_2b
TLS ECDH 2b: client-side static ECDH (1.2)
|
2022-03-18 11:36:53 +01:00 |
|
Neil Armstrong
|
0ab7a232b5
|
Add non-PSA and PSA variant of test_XXXX_constant_flow all.sh tests
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-03-18 11:10:09 +01:00 |
|
Neil Armstrong
|
8f92bf3a26
|
Only make PSA HMAC key exportable when NULL or CBC & not EtM in build_transforms()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-03-18 11:10:09 +01:00 |
|
Neil Armstrong
|
29c0c040fc
|
Only make PSA HMAC key exportable when NULL or CBC & not EtM in ssl_tls12_populate_transform()
This requires moving the HMAC init after CIPHER init.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-03-18 11:10:09 +01:00 |
|
Neil Armstrong
|
9ebb9ff60c
|
Reduce HMAC buffer usage in PSA version of mbedtls_ct_hmac()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-03-18 11:09:58 +01:00 |
|
Neil Armstrong
|
72c2f76c43
|
Assume MAC key length is always exactly the output size in PSA version of mbedtls_ct_hmac()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-03-18 11:09:36 +01:00 |
|
Neil Armstrong
|
36cc13b340
|
Use PSA defines for buffers in PSA version of mbedtls_ct_hmac()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-03-18 11:09:20 +01:00 |
|
Neil Armstrong
|
ae57cfd3e7
|
Use psa_ssl_status_to_mbedtls in PSA version of mbedtls_ct_hmac()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-03-18 10:00:10 +01:00 |
|
Neil Armstrong
|
28d9c631b8
|
Fix comments in PSA version of mbedtls_ct_hmac()
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
|
2022-03-18 10:00:10 +01:00 |
|
Manuel Pégourié-Gonnard
|
8d4bc5eeb9
|
Merge pull request #5481 from gabor-mezei-arm/5401_implement_hkdf_extract_based_on_psa_hmac
HKDF 1a: Implement Extract in TLS 1.3 based on PSA HMAC
|
2022-03-17 11:55:48 +01:00 |
|