LibTLS: Add ECDSA support with the secp256r1 curve

This commit is contained in:
Michiel Visser
2022-03-20 21:20:04 +01:00
committed by Andrew Kaster
parent caf533bddf
commit c548dca174
3 changed files with 118 additions and 6 deletions

View File

@@ -393,11 +393,11 @@ ByteBuffer TLSv12::build_client_key_exchange()
TODO();
break;
case KeyExchangeAlgorithm::ECDHE_RSA:
case KeyExchangeAlgorithm::ECDHE_ECDSA:
build_ecdhe_rsa_pre_master_secret(builder);
break;
case KeyExchangeAlgorithm::ECDH_ECDSA:
case KeyExchangeAlgorithm::ECDH_RSA:
case KeyExchangeAlgorithm::ECDHE_ECDSA:
case KeyExchangeAlgorithm::ECDH_anon:
dbgln("Client key exchange for ECDHE algorithms is not implemented");
TODO();