Lines Matching refs:config
533 static void dtls_debug_keyblock(dtls_security_parameters_t *config) in dtls_debug_keyblock() argument
535 dtls_debug("key_block (%d bytes):\n", dtls_kb_size(config, peer->role)); in dtls_debug_keyblock()
537 dtls_kb_client_mac_secret(config, peer->role), in dtls_debug_keyblock()
538 dtls_kb_mac_secret_size(config, peer->role)); in dtls_debug_keyblock()
541 dtls_kb_server_mac_secret(config, peer->role), in dtls_debug_keyblock()
542 dtls_kb_mac_secret_size(config, peer->role)); in dtls_debug_keyblock()
545 dtls_kb_client_write_key(config, peer->role), in dtls_debug_keyblock()
546 dtls_kb_key_size(config, peer->role)); in dtls_debug_keyblock()
549 dtls_kb_server_write_key(config, peer->role), in dtls_debug_keyblock()
550 dtls_kb_key_size(config, peer->role)); in dtls_debug_keyblock()
553 dtls_kb_client_iv(config, peer->role), in dtls_debug_keyblock()
554 dtls_kb_iv_size(config, peer->role)); in dtls_debug_keyblock()
557 dtls_kb_server_iv(config, peer->role), in dtls_debug_keyblock()
558 dtls_kb_iv_size(config, peer->role)); in dtls_debug_keyblock()
905 dtls_handshake_parameters_t *config = peer->handshake_params; in dtls_update_parameters() local
908 assert(config); in dtls_update_parameters()
916 memcpy(config->tmp.random.client, data, DTLS_RANDOM_LENGTH); in dtls_update_parameters()
932 config->cipher = security->cipher; in dtls_update_parameters()
933 config->compression = security->compression; in dtls_update_parameters()
943 config->cipher = dtls_uint16_to_int(data); in dtls_update_parameters()
944 ok = known_cipher(ctx, config->cipher, 0); in dtls_update_parameters()
954 config->cipher = TLS_NULL_WITH_NULL_NULL; in dtls_update_parameters()
962 config->compression = security->compression; in dtls_update_parameters()
964 config->compression = TLS_COMPRESSION_NULL; in dtls_update_parameters()
979 config->compression = compression_methods[j]; in dtls_update_parameters()
1695 dtls_handshake_parameters_t *config = peer->handshake_params; in check_client_certificate_verify() local
1702 assert(is_tls_ecdhe_ecdsa_with_aes_128_ccm_8(config->cipher)); in check_client_certificate_verify()
1722 ret = dtls_ecdsa_verify_sig_hash(config->keyx.ecdsa.other_pub_x, config->keyx.ecdsa.other_pub_y, in check_client_certificate_verify()
1723 sizeof(config->keyx.ecdsa.other_pub_x), in check_client_certificate_verify()
1936 dtls_handshake_parameters_t *config = peer->handshake_params; in dtls_send_server_key_exchange_ecdh() local
1967 dtls_ecdsa_generate_key(config->keyx.ecdsa.own_eph_priv, in dtls_send_server_key_exchange_ecdh()
1973 config->tmp.random.client, DTLS_RANDOM_LENGTH, in dtls_send_server_key_exchange_ecdh()
1974 config->tmp.random.server, DTLS_RANDOM_LENGTH, in dtls_send_server_key_exchange_ecdh()
2557 dtls_handshake_parameters_t *config = peer->handshake_params; in check_server_certificate() local
2561 assert(is_tls_ecdhe_ecdsa_with_aes_128_ccm_8(config->cipher)); in check_server_certificate()
2583 memcpy(config->keyx.ecdsa.other_pub_x, data, in check_server_certificate()
2584 sizeof(config->keyx.ecdsa.other_pub_x)); in check_server_certificate()
2585 data += sizeof(config->keyx.ecdsa.other_pub_x); in check_server_certificate()
2587 memcpy(config->keyx.ecdsa.other_pub_y, data, in check_server_certificate()
2588 sizeof(config->keyx.ecdsa.other_pub_y)); in check_server_certificate()
2589 data += sizeof(config->keyx.ecdsa.other_pub_y); in check_server_certificate()
2592 config->keyx.ecdsa.other_pub_x, in check_server_certificate()
2593 config->keyx.ecdsa.other_pub_y, in check_server_certificate()
2594 sizeof(config->keyx.ecdsa.other_pub_x)); in check_server_certificate()
2608 dtls_handshake_parameters_t *config = peer->handshake_params; in check_server_key_exchange_ecdsa() local
2616 assert(is_tls_ecdhe_ecdsa_with_aes_128_ccm_8(config->cipher)); in check_server_key_exchange_ecdsa()
2654 memcpy(config->keyx.ecdsa.other_eph_pub_x, data, sizeof(config->keyx.ecdsa.other_eph_pub_y)); in check_server_key_exchange_ecdsa()
2655 data += sizeof(config->keyx.ecdsa.other_eph_pub_y); in check_server_key_exchange_ecdsa()
2656 data_length -= sizeof(config->keyx.ecdsa.other_eph_pub_y); in check_server_key_exchange_ecdsa()
2658 memcpy(config->keyx.ecdsa.other_eph_pub_y, data, sizeof(config->keyx.ecdsa.other_eph_pub_y)); in check_server_key_exchange_ecdsa()
2659 data += sizeof(config->keyx.ecdsa.other_eph_pub_y); in check_server_key_exchange_ecdsa()
2660 data_length -= sizeof(config->keyx.ecdsa.other_eph_pub_y); in check_server_key_exchange_ecdsa()
2669 ret = dtls_ecdsa_verify_sig(config->keyx.ecdsa.other_pub_x, config->keyx.ecdsa.other_pub_y, in check_server_key_exchange_ecdsa()
2670 sizeof(config->keyx.ecdsa.other_pub_x), in check_server_key_exchange_ecdsa()
2671 config->tmp.random.client, DTLS_RANDOM_LENGTH, in check_server_key_exchange_ecdsa()
2672 config->tmp.random.server, DTLS_RANDOM_LENGTH, in check_server_key_exchange_ecdsa()
2691 dtls_handshake_parameters_t *config = peer->handshake_params; in check_server_key_exchange_psk() local
2696 assert(is_tls_psk_with_aes_128_ccm_8(config->cipher)); in check_server_key_exchange_psk()
2719 config->keyx.psk.id_length = len; in check_server_key_exchange_psk()
2720 memcpy(config->keyx.psk.identity, data, len); in check_server_key_exchange_psk()