Debian Codegraph @

crt/s2n/tls/s2n_record_read.h

raw symbols SCIP
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 "tls/s2n_connection.h"
19
20 int s2n_record_parse_aead(
21 const struct s2n_cipher_suite *cipher_suite,
22 struct s2n_connection *conn,
23 uint8_t content_type,
24 uint16_t encrypted_length,
25 uint8_t *implicit_iv,
26 struct s2n_hmac_state *mac,
27 uint8_t *sequence_number,
28 struct s2n_session_key *session_key);
29 int s2n_record_parse_cbc(
30 const struct s2n_cipher_suite *cipher_suite,
31 struct s2n_connection *conn,
32 uint8_t content_type,
33 uint16_t encrypted_length,
34 uint8_t *implicit_iv,
35 struct s2n_hmac_state *mac,
36 uint8_t *sequence_number,
37 struct s2n_session_key *session_key);
38 int s2n_record_parse_composite(
39 const struct s2n_cipher_suite *cipher_suite,
40 struct s2n_connection *conn,
41 uint8_t content_type,
42 uint16_t encrypted_length,
43 uint8_t *implicit_iv,
44 struct s2n_hmac_state *mac,
45 uint8_t *sequence_number,
46 struct s2n_session_key *session_key);
47 int s2n_record_parse_stream(
48 const struct s2n_cipher_suite *cipher_suite,
49 struct s2n_connection *conn,
50 uint8_t content_type,
51 uint16_t encrypted_length,
52 uint8_t *implicit_iv,
53 struct s2n_hmac_state *mac,
54 uint8_t *sequence_number,
55 struct s2n_session_key *session_key);