aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted/aws/s2n/ya.make
blob: f6de16d8f02bd733509a866237c8cdcc51a1baf3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
# Generated by devtools/yamaker from nixpkgs 21.11.

LIBRARY()

OWNER(
    orivej
    g:cpp-contrib
)

VERSION(0.10.26)

ORIGINAL_SOURCE(https://github.com/aws/s2n-tls/archive/v0.10.26.tar.gz)

LICENSE(
    Apache-2.0 AND
    MIT AND
    Public-Domain
)

LICENSE_TEXTS(.yandex_meta/licenses.list.txt)

PEERDIR(
    contrib/libs/openssl
)

ADDINCL(
    GLOBAL contrib/restricted/aws/s2n
    GLOBAL contrib/restricted/aws/s2n/api
)

NO_COMPILER_WARNINGS()

NO_RUNTIME()

CFLAGS(
    -DS2N_ADX
    -D_POSIX_C_SOURCE=200809L
)

IF (NOT MUSL)
    CFLAGS(
        -DS2N_HAVE_EXECINFO
    )
ENDIF()

IF (OS_LINUX)
    CFLAGS(
        -DS2N_SIKEP434R2_ASM
    )
    SRCS(
        pq-crypto/sike_r2/sikep434r2_fp_x64_asm.S
    )
ENDIF()

IF (ARCH_X86_64)
    CFLAGS(
        -DS2N_CPUID_AVAILABLE
    )
ENDIF()

SRCS(
    crypto/s2n_aead_cipher_aes_gcm.c
    crypto/s2n_aead_cipher_chacha20_poly1305.c
    crypto/s2n_cbc_cipher_3des.c
    crypto/s2n_cbc_cipher_aes.c
    crypto/s2n_certificate.c
    crypto/s2n_cipher.c
    crypto/s2n_composite_cipher_aes_sha.c
    crypto/s2n_dhe.c
    crypto/s2n_drbg.c
    crypto/s2n_ecc_evp.c
    crypto/s2n_ecdsa.c
    crypto/s2n_evp.c
    crypto/s2n_fips.c
    crypto/s2n_hash.c
    crypto/s2n_hkdf.c
    crypto/s2n_hmac.c
    crypto/s2n_pkey.c
    crypto/s2n_rsa.c
    crypto/s2n_rsa_pss.c
    crypto/s2n_rsa_signing.c
    crypto/s2n_sequence.c
    crypto/s2n_stream_cipher_null.c
    crypto/s2n_stream_cipher_rc4.c
    crypto/s2n_tls13_keys.c
    error/s2n_errno.c
    pq-crypto/bike_r1/aes_ctr_prf.c
    pq-crypto/bike_r1/bike_r1_kem.c
    pq-crypto/bike_r1/converts_portable.c
    pq-crypto/bike_r1/decode.c
    pq-crypto/bike_r1/error.c
    pq-crypto/bike_r1/gf2x_mul.c
    pq-crypto/bike_r1/gf2x_portable.c
    pq-crypto/bike_r1/openssl_utils.c
    pq-crypto/bike_r1/parallel_hash.c
    pq-crypto/bike_r1/sampling.c
    pq-crypto/bike_r1/sampling_portable.c
    pq-crypto/bike_r1/secure_decode_portable.c
    pq-crypto/bike_r1/utilities.c
    pq-crypto/bike_r2/aes_ctr_prf.c
    pq-crypto/bike_r2/bike_r2_kem.c
    pq-crypto/bike_r2/decode.c
    pq-crypto/bike_r2/error.c
    pq-crypto/bike_r2/gf2x_mul.c
    pq-crypto/bike_r2/gf2x_portable.c
    pq-crypto/bike_r2/openssl_utils.c
    pq-crypto/bike_r2/sampling.c
    pq-crypto/bike_r2/sampling_portable.c
    pq-crypto/bike_r2/secure_decode_portable.c
    pq-crypto/bike_r2/utilities.c
    pq-crypto/kyber_90s_r2/aes256ctr.c
    pq-crypto/kyber_90s_r2/aes_c.c
    pq-crypto/kyber_90s_r2/cbd.c
    pq-crypto/kyber_90s_r2/indcpa.c
    pq-crypto/kyber_90s_r2/kyber_90s_r2_kem.c
    pq-crypto/kyber_90s_r2/ntt.c
    pq-crypto/kyber_90s_r2/poly.c
    pq-crypto/kyber_90s_r2/polyvec.c
    pq-crypto/kyber_90s_r2/reduce.c
    pq-crypto/kyber_90s_r2/sha2_c.c
    pq-crypto/kyber_90s_r2/verify.c
    pq-crypto/kyber_r2/cbd.c
    pq-crypto/kyber_r2/fips202_kyber_r2.c
    pq-crypto/kyber_r2/indcpa.c
    pq-crypto/kyber_r2/kyber_r2_kem.c
    pq-crypto/kyber_r2/ntt.c
    pq-crypto/kyber_r2/poly.c
    pq-crypto/kyber_r2/polyvec.c
    pq-crypto/kyber_r2/reduce.c
    pq-crypto/kyber_r2/symmetric-fips202.c
    pq-crypto/kyber_r2/verify.c
    pq-crypto/s2n_pq.c
    pq-crypto/s2n_pq_random.c
    pq-crypto/sike_r1/P503_r1.c
    pq-crypto/sike_r1/fips202_r1.c
    pq-crypto/sike_r1/fp_generic_r1.c
    pq-crypto/sike_r1/sike_r1_kem.c
    pq-crypto/sike_r2/P434.c
    pq-crypto/sike_r2/fips202.c
    stuffer/s2n_stuffer.c
    stuffer/s2n_stuffer_base64.c
    stuffer/s2n_stuffer_file.c
    stuffer/s2n_stuffer_network_order.c
    stuffer/s2n_stuffer_pem.c
    stuffer/s2n_stuffer_text.c
    tls/extensions/s2n_client_alpn.c
    tls/extensions/s2n_client_key_share.c
    tls/extensions/s2n_client_max_frag_len.c
    tls/extensions/s2n_client_pq_kem.c
    tls/extensions/s2n_client_psk.c
    tls/extensions/s2n_client_renegotiation_info.c
    tls/extensions/s2n_client_sct_list.c
    tls/extensions/s2n_client_server_name.c
    tls/extensions/s2n_client_session_ticket.c
    tls/extensions/s2n_client_signature_algorithms.c
    tls/extensions/s2n_client_status_request.c
    tls/extensions/s2n_client_supported_groups.c
    tls/extensions/s2n_client_supported_versions.c
    tls/extensions/s2n_cookie.c
    tls/extensions/s2n_ec_point_format.c
    tls/extensions/s2n_extension_list.c
    tls/extensions/s2n_extension_type.c
    tls/extensions/s2n_extension_type_lists.c
    tls/extensions/s2n_key_share.c
    tls/extensions/s2n_psk_key_exchange_modes.c
    tls/extensions/s2n_quic_transport_params.c
    tls/extensions/s2n_server_alpn.c
    tls/extensions/s2n_server_certificate_status.c
    tls/extensions/s2n_server_key_share.c
    tls/extensions/s2n_server_max_fragment_length.c
    tls/extensions/s2n_server_psk.c
    tls/extensions/s2n_server_renegotiation_info.c
    tls/extensions/s2n_server_sct_list.c
    tls/extensions/s2n_server_server_name.c
    tls/extensions/s2n_server_session_ticket.c
    tls/extensions/s2n_server_signature_algorithms.c
    tls/extensions/s2n_server_status_request.c
    tls/extensions/s2n_server_supported_versions.c
    tls/extensions/s2n_supported_versions.c
    tls/s2n_aead.c
    tls/s2n_alerts.c
    tls/s2n_async_pkey.c
    tls/s2n_auth_selection.c
    tls/s2n_cbc.c
    tls/s2n_change_cipher_spec.c
    tls/s2n_cipher_preferences.c
    tls/s2n_cipher_suites.c
    tls/s2n_client_cert.c
    tls/s2n_client_cert_verify.c
    tls/s2n_client_finished.c
    tls/s2n_client_hello.c
    tls/s2n_client_key_exchange.c
    tls/s2n_config.c
    tls/s2n_connection.c
    tls/s2n_connection_evp_digests.c
    tls/s2n_ecc_preferences.c
    tls/s2n_encrypted_extensions.c
    tls/s2n_establish_session.c
    tls/s2n_handshake.c
    tls/s2n_handshake_io.c
    tls/s2n_handshake_transcript.c
    tls/s2n_kem.c
    tls/s2n_kem_preferences.c
    tls/s2n_kex.c
    tls/s2n_key_update.c
    tls/s2n_ocsp_stapling.c
    tls/s2n_post_handshake.c
    tls/s2n_prf.c
    tls/s2n_protocol_preferences.c
    tls/s2n_psk.c
    tls/s2n_quic_support.c
    tls/s2n_record_read.c
    tls/s2n_record_read_aead.c
    tls/s2n_record_read_cbc.c
    tls/s2n_record_read_composite.c
    tls/s2n_record_read_stream.c
    tls/s2n_record_write.c
    tls/s2n_recv.c
    tls/s2n_resume.c
    tls/s2n_security_policies.c
    tls/s2n_send.c
    tls/s2n_server_cert.c
    tls/s2n_server_cert_request.c
    tls/s2n_server_done.c
    tls/s2n_server_extensions.c
    tls/s2n_server_finished.c
    tls/s2n_server_hello.c
    tls/s2n_server_hello_retry.c
    tls/s2n_server_key_exchange.c
    tls/s2n_server_new_session_ticket.c
    tls/s2n_shutdown.c
    tls/s2n_signature_algorithms.c
    tls/s2n_signature_scheme.c
    tls/s2n_tls.c
    tls/s2n_tls13.c
    tls/s2n_tls13_certificate_verify.c
    tls/s2n_tls13_handshake.c
    tls/s2n_x509_validator.c
    utils/s2n_array.c
    utils/s2n_asn1_time.c
    utils/s2n_blob.c
    utils/s2n_ensure.c
    utils/s2n_init.c
    utils/s2n_map.c
    utils/s2n_mem.c
    utils/s2n_random.c
    utils/s2n_result.c
    utils/s2n_rfc5952.c
    utils/s2n_safety.c
    utils/s2n_set.c
    utils/s2n_socket.c
    utils/s2n_str.c
    utils/s2n_timer.c
)

END()