Valerio Setti bced8bc8d7 ssl_tls12_server: export/import PK parsed key in TLS side
Instead of setting both algorithm and enrollement algorithm in the
PK module when parsing the key:

- for Weierstrass keys we only set ECDSA algorithm,
- for Montgomery keys we don't set any algorithm.

Reasons:
- PK module can only do ECDSA and not ECDH
- ECDH is only used in TLS
- Montgomery keys cannot be used to do ECDSA, while Weierstrass ones
  can do both ECDSA and ECDH.

So the idea is that once TLS needs the key to do ECDH (either Weierstrass
and Montgomery), it exports the one parsed from the PK module and then
re-imports it setting proper algorithm and flags. In this way the TLS
module will own the new key so it will be its duty to clear it on
exit.

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
2023-12-06 10:40:47 +01:00
..
2023-11-30 11:02:03 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-10 12:14:53 +01:00
2023-11-02 19:47:20 +00:00
2023-11-20 15:17:53 +01:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-30 09:35:14 +00:00
2023-11-02 19:47:20 +00:00
2023-12-01 13:53:45 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-21 17:09:46 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-21 17:09:46 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-20 15:17:53 +01:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-21 17:09:46 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-03 12:15:12 +00:00
2023-11-03 12:15:12 +00:00
2023-11-03 12:15:12 +00:00
2023-11-03 12:15:12 +00:00
2023-11-03 12:15:12 +00:00
2023-11-03 12:15:12 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-21 17:09:46 +00:00
2023-11-02 19:47:20 +00:00
2023-11-21 17:09:46 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-12-01 12:23:26 +01:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-21 17:09:46 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-21 17:09:46 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-21 17:09:46 +00:00
2023-11-21 17:09:46 +00:00
2023-11-21 17:09:46 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 20:43:00 +00:00
2023-11-21 09:59:25 +08:00
2023-11-23 18:53:13 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00
2023-11-02 19:47:20 +00:00