• Home
  • Raw
  • Download

Lines Matching defs:mbedtls_ssl_handshake_params

526 struct mbedtls_ssl_handshake_params  struct
530 uint8_t max_major_ver; /*!< max. major version client*/
531 uint8_t max_minor_ver; /*!< max. minor version client*/
532 uint8_t resume; /*!< session resume indicator*/
533 uint8_t cli_exts; /*!< client extension presence*/
536 uint8_t sni_authmode; /*!< authmode from SNI callback */
540 uint8_t new_session_ticket; /*!< use NewSessionTicket? */
544 uint8_t extended_ms; /*!< use Extended Master Secret? */
548 uint8_t async_in_progress; /*!< an asynchronous operation is in progress */
552 unsigned char retransmit_state; /*!< Retransmission state */
556 unsigned char group_list_heap_allocated;
560 uint8_t ecrs_enabled; /*!< Handshake supports EC restart? */
561 enum { /* this complements ssl->state with info on intra-state operations */
567 } ecrs_state; /*!< current (or last) operation */
568 mbedtls_x509_crt *ecrs_peer_cert; /*!< The peer's CRT chain. */
569 size_t ecrs_n; /*!< place for saving a length */
572 size_t pmslen; /*!< premaster length */
574 mbedtls_ssl_ciphersuite_t const *ciphersuite_info;
576 void (*update_checksum)(mbedtls_ssl_context *, const unsigned char *, size_t);
577 void (*calc_verify)(const mbedtls_ssl_context *, unsigned char *, size_t *);
578 void (*calc_finished)(mbedtls_ssl_context *, unsigned char *, int);
579 mbedtls_ssl_tls_prf_cb *tls_prf;
585 int tls13_kex_modes; /*!< key exchange modes for TLS 1.3 */
590 mbedtls_ssl_sig_hash_set_t hash_algs; /*!< Set of suitable sig-hash pairs */
594 const uint16_t *group_list;
598 mbedtls_dhm_context dhm_ctx; /*!< DHM key exchange */
607 mbedtls_ecdh_context ecdh_ctx; /*!< ECDH key exchange */
610 psa_key_type_t ecdh_psa_type;
611 uint16_t ecdh_bits;
612 psa_key_id_t ecdh_psa_privkey;
613 unsigned char ecdh_psa_peerkey[MBEDTLS_PSA_MAX_EC_PUBKEY_LENGTH];
614 size_t ecdh_psa_peerkey_len;
619 mbedtls_ecjpake_context ecjpake_ctx; /*!< EC J-PAKE key exchange */
621 unsigned char *ecjpake_cache; /*!< Cache for ClientHello ext */
622 size_t ecjpake_cache_len; /*!< Length of cached data */
628 const mbedtls_ecp_curve_info **curves; /*!< Supported elliptic curves */
633 psa_key_id_t psk_opaque; /*!< Opaque PSK from the callback */
635 unsigned char *psk; /*!< PSK from the callback */
636 size_t psk_len; /*!< Length of PSK from callback */
640 mbedtls_x509_crt_restart_ctx ecrs_ctx; /*!< restart context */
644 mbedtls_ssl_key_cert *key_cert; /*!< chosen key/cert pair (server) */
646 mbedtls_ssl_key_cert *sni_key_cert; /*!< key/cert list from SNI */
647 mbedtls_x509_crt *sni_ca_chain; /*!< trusted CAs from SNI callback */
648 mbedtls_x509_crl *sni_ca_crl; /*!< trusted CAs CRLs from SNI */
654 mbedtls_pk_context peer_pubkey; /*!< The public key from the peer. */
658 {
681 } buffering;
684 unsigned int out_msg_seq; /*!< Outgoing handshake sequence number */
685 unsigned int in_msg_seq; /*!< Incoming handshake sequence number */
687 unsigned char *verify_cookie; /*!< Cli: HelloVerifyRequest cookie
689 unsigned char verify_cookie_len; /*!< Cli: cookie length
692 uint32_t retransmit_timeout; /*!< Current value of timeout */
693 mbedtls_ssl_flight_item *flight; /*!< Current outgoing flight */
694 mbedtls_ssl_flight_item *cur_msg; /*!< Current message in flight */
695 unsigned char *cur_msg_p; /*!< Position in current message */
696 unsigned int in_flight_start_seq; /*!< Minimum message sequence in the
698 mbedtls_ssl_transform *alt_transform_out; /*!< Alternative transform for
700 … unsigned char alt_out_ctr[MBEDTLS_SSL_SEQUENCE_NUMBER_LEN]; /*!< Alternative record epoch/counter
706 uint8_t cid_in_use; /*!< This indicates whether the use of the CID extension
710 unsigned char peer_cid[ MBEDTLS_SSL_CID_OUT_LEN_MAX ]; /*! The peer's CID */
711 uint8_t peer_cid_len; /*!< The length of
715 uint16_t mtu; /*!< Handshake mtu, used to fragment outgoing messages */
721 mbedtls_ssl_transform *transform_handshake;
722 mbedtls_ssl_transform *transform_earlydata;
731 psa_hash_operation_t fin_sha256_psa;
733 mbedtls_sha256_context fin_sha256;
738 psa_hash_operation_t fin_sha384_psa;
740 mbedtls_sha512_context fin_sha512;
746 uint16_t offered_group_id; /* The NamedGroup value for the group
760 {
783 } state_local;
787 unsigned char randbytes[MBEDTLS_CLIENT_HELLO_RANDOM_LEN +
790 unsigned char premaster[MBEDTLS_PREMASTER_SIZE];
794 int extensions_present; /*!< extension presence; Each bitfield
799 {
803 } tls13_master_secrets;
805 mbedtls_ssl_tls13_handshake_secrets tls13_hs_secrets;
814 void *user_async_ctx;