Check i before r[i].
[openssl.git] / fips / fipssyms.h
1
2 /* Where necessary redirect standard OpenSSL APIs to FIPS versions */
3
4 #define CRYPTO_lock FIPS_lock
5 #define CRYPTO_add_lock FIPS_add_lock
6 #define CRYPTO_malloc FIPS_malloc
7 #define CRYPTO_free FIPS_free
8
9 #define ERR_put_error FIPS_put_error
10 #define ERR_add_error_data FIPS_add_error_data
11
12 #define EVP_MD_CTX_init FIPS_md_ctx_init
13 #define EVP_MD_CTX_cleanup FIPS_md_ctx_cleanup
14 #define EVP_MD_CTX_create FIPS_md_ctx_create
15 #define EVP_MD_CTX_destroy FIPS_md_ctx_destroy
16 #define EVP_DigestInit_ex(ctx, type, impl) FIPS_digestinit(ctx, type)
17 #define EVP_DigestInit FIPS_digestinit
18 #define EVP_DigestUpdate FIPS_digestupdate
19 #define EVP_Digest(data, count, md, size, type, impl) \
20                         FIPS_digest(data, count, md, size, type)
21 #define EVP_DigestFinal_ex FIPS_digestfinal
22 #define EVP_MD_CTX_copy_ex FIPS_md_ctx_copy
23
24 #define EVP_CipherInit_ex(ctx, cipher, impl, key, iv, enc) \
25                                 FIPS_cipherinit(ctx, cipher, key, iv, enc)
26
27 #define EVP_CipherInit FIPS_cipherinit
28
29 #define EVP_CIPHER_CTX_init FIPS_cipher_ctx_init
30 #define EVP_CIPHER_CTX_cleanup FIPS_cipher_ctx_cleanup
31 #define EVP_Cipher FIPS_cipher
32 #define EVP_CIPHER_CTX_ctrl FIPS_cipher_ctx_ctrl
33 #define EVP_CIPHER_CTX_new FIPS_cipher_ctx_new
34 #define EVP_CIPHER_CTX_free FIPS_cipher_ctx_free
35 #define EVP_CIPHER_CTX_copy FIPS_cipher_ctx_copy
36 #define EVP_CIPHER_CTX_set_key_length FIPS_cipher_ctx_set_key_length
37
38 #define DSA_SIG_new FIPS_dsa_sig_new
39 #define DSA_SIG_free FIPS_dsa_sig_free
40
41 #define ECDSA_SIG_new FIPS_ecdsa_sig_new
42 #define ECDSA_SIG_free FIPS_ecdsa_sig_free
43
44 #define ecdsa_check fips_ecdsa_check
45 #define ecdh_check fips_ecdh_check
46
47 #define RAND_bytes FIPS_rand_bytes
48 #define RAND_pseudo_bytes FIPS_rand_pseudo_bytes
49 #define RAND_add FIPS_rand_add
50 #define RAND_seed FIPS_rand_seed
51 #define RAND_status FIPS_rand_status
52
53 /* Rename symbols so they don't clash with standard OpenSSL */
54
55 #define AES_cfb128_encrypt fips_aes_cfb128_encrypt
56 #define AES_cfb1_encrypt fips_aes_cfb1_encrypt
57 #define AES_cfb8_encrypt fips_aes_cfb8_encrypt
58 #define AES_ecb_encrypt fips_aes_ecb_encrypt
59 #define AES_ofb128_encrypt fips_aes_ofb128_encrypt
60 #define BN_BLINDING_convert fips_bn_blinding_convert
61 #define BN_BLINDING_convert_ex fips_bn_blinding_convert_ex
62 #define BN_BLINDING_create_param fips_bn_blinding_create_param
63 #define BN_BLINDING_free fips_bn_blinding_free
64 #define BN_BLINDING_get_flags fips_bn_blinding_get_flags
65 #define BN_BLINDING_invert fips_bn_blinding_invert
66 #define BN_BLINDING_invert_ex fips_bn_blinding_invert_ex
67 #define BN_BLINDING_new fips_bn_blinding_new
68 #define BN_BLINDING_set_flags fips_bn_blinding_set_flags
69 #define BN_BLINDING_thread_id fips_bn_blinding_thread_id
70 #define BN_BLINDING_update fips_bn_blinding_update
71 #define BN_BLINDING_get_thread_id fips_bn_blinding_get_thread_id
72 #define BN_BLINDING_set_thread_id fips_bn_blinding_set_thread_id
73 #define BN_CTX_end fips_bn_ctx_end
74 #define BN_CTX_init fips_bn_ctx_init
75 #define BN_CTX_free fips_bn_ctx_free
76 #define BN_CTX_get fips_bn_ctx_get
77 #define BN_CTX_new fips_bn_ctx_new
78 #define BN_CTX_start fips_bn_ctx_start
79 #define BN_GENCB_call fips_bn_gencb_call
80 #define BN_GF2m_add fips_bn_gf2m_add
81 #define BN_GF2m_arr2poly fips_bn_gf2m_arr2poly
82 #define BN_GF2m_mod fips_bn_gf2m_mod
83 #define BN_GF2m_mod_arr fips_bn_gf2m_mod_arr
84 #define BN_GF2m_mod_div fips_bn_gf2m_mod_div
85 #define BN_GF2m_mod_div_arr fips_bn_gf2m_mod_div_arr
86 #define BN_GF2m_mod_exp fips_bn_gf2m_mod_exp
87 #define BN_GF2m_mod_exp_arr fips_bn_gf2m_mod_exp_arr
88 #define BN_GF2m_mod_inv fips_bn_gf2m_mod_inv
89 #define BN_GF2m_mod_inv_arr fips_bn_gf2m_mod_inv_arr
90 #define BN_GF2m_mod_mul fips_bn_gf2m_mod_mul
91 #define BN_GF2m_mod_mul_arr fips_bn_gf2m_mod_mul_arr
92 #define BN_GF2m_mod_solve_quad fips_bn_gf2m_mod_solve_quad
93 #define BN_GF2m_mod_solve_quad_arr fips_bn_gf2m_mod_solve_quad_arr
94 #define BN_GF2m_mod_sqr fips_bn_gf2m_mod_sqr
95 #define BN_GF2m_mod_sqr_arr fips_bn_gf2m_mod_sqr_arr
96 #define BN_GF2m_mod_sqrt fips_bn_gf2m_mod_sqrt
97 #define BN_GF2m_mod_sqrt_arr fips_bn_gf2m_mod_sqrt_arr
98 #define BN_GF2m_poly2arr fips_bn_gf2m_poly2arr
99 #define BN_MONT_CTX_copy fips_bn_mont_ctx_copy
100 #define BN_MONT_CTX_free fips_bn_mont_ctx_free
101 #define BN_MONT_CTX_init fips_bn_mont_ctx_init
102 #define BN_MONT_CTX_new fips_bn_mont_ctx_new
103 #define BN_MONT_CTX_set fips_bn_mont_ctx_set
104 #define BN_MONT_CTX_set_locked fips_bn_mont_ctx_set_locked
105 #define BN_RECP_CTX_free fips_bn_recp_ctx_free
106 #define BN_RECP_CTX_init fips_bn_recp_ctx_init
107 #define BN_RECP_CTX_new fips_bn_recp_ctx_new
108 #define BN_RECP_CTX_set fips_bn_recp_ctx_set
109 #define BN_X931_derive_prime_ex FIPS_bn_x931_derive_prime_ex
110 #define BN_X931_generate_Xpq FIPS_bn_x931_generate_xpq
111 #define BN_X931_generate_prime_ex FIPS_bn_x931_generate_prime_ex
112 #define BN_add fips_bn_add
113 #define BN_add_word fips_bn_add_word
114 #define BN_bin2bn FIPS_bn_bin2bn
115 #define BN_bn2bin FIPS_bn_bn2bin
116 #define BN_bntest_rand fips_bn_bntest_rand
117 #define BN_clear FIPS_bn_clear
118 #define BN_clear_bit fips_bn_clear_bit
119 #define BN_clear_free FIPS_bn_clear_free
120 #define BN_cmp fips_bn_cmp
121 #define BN_copy fips_bn_copy
122 #define BN_div fips_bn_div
123 #define BN_div_recp fips_bn_div_recp
124 #define BN_div_word fips_bn_div_word
125 #define BN_dup fips_bn_dup
126 #define BN_exp fips_bn_exp
127 #define BN_free FIPS_bn_free
128 #define BN_gcd fips_bn_gcd
129 #define BN_generate_prime_ex FIPS_bn_generate_prime_ex
130 #define BN_get0_nist_prime_192 fips_bn_get0_nist_prime_192
131 #define BN_get0_nist_prime_224 fips_bn_get0_nist_prime_224
132 #define BN_get0_nist_prime_256 fips_bn_get0_nist_prime_256
133 #define BN_get0_nist_prime_384 fips_bn_get0_nist_prime_384
134 #define BN_get0_nist_prime_521 fips_bn_get0_nist_prime_521
135 #define BN_get_word FIPS_bn_get_word
136 #define BN_init fips_bn_init
137 #define BN_is_bit_set FIPS_bn_is_bit_set
138 #define BN_is_prime_ex FIPS_bn_is_prime_ex
139 #define BN_is_prime_fasttest_ex FIPS_bn_is_prime_fasttest_ex
140 #define BN_lshift fips_bn_lshift
141 #define BN_lshift1 fips_bn_lshift1
142 #define BN_mask_bits fips_bn_mask_bits
143 #define BN_mod_add fips_bn_mod_add
144 #define BN_mod_add_quick fips_bn_mod_add_quick
145 #define BN_mod_exp fips_bn_mod_exp
146 #define BN_mod_exp2_mont fips_bn_mod_exp2_mont
147 #define BN_mod_exp_mont fips_bn_mod_exp_mont
148 #define BN_mod_exp_mont_consttime fips_bn_mod_exp_mont_consttime
149 #define BN_mod_exp_mont_word fips_bn_mod_exp_mont_word
150 #define BN_mod_exp_recp fips_bn_mod_exp_recp
151 #define BN_mod_exp_simple fips_bn_mod_exp_simple
152 #define BN_mod_inverse fips_bn_mod_inverse
153 #define BN_mod_lshift fips_bn_mod_lshift
154 #define BN_mod_lshift1 fips_bn_mod_lshift1
155 #define BN_mod_lshift1_quick fips_bn_mod_lshift1_quick
156 #define BN_mod_lshift_quick fips_bn_mod_lshift_quick
157 #define BN_mod_mul fips_bn_mod_mul
158 #define BN_mod_mul_montgomery fips_bn_mod_mul_montgomery
159 #define BN_mod_mul_reciprocal fips_bn_mod_mul_reciprocal
160 #define BN_mod_sqr fips_bn_mod_sqr
161 #define BN_mod_sub fips_bn_mod_sub
162 #define BN_mod_sub_quick fips_bn_mod_sub_quick
163 #define BN_mod_word fips_bn_mod_word
164 #define BN_mul fips_bn_mul
165 #define BN_mul_word fips_bn_mul_word
166 #define BN_new FIPS_bn_new
167 #define BN_nist_mod_192 fips_bn_nist_mod_192
168 #define BN_nist_mod_224 fips_bn_nist_mod_224
169 #define BN_nist_mod_256 fips_bn_nist_mod_256
170 #define BN_nist_mod_384 fips_bn_nist_mod_384
171 #define BN_nist_mod_521 fips_bn_nist_mod_521
172 #define BN_nist_mod_func fips_bn_nist_mod_func
173 #define BN_nnmod fips_bn_nnmod
174 #define BN_num_bits FIPS_bn_num_bits
175 #define BN_pseudo_rand FIPS_bn_pseudo_rand
176 #define BN_pseudo_rand_range FIPS_bn_pseudo_rand_range
177 #define BN_rand FIPS_bn_rand
178 #define BN_rand_range FIPS_bn_rand_range
179 #define BN_reciprocal fips_bn_reciprocal
180 #define BN_rshift fips_bn_rshift
181 #define BN_rshift1 fips_bn_rshift1
182 #define BN_set_bit FIPS_bn_set_bit
183 #define BN_set_negative fips_bn_set_negative
184 #define BN_set_word fips_bn_set_word
185 #define BN_sqr fips_bn_sqr
186 #define BN_sub fips_bn_sub
187 #define BN_sub_word fips_bn_sub_word
188 #define BN_swap fips_bn_swap
189 #define BN_uadd fips_bn_uadd
190 #define BN_ucmp fips_bn_ucmp
191 #define BN_usub fips_bn_usub
192 #define BN_value_one fips_bn_value_one
193 #define BN_set_params fips_bn_set_params
194 #define BN_get_params fips_bn_get_params
195 #define BN_version FIPS_bn_version
196 #define BUF_memdup fips_buf_memdup
197 #define BUF_strdup fips_buf_strdup
198 #define BUF_strlcat fips_buf_strlcat
199 #define BUF_strlcpy fips_buf_strlcpy
200 #define BUF_strndup fips_buf_strndup
201 #define DllMain fips_dllmain
202 #define CRYPTO_THREADID_cmp fips_crypto_threadid_cmp
203 #define CRYPTO_THREADID_cpy fips_crypto_threadid_cpy
204 #define CRYPTO_THREADID_current fips_crypto_threadid_current
205 #define CRYPTO_THREADID_get_callback FIPS_crypto_threadid_get_callback
206 #define CRYPTO_THREADID_hash FIPS_crypto_threadid_hash
207 #define CRYPTO_THREADID_set_callback FIPS_crypto_threadid_set_callback
208 #define CRYPTO_THREADID_set_numeric FIPS_crypto_threadid_set_numeric
209 #define CRYPTO_THREADID_set_pointer FIPS_crypto_threadid_set_pointer
210 #define CRYPTO_get_id_callback FIPS_crypto_get_id_callback
211 #define CRYPTO_set_id_callback FIPS_crypto_set_id_callback
212 #define CRYPTO_thread_id FIPS_crypto_thread_id
213 #define CRYPTO_ccm128_aad fips_crypto_ccm128_aad
214 #define CRYPTO_ccm128_decrypt fips_crypto_ccm128_decrypt
215 #define CRYPTO_ccm128_decrypt_ccm64 fips_crypto_ccm128_decrypt_ccm64
216 #define CRYPTO_ccm128_encrypt fips_crypto_ccm128_encrypt
217 #define CRYPTO_ccm128_encrypt_ccm64 fips_crypto_ccm128_encrypt_ccm64
218 #define CRYPTO_ccm128_init fips_crypto_ccm128_init
219 #define CRYPTO_ccm128_setiv fips_crypto_ccm128_setiv
220 #define CRYPTO_ccm128_tag fips_crypto_ccm128_tag
221 #define CRYPTO_cbc128_decrypt fips_crypto_cbc128_decrypt
222 #define CRYPTO_cbc128_encrypt fips_crypto_cbc128_encrypt
223 #define CRYPTO_cfb128_1_encrypt fips_crypto_cfb128_1_encrypt
224 #define CRYPTO_cfb128_8_encrypt fips_crypto_cfb128_8_encrypt
225 #define CRYPTO_cfb128_encrypt fips_crypto_cfb128_encrypt
226 #define CRYPTO_ctr128_encrypt fips_crypto_ctr128_encrypt
227 #define CRYPTO_ctr128_encrypt_ctr32 fips_crypto_ctr128_encrypt_ctr32
228 #define CRYPTO_gcm128_aad fips_crypto_gcm128_aad
229 #define CRYPTO_gcm128_decrypt fips_crypto_gcm128_decrypt
230 #define CRYPTO_gcm128_decrypt_ctr32 fips_crypto_gcm128_decrypt_ctr32
231 #define CRYPTO_gcm128_encrypt fips_crypto_gcm128_encrypt
232 #define CRYPTO_gcm128_encrypt_ctr32 fips_crypto_gcm128_encrypt_ctr32
233 #define CRYPTO_gcm128_finish fips_crypto_gcm128_finish
234 #define CRYPTO_gcm128_init fips_crypto_gcm128_init
235 #define CRYPTO_gcm128_new fips_crypto_gcm128_new
236 #define CRYPTO_gcm128_release fips_crypto_gcm128_release
237 #define CRYPTO_gcm128_setiv fips_crypto_gcm128_setiv
238 #define CRYPTO_gcm128_tag fips_crypto_gcm128_tag
239 #define CRYPTO_ofb128_encrypt fips_crypto_ofb128_encrypt
240 #define CRYPTO_xts128_encrypt fips_crypto_xts128_encrypt
241 #define DES_cfb64_encrypt fips_des_cfb64_encrypt
242 #define DES_cfb_encrypt fips_des_cfb_encrypt
243 #define DES_check_key_parity FIPS_des_check_key_parity
244 #define DES_crypt fips_des_crypt
245 #define DES_ecb3_encrypt fips_des_ecb3_encrypt
246 #define DES_ede3_cfb64_encrypt fips_des_ede3_cfb64_encrypt
247 #define DES_ede3_cfb_encrypt fips_des_ede3_cfb_encrypt
248 #define DES_ede3_ofb64_encrypt fips_des_ede3_ofb64_encrypt
249 #define DES_fcrypt fips_des_fcrypt
250 #define DES_is_weak_key fips_des_is_weak_key
251 #define DES_key_sched fips_des_key_sched
252 #define DES_set_key fips_des_set_key
253 #define DES_set_key_checked fips_des_set_key_checked
254 #define DES_set_key_unchecked fips_des_set_key_unchecked
255 #define DES_set_odd_parity fips_des_set_odd_parity
256 #define DH_OpenSSL FIPS_dh_openssl
257 #define DH_check FIPS_dh_check
258 #define DH_check_pub_key FIPS_dh_check_pub_key
259 #define DH_compute_key FIPS_dh_compute_key
260 #define DH_generate_key FIPS_dh_generate_key
261 #define DH_generate_parameters_ex FIPS_dh_generate_parameters_ex
262 #define DSA_OpenSSL FIPS_dsa_openssl
263 #define DSA_generate_key FIPS_dsa_generate_key
264 #define DSA_generate_parameters_ex FIPS_dsa_generate_parameters_ex
265 #define ECDSA_OpenSSL FIPS_ecdsa_openssl
266 #define EC_EX_DATA_clear_free_all_data fips_ec_ex_data_clear_free_all_data
267 #define EC_EX_DATA_clear_free_data fips_ec_ex_data_clear_free_data
268 #define EC_EX_DATA_free_all_data fips_ec_ex_data_free_all_data
269 #define EC_EX_DATA_free_data fips_ec_ex_data_free_data
270 #define EC_EX_DATA_get_data fips_ec_ex_data_get_data
271 #define EC_EX_DATA_set_data fips_ec_ex_data_set_data
272 #define EC_GF2m_simple_method fips_ec_gf2m_simple_method
273 #define EC_GFp_mont_method fips_ec_gfp_mont_method
274 #define EC_GFp_nist_method fips_ec_gfp_nist_method
275 #define EC_GFp_simple_method fips_ec_gfp_simple_method
276 #define EC_GROUP_check_discriminant fips_ec_group_check_discriminant
277 #define EC_GROUP_clear_free FIPS_ec_group_clear_free
278 #define EC_GROUP_cmp fips_ec_group_cmp
279 #define EC_GROUP_copy fips_ec_group_copy
280 #define EC_GROUP_dup fips_ec_group_dup
281 #define EC_GROUP_free fips_ec_group_free
282 #define EC_GROUP_get0_generator FIPS_ec_group_get0_generator
283 #define EC_GROUP_get0_seed FIPS_ec_group_get0_seed
284 #define EC_GROUP_get_asn1_flag FIPS_ec_group_get_asn1_flag
285 #define EC_GROUP_get_cofactor FIPS_ec_group_get_cofactor
286 #define EC_GROUP_get_curve_GF2m FIPS_ec_group_get_curve_gf2m
287 #define EC_GROUP_get_curve_GFp FIPS_ec_group_get_curve_gfp
288 #define EC_GROUP_get_curve_name FIPS_ec_group_get_curve_name
289 #define EC_GROUP_get_degree FIPS_ec_group_get_degree
290 #define EC_GROUP_get_order FIPS_ec_group_get_order
291 #define EC_GROUP_get_point_conversion_form fips_ec_group_get_point_conversion_form
292 #define EC_GROUP_get_seed_len fips_ec_group_get_seed_len
293 #define EC_GROUP_have_precompute_mult fips_ec_group_have_precompute_mult
294 #define EC_GROUP_method_of FIPS_ec_group_method_of
295 #define EC_GROUP_new FIPS_ec_group_new
296 #define EC_GROUP_new_by_curve_name FIPS_ec_group_new_by_curve_name
297 #define EC_GROUP_new_curve_GF2m FIPS_ec_group_new_curve_gf2m
298 #define EC_GROUP_new_curve_GFp FIPS_ec_group_new_curve_gfp
299 #define EC_GROUP_precompute_mult FIPS_ec_group_precompute_mult
300 #define EC_GROUP_set_asn1_flag FIPS_ec_group_set_asn1_flag
301 #define EC_GROUP_set_curve_GF2m FIPS_ec_group_set_curve_gf2m
302 #define EC_GROUP_set_curve_GFp FIPS_ec_group_set_curve_gfp
303 #define EC_GROUP_set_curve_name FIPS_ec_group_set_curve_name
304 #define EC_GROUP_set_generator FIPS_ec_group_set_generator
305 #define EC_GROUP_set_point_conversion_form FIPS_ec_group_set_point_conversion_form
306 #define EC_GROUP_set_seed fips_ec_group_set_seed
307 #define EC_KEY_check_key FIPS_ec_key_check_key
308 #define EC_KEY_copy FIPS_ec_key_copy
309 #define EC_KEY_dup FIPS_ec_key_dup
310 #define EC_KEY_free FIPS_ec_key_free
311 #define EC_KEY_generate_key FIPS_ec_key_generate_key
312 #define EC_KEY_get0_group FIPS_ec_key_get0_group
313 #define EC_KEY_get0_private_key FIPS_ec_key_get0_private_key
314 #define EC_KEY_get0_public_key FIPS_ec_key_get0_public_key
315 #define EC_KEY_get_conv_form FIPS_ec_key_get_conv_form
316 #define EC_KEY_get_enc_flags FIPS_ec_key_get_enc_flags
317 #define EC_KEY_get_key_method_data FIPS_ec_key_get_key_method_data
318 #define EC_KEY_insert_key_method_data FIPS_ec_key_insert_key_method_data
319 #define EC_KEY_new FIPS_ec_key_new
320 #define EC_KEY_new_by_curve_name FIPS_ec_key_new_by_curve_name
321 #define EC_KEY_precompute_mult FIPS_ec_key_precompute_mult
322 #define EC_KEY_set_asn1_flag FIPS_ec_key_set_asn1_flag
323 #define EC_KEY_set_conv_form FIPS_ec_key_set_conv_form
324 #define EC_KEY_set_enc_flags FIPS_ec_key_set_enc_flags
325 #define EC_KEY_set_flags FIPS_ec_key_set_flags
326 #define EC_KEY_clear_flags FIPS_ec_key_clear_flags
327 #define EC_KEY_get_flags FIPS_ec_key_get_flags
328 #define EC_KEY_set_group FIPS_ec_key_set_group
329 #define EC_KEY_set_private_key FIPS_ec_key_set_private_key
330 #define EC_KEY_set_public_key FIPS_ec_key_set_public_key
331 #define EC_KEY_set_public_key_affine_coordinates FIPS_ec_key_set_public_key_affine_coordinates
332 #define EC_KEY_up_ref FIPS_ec_key_up_ref
333 #define EC_METHOD_get_field_type FIPS_ec_method_get_field_type
334 #define EC_POINT_add fips_ec_point_add
335 #define EC_POINT_clear_free FIPS_ec_point_clear_free
336 #define EC_POINT_cmp fips_ec_point_cmp
337 #define EC_POINT_copy fips_ec_point_copy
338 #define EC_POINT_dbl fips_ec_point_dbl
339 #define EC_POINT_dup fips_ec_point_dup
340 #define EC_POINT_free FIPS_ec_point_free
341 #define EC_POINT_get_Jprojective_coordinates_GFp FIPS_ec_point_get_jprojective_coordinates_gfp
342 #define EC_POINT_get_affine_coordinates_GF2m FIPS_ec_point_get_affine_coordinates_gf2m
343 #define EC_POINT_get_affine_coordinates_GFp FIPS_ec_point_get_affine_coordinates_gfp
344 #define EC_POINT_invert fips_ec_point_invert
345 #define EC_POINT_is_at_infinity FIPS_ec_point_is_at_infinity
346 #define EC_POINT_is_on_curve FIPS_ec_point_is_on_curve
347 #define EC_POINT_make_affine FIPS_ec_point_make_affine
348 #define EC_POINT_method_of FIPS_ec_point_method_of
349 #define EC_POINT_mul FIPS_ec_point_mul
350 #define EC_POINT_new FIPS_ec_point_new
351 #define EC_POINT_set_Jprojective_coordinates_GFp fips_ec_point_set_jprojective_coordinates_gfp
352 #define EC_POINT_set_affine_coordinates_GF2m fips_ec_point_set_affine_coordinates_gf2m
353 #define EC_POINT_set_affine_coordinates_GFp fips_ec_point_set_affine_coordinates_gfp
354 #define EC_POINT_set_to_infinity FIPS_ec_point_set_to_infinity
355 #define EC_POINTs_make_affine FIPS_ec_points_make_affine
356 #define EC_POINTs_mul fips_ec_points_mul
357 #define EC_get_builtin_curves FIPS_ec_get_builtin_curves
358 #define EVP_aes_128_cbc FIPS_evp_aes_128_cbc
359 #define EVP_aes_128_ccm FIPS_evp_aes_128_ccm
360 #define EVP_aes_128_cfb1 FIPS_evp_aes_128_cfb1
361 #define EVP_aes_128_cfb128 FIPS_evp_aes_128_cfb128
362 #define EVP_aes_128_cfb8 FIPS_evp_aes_128_cfb8
363 #define EVP_aes_128_ctr FIPS_evp_aes_128_ctr
364 #define EVP_aes_128_ecb FIPS_evp_aes_128_ecb
365 #define EVP_aes_128_gcm FIPS_evp_aes_128_gcm
366 #define EVP_aes_128_ofb FIPS_evp_aes_128_ofb
367 #define EVP_aes_128_xts FIPS_evp_aes_128_xts
368 #define EVP_aes_192_cbc FIPS_evp_aes_192_cbc
369 #define EVP_aes_192_ccm FIPS_evp_aes_192_ccm
370 #define EVP_aes_192_cfb1 FIPS_evp_aes_192_cfb1
371 #define EVP_aes_192_cfb128 FIPS_evp_aes_192_cfb128
372 #define EVP_aes_192_cfb8 FIPS_evp_aes_192_cfb8
373 #define EVP_aes_192_ctr FIPS_evp_aes_192_ctr
374 #define EVP_aes_192_ecb FIPS_evp_aes_192_ecb
375 #define EVP_aes_192_gcm FIPS_evp_aes_192_gcm
376 #define EVP_aes_192_ofb FIPS_evp_aes_192_ofb
377 #define EVP_aes_256_cbc FIPS_evp_aes_256_cbc
378 #define EVP_aes_256_ccm FIPS_evp_aes_256_ccm
379 #define EVP_aes_256_cfb1 FIPS_evp_aes_256_cfb1
380 #define EVP_aes_256_cfb128 FIPS_evp_aes_256_cfb128
381 #define EVP_aes_256_cfb8 FIPS_evp_aes_256_cfb8
382 #define EVP_aes_256_ctr FIPS_evp_aes_256_ctr
383 #define EVP_aes_256_ecb FIPS_evp_aes_256_ecb
384 #define EVP_aes_256_gcm FIPS_evp_aes_256_gcm
385 #define EVP_aes_256_ofb FIPS_evp_aes_256_ofb
386 #define EVP_aes_256_xts FIPS_evp_aes_256_xts
387 #define EVP_des_ede FIPS_evp_des_ede
388 #define EVP_des_ede3 FIPS_evp_des_ede3
389 #define EVP_des_ede3_cbc FIPS_evp_des_ede3_cbc
390 #define EVP_des_ede3_cfb1 FIPS_evp_des_ede3_cfb1
391 #define EVP_des_ede3_cfb64 FIPS_evp_des_ede3_cfb64
392 #define EVP_des_ede3_cfb8 FIPS_evp_des_ede3_cfb8
393 #define EVP_des_ede3_ecb FIPS_evp_des_ede3_ecb
394 #define EVP_des_ede3_ofb FIPS_evp_des_ede3_ofb
395 #define EVP_des_ede_cbc FIPS_evp_des_ede_cbc
396 #define EVP_des_ede_cfb64 FIPS_evp_des_ede_cfb64
397 #define EVP_des_ede_ecb FIPS_evp_des_ede_ecb
398 #define EVP_des_ede_ofb FIPS_evp_des_ede_ofb
399 #define EVP_enc_null FIPS_evp_enc_null
400 #define EVP_sha1 FIPS_evp_sha1
401 #define EVP_dss FIPS_evp_dss
402 #define EVP_dss1 FIPS_evp_dss1
403 #define EVP_ecdsa FIPS_evp_ecdsa
404 #define EVP_sha224 FIPS_evp_sha224
405 #define EVP_sha256 FIPS_evp_sha256
406 #define EVP_sha384 FIPS_evp_sha384
407 #define EVP_sha512 FIPS_evp_sha512
408 #define HMAC FIPS_hmac
409 #define HMAC_CTX_cleanup FIPS_hmac_ctx_cleanup
410 #define HMAC_CTX_copy FIPS_hmac_ctx_copy
411 #define HMAC_CTX_init FIPS_hmac_ctx_init
412 #define HMAC_CTX_set_flags FIPS_hmac_ctx_set_flags
413 #define HMAC_Final FIPS_hmac_final
414 #define HMAC_Init FIPS_hmac_init
415 #define HMAC_Init_ex FIPS_hmac_init_ex
416 #define HMAC_Update FIPS_hmac_update
417 #define OPENSSL_NONPIC_relocated fips_openssl_nonpic_relocated
418 #define OPENSSL_ia32cap_loc fips_openssl_ia32cap_loc
419 #define OPENSSL_isservice fips_openssl_isservice
420 #define OPENSSL_issetugid fips_openssl_issetugid
421 #define OPENSSL_showfatal FIPS_openssl_showfatal
422 #define OPENSSL_stderr FIPS_openssl_stderr
423 #define OpenSSLDie FIPS_openssldie
424 #define PKCS1_MGF1 fips_pkcs1_mgf1
425 #define RSA_PKCS1_SSLeay FIPS_rsa_pkcs1_ssleay
426 #define RSA_X931_derive_ex FIPS_rsa_x931_derive_ex
427 #define RSA_X931_generate_key_ex FIPS_rsa_x931_generate_key_ex
428 #define RSA_X931_hash_id fips_rsa_x931_hash_id
429 #define RSA_blinding_off FIPS_rsa_blinding_off
430 #define RSA_blinding_on FIPS_rsa_blinding_on
431 #define RSA_flags FIPS_rsa_flags
432 #define RSA_generate_key_ex FIPS_rsa_generate_key_ex
433 #define RSA_padding_add_PKCS1_OAEP fips_rsa_padding_add_pkcs1_oaep
434 #define RSA_padding_add_PKCS1_PSS fips_rsa_padding_add_pkcs1_pss
435 #define RSA_padding_add_PKCS1_PSS_mgf1 fips_rsa_padding_add_pkcs1_pss_mgf1
436 #define RSA_padding_add_PKCS1_type_1 fips_rsa_padding_add_pkcs1_type_1
437 #define RSA_padding_add_PKCS1_type_2 fips_rsa_padding_add_pkcs1_type_2
438 #define RSA_padding_add_SSLv23 fips_rsa_padding_add_sslv23
439 #define RSA_padding_add_X931 fips_rsa_padding_add_x931
440 #define RSA_padding_add_none fips_rsa_padding_add_none
441 #define RSA_padding_check_PKCS1_OAEP fips_rsa_padding_check_pkcs1_oaep
442 #define RSA_padding_check_PKCS1_type_1 fips_rsa_padding_check_pkcs1_type_1
443 #define RSA_padding_check_PKCS1_type_2 fips_rsa_padding_check_pkcs1_type_2
444 #define RSA_padding_check_SSLv23 fips_rsa_padding_check_sslv23
445 #define RSA_padding_check_X931 fips_rsa_padding_check_x931
446 #define RSA_padding_check_none fips_rsa_padding_check_none
447 #define RSA_private_decrypt FIPS_rsa_private_decrypt
448 #define RSA_private_encrypt FIPS_rsa_private_encrypt
449 #define RSA_public_decrypt FIPS_rsa_public_decrypt
450 #define RSA_public_encrypt FIPS_rsa_public_encrypt
451 #define RSA_setup_blinding fips_rsa_setup_blinding
452 #define RSA_size FIPS_rsa_size
453 #define RSA_verify_PKCS1_PSS fips_rsa_verify_pkcs1_pss
454 #define RSA_verify_PKCS1_PSS_mgf1 fips_rsa_verify_pkcs1_pss_mgf1
455 #define SHA1_Final fips_sha1_final
456 #define SHA1_Init fips_sha1_init
457 #define SHA1_Transform fips_sha1_transform
458 #define SHA1_Update fips_sha1_update
459 #define SHA1_version fips_sha1_version
460 #define SHA224 fips_sha224
461 #define SHA224_Final fips_sha224_final
462 #define SHA224_Init fips_sha224_init
463 #define SHA224_Update fips_sha224_update
464 #define SHA256_Final fips_sha256_final
465 #define SHA256_Init fips_sha256_init
466 #define SHA256_Transform fips_sha256_transform
467 #define SHA256_Update fips_sha256_update
468 #define SHA256_version fips_sha256_version
469 #define SHA384 fips_sha384
470 #define SHA384_Final fips_sha384_final
471 #define SHA384_Init fips_sha384_init
472 #define SHA384_Update fips_sha384_update
473 #define SHA512_Final fips_sha512_final
474 #define SHA512_Init fips_sha512_init
475 #define SHA512_Transform fips_sha512_transform
476 #define SHA512_Update fips_sha512_update
477 #define SHA512_version fips_sha512_version
478 #define _shadow_DES_check_key fips__shadow_des_check_key
479 #define bn_add_part_words fips_bn_add_part_words
480 #define bn_cmp_part_words fips_bn_cmp_part_words
481 #define bn_cmp_words fips_bn_cmp_words
482 #define bn_dup_expand fips_bn_dup_expand
483 #define bn_expand2 fips_bn_expand2
484 #define bn_mul_high fips_bn_mul_high
485 #define bn_mul_low_normal fips_bn_mul_low_normal
486 #define bn_mul_low_recursive fips_bn_mul_low_recursive
487 #define bn_mul_normal fips_bn_mul_normal
488 #define bn_mul_part_recursive fips_bn_mul_part_recursive
489 #define bn_mul_recursive fips_bn_mul_recursive
490 #define bn_sqr_normal fips_bn_sqr_normal
491 #define bn_sqr_recursive fips_bn_sqr_recursive
492 #define dsa_builtin_paramgen fips_dsa_builtin_paramgen
493 #define dsa_builtin_paramgen2 fips_dsa_builtin_paramgen2
494 #define dsa_paramgen_check_g fips_dsa_paramgen_check_g
495 #define ec_GF2m_have_precompute_mult fips_ec_gf2m_have_precompute_mult
496 #define ec_GF2m_precompute_mult fips_ec_gf2m_precompute_mult
497 #define ec_GF2m_simple_add fips_ec_gf2m_simple_add
498 #define ec_GF2m_simple_cmp fips_ec_gf2m_simple_cmp
499 #define ec_GF2m_simple_dbl fips_ec_gf2m_simple_dbl
500 #define ec_GF2m_simple_field_div fips_ec_gf2m_simple_field_div
501 #define ec_GF2m_simple_field_mul fips_ec_gf2m_simple_field_mul
502 #define ec_GF2m_simple_field_sqr fips_ec_gf2m_simple_field_sqr
503 #define ec_GF2m_simple_group_check_discriminant fips_ec_gf2m_simple_group_check_discriminant
504 #define ec_GF2m_simple_group_clear_finish fips_ec_gf2m_simple_group_clear_finish
505 #define ec_GF2m_simple_group_copy fips_ec_gf2m_simple_group_copy
506 #define ec_GF2m_simple_group_finish fips_ec_gf2m_simple_group_finish
507 #define ec_GF2m_simple_group_get_curve fips_ec_gf2m_simple_group_get_curve
508 #define ec_GF2m_simple_group_get_degree fips_ec_gf2m_simple_group_get_degree
509 #define ec_GF2m_simple_group_init fips_ec_gf2m_simple_group_init
510 #define ec_GF2m_simple_group_set_curve fips_ec_gf2m_simple_group_set_curve
511 #define ec_GF2m_simple_invert fips_ec_gf2m_simple_invert
512 #define ec_GF2m_simple_is_at_infinity fips_ec_gf2m_simple_is_at_infinity
513 #define ec_GF2m_simple_is_on_curve fips_ec_gf2m_simple_is_on_curve
514 #define ec_GF2m_simple_make_affine fips_ec_gf2m_simple_make_affine
515 #define ec_GF2m_simple_mul fips_ec_gf2m_simple_mul
516 #define ec_GF2m_simple_point_clear_finish fips_ec_gf2m_simple_point_clear_finish
517 #define ec_GF2m_simple_point_copy fips_ec_gf2m_simple_point_copy
518 #define ec_GF2m_simple_point_finish fips_ec_gf2m_simple_point_finish
519 #define ec_GF2m_simple_point_get_affine_coordinates fips_ec_gf2m_simple_point_get_affine_coordinates
520 #define ec_GF2m_simple_point_init fips_ec_gf2m_simple_point_init
521 #define ec_GF2m_simple_point_set_affine_coordinates fips_ec_gf2m_simple_point_set_affine_coordinates
522 #define ec_GF2m_simple_point_set_to_infinity fips_ec_gf2m_simple_point_set_to_infinity
523 #define ec_GF2m_simple_points_make_affine fips_ec_gf2m_simple_points_make_affine
524 #define ec_GFp_mont_field_decode fips_ec_gfp_mont_field_decode
525 #define ec_GFp_mont_field_encode fips_ec_gfp_mont_field_encode
526 #define ec_GFp_mont_field_mul fips_ec_gfp_mont_field_mul
527 #define ec_GFp_mont_field_set_to_one fips_ec_gfp_mont_field_set_to_one
528 #define ec_GFp_mont_field_sqr fips_ec_gfp_mont_field_sqr
529 #define ec_GFp_mont_group_clear_finish fips_ec_gfp_mont_group_clear_finish
530 #define ec_GFp_mont_group_copy fips_ec_gfp_mont_group_copy
531 #define ec_GFp_mont_group_finish fips_ec_gfp_mont_group_finish
532 #define ec_GFp_mont_group_init fips_ec_gfp_mont_group_init
533 #define ec_GFp_mont_group_set_curve fips_ec_gfp_mont_group_set_curve
534 #define ec_GFp_nist_field_mul fips_ec_gfp_nist_field_mul
535 #define ec_GFp_nist_field_sqr fips_ec_gfp_nist_field_sqr
536 #define ec_GFp_nist_group_copy fips_ec_gfp_nist_group_copy
537 #define ec_GFp_nist_group_set_curve fips_ec_gfp_nist_group_set_curve
538 #define ec_GFp_simple_add fips_ec_gfp_simple_add
539 #define ec_GFp_simple_cmp fips_ec_gfp_simple_cmp
540 #define ec_GFp_simple_dbl fips_ec_gfp_simple_dbl
541 #define ec_GFp_simple_field_mul fips_ec_gfp_simple_field_mul
542 #define ec_GFp_simple_field_sqr fips_ec_gfp_simple_field_sqr
543 #define ec_GFp_simple_get_Jprojective_coordinates_GFp fips_ec_gfp_simple_get_jprojective_coordinates_gfp
544 #define ec_GFp_simple_group_check_discriminant fips_ec_gfp_simple_group_check_discriminant
545 #define ec_GFp_simple_group_clear_finish fips_ec_gfp_simple_group_clear_finish
546 #define ec_GFp_simple_group_copy fips_ec_gfp_simple_group_copy
547 #define ec_GFp_simple_group_finish fips_ec_gfp_simple_group_finish
548 #define ec_GFp_simple_group_get_curve fips_ec_gfp_simple_group_get_curve
549 #define ec_GFp_simple_group_get_degree fips_ec_gfp_simple_group_get_degree
550 #define ec_GFp_simple_group_init fips_ec_gfp_simple_group_init
551 #define ec_GFp_simple_group_set_curve fips_ec_gfp_simple_group_set_curve
552 #define ec_GFp_simple_invert fips_ec_gfp_simple_invert
553 #define ec_GFp_simple_is_at_infinity fips_ec_gfp_simple_is_at_infinity
554 #define ec_GFp_simple_is_on_curve fips_ec_gfp_simple_is_on_curve
555 #define ec_GFp_simple_make_affine fips_ec_gfp_simple_make_affine
556 #define ec_GFp_simple_point_clear_finish fips_ec_gfp_simple_point_clear_finish
557 #define ec_GFp_simple_point_copy fips_ec_gfp_simple_point_copy
558 #define ec_GFp_simple_point_finish fips_ec_gfp_simple_point_finish
559 #define ec_GFp_simple_point_get_affine_coordinates fips_ec_gfp_simple_point_get_affine_coordinates
560 #define ec_GFp_simple_point_init fips_ec_gfp_simple_point_init
561 #define ec_GFp_simple_point_set_affine_coordinates fips_ec_gfp_simple_point_set_affine_coordinates
562 #define ec_GFp_simple_point_set_to_infinity fips_ec_gfp_simple_point_set_to_infinity
563 #define ec_GFp_simple_points_make_affine fips_ec_gfp_simple_points_make_affine
564 #define ec_GFp_simple_set_Jprojective_coordinates_GFp fips_ec_gfp_simple_set_jprojective_coordinates_gfp
565 #define ec_wNAF_have_precompute_mult fips_ec_wnaf_have_precompute_mult
566 #define ec_wNAF_mul fips_ec_wnaf_mul
567 #define ec_wNAF_precompute_mult fips_ec_wnaf_precompute_mult
568 #define int_bn_mod_inverse fips_int_bn_mod_inverse
569 #define cleanse_ctr fips_cleanse_ctr
570 #define DH_compute_key_padded FIPS_dh_compute_key_padded
571 #define ECDH_OpenSSL FIPS_ecdh_openssl
572 #define ECDH_compute_key FIPS_ecdh_compute_key
573
574 #define CMAC_CTX_cleanup FIPS_cmac_ctx_cleanup
575 #define CMAC_CTX_copy FIPS_cmac_ctx_copy
576 #define CMAC_CTX_free FIPS_cmac_ctx_free
577 #define CMAC_CTX_get0_cipher_ctx FIPS_cmac_ctx_get0_cipher_ctx
578 #define CMAC_CTX_new FIPS_cmac_ctx_new
579 #define CMAC_Init FIPS_cmac_init
580 #define CMAC_Update FIPS_cmac_update
581 #define CMAC_Final FIPS_cmac_final
582 #define CMAC_resume FIPS_cmac_resume
583
584 /* assembler symbols */
585 #define gcm_gmult_4bit_x86 fips_gcm_gmult_4bit_x86
586 #define gcm_ghash_4bit_x86 fips_gcm_ghash_4bit_x86
587 #define AES_cbc_encrypt fips_aes_cbc_encrypt
588 #define AES_decrypt fips_aes_decrypt
589 #define AES_encrypt fips_aes_encrypt
590 #define AES_set_decrypt_key fips_aes_set_decrypt_key
591 #define AES_set_encrypt_key fips_aes_set_encrypt_key
592 #define BN_from_montgomery fips_bn_from_montgomery
593 #define BN_num_bits_word FIPS_bn_num_bits_word
594 #define DES_SPtrans fips_des_sptrans
595 #define DES_decrypt3 fips_des_decrypt3
596 #define DES_ede3_cbc_encrypt fips_des_ede3_cbc_encrypt
597 #define DES_encrypt1 fips_des_encrypt1
598 #define DES_encrypt2 fips_des_encrypt2
599 #define DES_encrypt3 fips_des_encrypt3
600 #define DES_ncbc_encrypt fips_des_ncbc_encrypt
601 #define OPENSSL_altivec_probe fips_openssl_altivec_probe
602 #define OPENSSL_atomic_add fips_openssl_atomic_add
603 #define OPENSSL_cleanse FIPS_openssl_cleanse
604 #define OPENSSL_cpuid_setup fips_openssl_cpuid_setup
605 #define OPENSSL_ia32_cpuid fips_openssl_ia32_cpuid
606 #define OPENSSL_ia32cap_P fips_openssl_ia32cap_p
607 #define OPENSSL_instrument_bus fips_openssl_instrument_bus
608 #define OPENSSL_instrument_bus2 fips_openssl_instrument_bus2
609 #define OPENSSL_ppc64_probe fips_openssl_ppc64_probe
610 #define OPENSSL_rdtsc fips_openssl_rdtsc
611 #define OPENSSL_wipe_cpu fips_openssl_wipe_cpu
612 #define SHA256 fips_sha256
613 #define SHA512 fips_sha512
614 #define aesni_ccm64_decrypt_blocks fips_aesni_ccm64_decrypt_blocks
615 #define aesni_ccm64_encrypt_blocks fips_aesni_ccm64_encrypt_blocks
616 #define aesni_ctr32_encrypt_blocks fips_aesni_ctr32_encrypt_blocks
617 #define aesni_ecb_encrypt fips_aesni_ecb_encrypt
618 #define aesni_encrypt fips_aesni_encrypt
619 #define bn_add_words fips_bn_add_words
620 #define bn_div_words fips_bn_div_words
621 #define bn_mul_add_words fips_bn_mul_add_words
622 #define bn_mul_comba4 fips_bn_mul_comba4
623 #define bn_mul_comba8 fips_bn_mul_comba8
624 #define bn_mul_mont fips_bn_mul_mont
625 #define bn_sqr_mont fips_bn_sqr_mont
626 #define bn_mul_mont_fpu64 fips_bn_mul_mont_fpu64
627 #define bn_mul_mont_int fips_bn_mul_mont_int
628 #define bn_mul_words fips_bn_mul_words
629 #define bn_sqr_comba4 fips_bn_sqr_comba4
630 #define bn_sqr_comba8 fips_bn_sqr_comba8
631 #define bn_sqr_words fips_bn_sqr_words
632 #define bn_sub_part_words fips_bn_sub_part_words
633 #define bn_sub_words fips_bn_sub_words
634 #define fcrypt_body fips_fcrypt_body
635 #define gcm_ghash_4bit fips_gcm_ghash_4bit
636 #define gcm_ghash_clmul fips_gcm_ghash_clmul
637 #define gcm_gmult_4bit fips_gcm_gmult_4bit
638 #define gcm_gmult_clmul fips_gcm_gmult_clmul
639 #define gcm_init_clmul fips_gcm_init_clmul
640 #define sha1_block_data_order fips_sha1_block_data_order
641 #define sha256_block_data_order fips_sha256_block_data_order
642 #define sha512_block_data_order fips_sha512_block_data_order
643 #define gcm_gmult_4bit_mmx fips_gcm_gmult_4bit_mmx
644 #define gcm_ghash_4bit_mmx fips_gcm_ghash_4bit_mmx
645 #define OPENSSL_far_spin fips_openssl_far_spin
646 #define OPENSSL_indirect_call fips_openssl_indirect_call
647 #define OPENSSL_instrument_halt fips_openssl_instrument_halt
648 #define OPENSSL_armcap fips_openssl_armcap
649 #define aesni_cbc_encrypt fips_aesni_cbc_encrypt
650 #define aesni_decrypt fips_aesni_decrypt
651 #define aesni_set_decrypt_key fips_aesni_set_decrypt_key
652 #define aesni_set_encrypt_key fips_aesni_set_encrypt_key
653 #define bn_GF2m_mul_2x2 fips_bn_GF2m_mul_2x2
654 #define gcm_ghash_neon fips_gcm_ghash_neon
655 #define gcm_gmult_neon fips_gcm_gmult_neon
656 #define aesni_xts_decrypt fips_aesni_xts_decrypt
657 #define aesni_xts_encrypt fips_aesni_xts_encrypt
658 #define OPENSSL_ia32_rdrand fips_openssl_ia32_rdrand
659 #define OPENSSL_armcap_P fips_openssl_armcap_P
660 #define _armv7_neon_probe _fips_armv7_neon_probe
661 #define _armv7_tick _fips_armv7_tick
662 #define _sparcv9_rdtick _fips_sparcv9_rdtick
663 #define _sparcv9_vis1_probe _fips_sparcv9_vis1_probe
664 #define _sparcv9_vis2_probe _fips_sparcv9_vis2_probe
665 #define _sparcv9_fmadd_probe _fips_sparcv9_fmadd_probe
666 #define _sparcv9_vis1_instrument _fips_sparcv9_vis1_instrument
667 #define bn_mul_mont_gather5 fips_bn_mul_mont_gather5
668 #define bn_scatter5 fips_bn_scatter5
669 #define bn_gather5 fips_bn_gather5
670
671 #if defined(_MSC_VER)
672 # pragma const_seg("fipsro$b")
673 # pragma const_seg()
674 # define __fips_constseg __declspec(allocate("fipsro$b"))
675 #else
676 # define __fips_constseg
677 #endif