mbedTLS
mbedtls_ssl_context::handshake
is only used within mbedTLS.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
STM32 Libraries and Samples
mbedTLS
mbedtls_ssl_context::handshake
mbedtls_ssl_context::handshake field
params required only during the handshake process
Syntax
Show:
Summary
Declaration
from
ssl.h:1059
mbedtls_ssl_handshake_params
*
handshake
;
Examples
References
from
examples
Code
Location
Referrer
mbedtls_ssl_handshake_params
*
handshake
;
/*!< params required only during
ssl.h:1059
unsigned
char
*
p
=
ssl
->
handshake
->
randbytes
;
ssl_cli.c:680
ssl_generate_random()
memcpy
(
p
,
ssl
->
handshake
->
randbytes
,
32
)
;
ssl_cli.c:820
ssl_write_client_hello()
ssl
->
handshake
->
resume
==
0
)
ssl_cli.c:842
ssl_write_client_hello()
ssl
->
handshake
->
ecdh_ctx
.
point_format
=
p
[
0
]
;
ssl_cli.c:1287
ssl_parse_supported_point_formats_ext()
memcpy
(
ssl
->
handshake
->
randbytes
+
32
,
buf
+
2
,
32
)
;
ssl_cli.c:1606
ssl_parse_server_hello()
if
(
ssl
->
handshake
->
resume
==
0
||
n
==
0
||
ssl_cli.c:1696
ssl_parse_server_hello()
ssl
->
handshake
->
resume
=
0
;
ssl_cli.c:1706
ssl_parse_server_hello()
grp_id
=
ssl
->
handshake
->
ecdh_ctx
.
grp
.
id
;
ssl_cli.c:2032
ssl_check_server_ecdh_params()
if
(
(
ret
=
mbedtls_ecdh_read_params
(
&
ssl
->
handshake
->
ecdh_ctx
,
ssl_cli.c:2082
ssl_parse_server_ecdh_params()
ret
=
mbedtls_ecdh_make_public
(
&
ssl
->
handshake
->
ecdh_ctx
,
ssl_cli.c:2963
ssl_write_client_key_exchange()
if
(
(
ret
=
mbedtls_ecdh_calc_secret
(
&
ssl
->
handshake
->
ecdh_ctx
,
ssl_cli.c:2991
ssl_write_client_key_exchange()
&
ssl
->
handshake
->
pmslen
,
ssl_cli.c:2992
ssl_write_client_key_exchange()
ssl
->
handshake
->
premaster
,
ssl_cli.c:2993
ssl_write_client_key_exchange()
ssl
->
handshake
->
calc_verify
(
ssl
,
hash
)
;
ssl_cli.c:3274
ssl_write_certificate_verify()
if
(
ssl
->
state
==
MBEDTLS_SSL_HANDSHAKE_OVER
||
ssl
->
handshake
==
NULL
)
ssl_cli.c:3507
mbedtls_ssl_handshake_client_step()
if
(
ssl
->
handshake
!=
NULL
&&
ssl
->
handshake
->
key_cert
!=
NULL
)
ssl_internal.h:666
mbedtls_ssl_own_key()
key_cert
=
ssl
->
handshake
->
key_cert
;
ssl_internal.h:667
mbedtls_ssl_own_key()
if
(
ssl
->
handshake
!=
NULL
&&
ssl
->
handshake
->
key_cert
!=
NULL
)
ssl_internal.h:678
mbedtls_ssl_own_cert()
key_cert
=
ssl
->
handshake
->
key_cert
;
ssl_internal.h:679
mbedtls_ssl_own_cert()
mbedtls_ssl_sig_hash_set_add
(
&
ssl
->
handshake
->
hash_algs
,
sig_cur
,
md_cur
)
;
ssl_srv.c:262
ssl_parse_signature_algorithms_ext()
if
(
ssl
->
handshake
->
curves
!=
NULL
)
ssl_srv.c:306
ssl_parse_supported_elliptic_curves()
ssl
->
handshake
->
curves
=
curves
;
ssl_srv.c:327
ssl_parse_supported_elliptic_curves()
ssl
->
handshake
->
ecdh_ctx
.
point_format
=
p
[
0
]
;
ssl_srv.c:370
ssl_parse_supported_point_formats()
ssl_check_key_curve
(
&
cur
->
cert
->
pk
,
ssl
->
handshake
->
curves
)
!=
0
)
ssl_srv.c:755
ssl_pick_cert()
ssl
->
handshake
->
key_cert
=
cur
;
ssl_srv.c:789
ssl_pick_cert()
(
ssl
->
handshake
->
curves
==
NULL
||
ssl_srv.c:857
ssl_ciphersuite_match()
ssl
->
handshake
->
curves
[
0
]
==
NULL
)
)
ssl_srv.c:858
ssl_ciphersuite_match()
mbedtls_ssl_sig_hash_set_find
(
&
ssl
->
handshake
->
hash_algs
,
sig_type
)
==
MBEDTLS_MD_NONE
)
ssl_srv.c:887
ssl_ciphersuite_match()
ssl
->
handshake
->
update_checksum
(
ssl
,
buf
,
msg_len
)
;
ssl_srv.c:1351
ssl_parse_client_hello()
ssl
->
handshake
->
max_major_ver
=
ssl
->
major_ver
;
ssl_srv.c:1470
ssl_parse_client_hello()
ssl
->
handshake
->
max_minor_ver
=
ssl
->
minor_ver
;
ssl_srv.c:1471
ssl_parse_client_hello()
memcpy
(
ssl
->
handshake
->
randbytes
,
buf
+
2
,
32
)
;
ssl_srv.c:1498
ssl_parse_client_hello()
ssl
->
handshake
->
cli_exts
|=
MBEDTLS_TLS_EXT_SUPPORTED_POINT_FORMATS_PRESENT
;
ssl_srv.c:1747
ssl_parse_client_hello()
mbedtls_ssl_sig_hash_set_const_hash
(
&
ssl
->
handshake
->
hash_algs
,
md_default
)
;
ssl_srv.c:1883
ssl_parse_client_hello()
if
(
(
ssl
->
handshake
->
cli_exts
&
ssl_srv.c:2234
ssl_write_supported_point_formats_ext()
memcpy
(
ssl
->
handshake
->
randbytes
+
32
,
buf
+
6
,
32
)
;
ssl_srv.c:2473
ssl_write_server_hello()
if
(
ssl
->
handshake
->
resume
==
0
&&
ssl_srv.c:2482
ssl_write_server_hello()
ssl
->
handshake
->
resume
=
1
;
ssl_srv.c:2491
ssl_write_server_hello()
if
(
ssl
->
handshake
->
resume
==
0
)
ssl_srv.c:2494
ssl_write_server_hello()
for
(
curve
=
ssl
->
handshake
->
curves
;
*
curve
!=
NULL
;
curve
++
)
ssl_srv.c:3038
ssl_prepare_server_key_exchange()
if
(
(
ret
=
mbedtls_ecdh_setup
(
&
ssl
->
handshake
->
ecdh_ctx
,
ssl_srv.c:3051
ssl_prepare_server_key_exchange()
&
ssl
->
handshake
->
ecdh_ctx
,
&
len
,
ssl_srv.c:3059
ssl_prepare_server_key_exchange()
(
md_alg
=
mbedtls_ssl_sig_hash_set_find
(
&
ssl
->
handshake
->
hash_algs
,
ssl_srv.c:3112
ssl_prepare_server_key_exchange()
if
(
(
ret
=
mbedtls_ecdh_read_public
(
&
ssl
->
handshake
->
ecdh_ctx
,
ssl_srv.c:3791
ssl_parse_client_key_exchange()
if
(
(
ret
=
mbedtls_ecdh_calc_secret
(
&
ssl
->
handshake
->
ecdh_ctx
,
ssl_srv.c:3801
ssl_parse_client_key_exchange()
&
ssl
->
handshake
->
pmslen
,
ssl_srv.c:3802
ssl_parse_client_key_exchange()
ssl
->
handshake
->
premaster
,
ssl_srv.c:3803
ssl_parse_client_key_exchange()
ssl
->
handshake
->
calc_verify
(
ssl
,
hash
)
;
ssl_srv.c:4165
ssl_parse_certificate_verify()
if
(
ssl
->
state
==
MBEDTLS_SSL_HANDSHAKE_OVER
||
ssl
->
handshake
==
NULL
)
ssl_srv.c:4256
mbedtls_ssl_handshake_server_step()
mbedtls_ssl_handshake_params
*
handshake
=
ssl
->
handshake
;
ssl_tls.c:627
mbedtls_ssl_derive_keys()
mbedtls_sha256_clone
(
&
sha256
,
&
ssl
->
handshake
->
fin_sha256
)
;
ssl_tls.c:1208
ssl_calc_verify_tls_sha256()
mbedtls_sha512_clone
(
&
sha512
,
&
ssl
->
handshake
->
fin_sha512
)
;
ssl_tls.c:1229
ssl_calc_verify_tls_sha384()
ssl
->
handshake
==
NULL
)
ssl_tls.c:3209
mbedtls_ssl_write_handshake_msg()
ssl
->
handshake
->
update_checksum
(
ssl
,
ssl
->
out_msg
,
ssl
->
out_msglen
)
;
ssl_tls.c:3296
mbedtls_ssl_write_handshake_msg()
mbedtls_ssl_handshake_params
*
const
hs
=
ssl
->
handshake
;
ssl_tls.c:3708
mbedtls_ssl_update_handshake_status()
ssl
->
handshake
->
update_checksum
(
ssl
,
ssl
->
in_msg
,
ssl
->
in_hslen
)
;
ssl_tls.c:3712
mbedtls_ssl_update_handshake_status()
ssl
->
handshake
->
update_checksum
=
ssl_update_checksum_sha384
;
ssl_tls.c:5986
mbedtls_ssl_optimize_checksum()
ssl
->
handshake
->
update_checksum
=
ssl_update_checksum_sha256
;
ssl_tls.c:5991
mbedtls_ssl_optimize_checksum()
mbedtls_sha256_starts_ret
(
&
ssl
->
handshake
->
fin_sha256
,
0
)
;
ssl_tls.c:6010
mbedtls_ssl_reset_checksum()
mbedtls_sha512_starts_ret
(
&
ssl
->
handshake
->
fin_sha512
,
1
)
;
ssl_tls.c:6013
mbedtls_ssl_reset_checksum()
mbedtls_sha256_update_ret
(
&
ssl
->
handshake
->
fin_sha256
,
buf
,
len
)
;
ssl_tls.c:6028
ssl_update_checksum_start()
mbedtls_sha512_update_ret
(
&
ssl
->
handshake
->
fin_sha512
,
buf
,
len
)
;
ssl_tls.c:6031
ssl_update_checksum_start()
mbedtls_sha256_update_ret
(
&
ssl
->
handshake
->
fin_sha256
,
buf
,
len
)
;
ssl_tls.c:6051
ssl_update_checksum_sha256()
mbedtls_sha512_update_ret
(
&
ssl
->
handshake
->
fin_sha512
,
buf
,
len
)
;
ssl_tls.c:6059
ssl_update_checksum_sha384()
mbedtls_sha256_clone
(
&
sha256
,
&
ssl
->
handshake
->
fin_sha256
)
;
ssl_tls.c:6226
ssl_calc_finished_tls_sha256()
ssl
->
handshake
->
tls_prf
(
session
->
master
,
48
,
sender
,
ssl_tls.c:6245
ssl_calc_finished_tls_sha256()
mbedtls_sha512_clone
(
&
sha512
,
&
ssl
->
handshake
->
fin_sha512
)
;
ssl_tls.c:6275
ssl_calc_finished_tls_sha384()
ssl
->
handshake
->
tls_prf
(
session
->
master
,
48
,
sender
,
ssl_tls.c:6294
ssl_calc_finished_tls_sha384()
mbedtls_free
(
ssl
->
handshake
)
;
ssl_tls.c:6316
ssl_handshake_wrapup_free_hs_transform()
ssl
->
handshake
=
NULL
;
ssl_tls.c:6317
ssl_handshake_wrapup_free_hs_transform()
int
resume
=
ssl
->
handshake
->
resume
;
ssl_tls.c:6335
mbedtls_ssl_handshake_wrapup()
ssl
->
handshake
->
calc_finished
(
ssl
,
ssl
->
out_msg
+
4
,
ssl
->
conf
->
endpoint
)
;
ssl_tls.c:6403
mbedtls_ssl_write_finished()
if
(
ssl
->
handshake
->
resume
!=
0
)
ssl_tls.c:6426
mbedtls_ssl_write_finished()
ssl
->
handshake
->
calc_finished
(
ssl
,
buf
,
ssl
->
conf
->
endpoint
^
1
)
;
ssl_tls.c:6527
mbedtls_ssl_parse_finished()
if
(
ssl
->
handshake
->
resume
!=
0
)
ssl_tls.c:6574
mbedtls_ssl_parse_finished()
if
(
ssl
->
handshake
)
ssl_tls.c:6673
ssl_handshake_init()
if
(
ssl
->
handshake
==
NULL
)
ssl_tls.c:6690
ssl_handshake_init()
ssl
->
handshake
=
mbedtls_calloc
(
1
,
sizeof
(
mbedtls_ssl_handshake_params
)
)
;
ssl_tls.c:6692
ssl_handshake_init()
if
(
ssl
->
handshake
==
NULL
||
ssl_tls.c:6696
ssl_handshake_init()
mbedtls_free
(
ssl
->
handshake
)
;
ssl_tls.c:6702
ssl_handshake_init()
ssl
->
handshake
=
NULL
;
ssl_tls.c:6706
ssl_handshake_init()
ssl_handshake_params_init
(
ssl
->
handshake
)
;
ssl_tls.c:6716
ssl_handshake_init()
ssl
->
handshake
->
resume
=
1
;
ssl_tls.c:7200
mbedtls_ssl_set_session()
mbedtls_ssl_handshake_params
*
handshake
=
ssl
->
handshake
;
ssl_tls.c:8818
mbedtls_ssl_handshake_free()
if
(
ssl
->
handshake
)
ssl_tls.c:8963
mbedtls_ssl_free()
mbedtls_free
(
ssl
->
handshake
)
;
ssl_tls.c:8969
mbedtls_ssl_free()
ssl
->
handshake
->
calc_verify
=
ssl_calc_verify_tls_sha384
;
ssl_tls.c:9622
mbedtls_ssl_set_calc_verify_md()
ssl
->
handshake
->
calc_verify
=
ssl_calc_verify_tls_sha256
;
ssl_tls.c:9627
mbedtls_ssl_set_calc_verify_md()
if
(
(
ret
=
mbedtls_md_update
(
&
ctx
,
ssl
->
handshake
->
randbytes
,
64
)
)
!=
0
)
ssl_tls.c:9760
mbedtls_ssl_get_key_exchange_md_tls1_2()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
mbedtls_ssl_context::handshake
is written by 2 functions and is read by 45 functions:
ssl_handshake_wrapup_free_hs_transform()
ssl_handshake_init()
All items filtered out
mbedtls_ssl_context::handshake
ssl_generate_random()
ssl_write_client_hello()
ssl_parse_supported_point_formats_ext()
ssl_parse_server_hello()
ssl_check_server_ecdh_params()
ssl_parse_server_ecdh_params()
ssl_write_client_key_exchange()
ssl_write_certificate_verify()
mbedtls_ssl_handshake_client_step()
mbedtls_ssl_own_key()
mbedtls_ssl_own_cert()
ssl_parse_signature_algorithms_ext()
ssl_parse_supported_elliptic_curves()
ssl_parse_supported_point_formats()
ssl_pick_cert()
ssl_ciphersuite_match()
ssl_parse_client_hello()
ssl_write_supported_point_formats_ext()
ssl_write_server_hello()
ssl_prepare_server_key_exchange()
ssl_parse_client_key_exchange()
ssl_parse_certificate_verify()
mbedtls_ssl_handshake_server_step()
mbedtls_ssl_derive_keys()
ssl_calc_verify_tls_sha256()
ssl_calc_verify_tls_sha384()
mbedtls_ssl_write_handshake_msg()
mbedtls_ssl_update_handshake_status()
mbedtls_ssl_optimize_checksum()
mbedtls_ssl_reset_checksum()
ssl_update_checksum_start()
ssl_update_checksum_sha256()
ssl_update_checksum_sha384()
ssl_calc_finished_tls_sha256()
ssl_calc_finished_tls_sha384()
ssl_handshake_wrapup_free_hs_transform()
mbedtls_ssl_handshake_wrapup()
mbedtls_ssl_write_finished()
mbedtls_ssl_parse_finished()
ssl_handshake_init()
mbedtls_ssl_set_session()
mbedtls_ssl_handshake_free()
mbedtls_ssl_free()
mbedtls_ssl_set_calc_verify_md()
mbedtls_ssl_get_key_exchange_md_tls1_2()
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out