LCOV - code coverage report
Current view: top level - tls - s2n_tls13_handshake.h (source / functions) Hit Total Coverage
Test: unit_test_coverage.info Lines: 2 2 100.0 %
Date: 2025-08-15 07:28:39 Functions: 0 0 -
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /*
       2                 :            :  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
       3                 :            :  *
       4                 :            :  * Licensed under the Apache License, Version 2.0 (the "License").
       5                 :            :  * You may not use this file except in compliance with the License.
       6                 :            :  * A copy of the License is located at
       7                 :            :  *
       8                 :            :  *  http://aws.amazon.com/apache2.0
       9                 :            :  *
      10                 :            :  * or in the "license" file accompanying this file. This file is distributed
      11                 :            :  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
      12                 :            :  * express or implied. See the License for the specific language governing
      13                 :            :  * permissions and limitations under the License.
      14                 :            :  */
      15                 :            : 
      16                 :            : #pragma once
      17                 :            : 
      18                 :            : #include "crypto/s2n_tls13_keys.h"
      19                 :            : #include "tls/s2n_connection.h"
      20                 :            : #include "tls/s2n_key_update.h"
      21                 :            : #include "utils/s2n_blob.h"
      22                 :            : #include "utils/s2n_safety.h"
      23                 :            : 
      24                 :            : int s2n_tls13_mac_verify(struct s2n_tls13_keys *keys, struct s2n_blob *finished_verify, struct s2n_blob *wire_verify);
      25                 :            : 
      26                 :            : #define s2n_get_hash_state(hash_state, alg, conn) \
      27                 :            :     struct s2n_hash_state hash_state = { 0 };     \
      28                 :            :     POSIX_GUARD(s2n_handshake_get_hash_state(conn, alg, &hash_state));
      29                 :            : 
      30                 :            : /* Creates a reference to tls13_keys from connection */
      31                 :            : #define s2n_tls13_connection_keys(keys, conn)                               \
      32                 :      20428 :     DEFER_CLEANUP(struct s2n_tls13_keys keys = { 0 }, s2n_tls13_keys_free); \
      33                 :      20430 :     POSIX_GUARD(s2n_tls13_keys_from_conn(&keys, conn));
      34                 :            : 
      35                 :            : int s2n_tls13_keys_from_conn(struct s2n_tls13_keys *keys, struct s2n_connection *conn);
      36                 :            : 
      37                 :            : int s2n_tls13_compute_shared_secret(struct s2n_connection *conn, struct s2n_blob *shared_secret);
      38                 :            : int s2n_tls13_pq_hybrid_supported(struct s2n_connection *conn);
      39                 :            : int s2n_update_application_traffic_keys(struct s2n_connection *conn, s2n_mode mode, keyupdate_status status);
      40                 :            : 
      41                 :            : int s2n_server_hello_retry_recreate_transcript(struct s2n_connection *conn);

Generated by: LCOV version 1.14