/src/boringssl/crypto/fipsmodule/delocate.h
Line | Count | Source |
1 | | /* Copyright (c) 2017, Google Inc. |
2 | | * |
3 | | * Permission to use, copy, modify, and/or distribute this software for any |
4 | | * purpose with or without fee is hereby granted, provided that the above |
5 | | * copyright notice and this permission notice appear in all copies. |
6 | | * |
7 | | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
8 | | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
9 | | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY |
10 | | * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
11 | | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION |
12 | | * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN |
13 | | * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ |
14 | | |
15 | | #ifndef OPENSSL_HEADER_FIPSMODULE_DELOCATE_H |
16 | | #define OPENSSL_HEADER_FIPSMODULE_DELOCATE_H |
17 | | |
18 | | #include <openssl/base.h> |
19 | | |
20 | | #include "../internal.h" |
21 | | |
22 | | |
23 | | #if !defined(BORINGSSL_SHARED_LIBRARY) && defined(BORINGSSL_FIPS) && \ |
24 | | !defined(OPENSSL_ASAN) && !defined(OPENSSL_MSAN) |
25 | | #define DEFINE_BSS_GET(type, name) \ |
26 | | static type name __attribute__((used)); \ |
27 | | type *name##_bss_get(void) __attribute__((const)); |
28 | | // For FIPS builds we require that CRYPTO_ONCE_INIT be zero. |
29 | | #define DEFINE_STATIC_ONCE(name) DEFINE_BSS_GET(CRYPTO_once_t, name) |
30 | | // For FIPS builds we require that CRYPTO_MUTEX_INIT be zero. |
31 | | #define DEFINE_STATIC_MUTEX(name) DEFINE_BSS_GET(CRYPTO_MUTEX, name) |
32 | | // For FIPS builds we require that CRYPTO_EX_DATA_CLASS_INIT be zero. |
33 | | #define DEFINE_STATIC_EX_DATA_CLASS(name) \ |
34 | | DEFINE_BSS_GET(CRYPTO_EX_DATA_CLASS, name) |
35 | | #else |
36 | | #define DEFINE_BSS_GET(type, name) \ |
37 | | static type name; \ |
38 | 7.54k | static type *name##_bss_get(void) { return &name; } bcm.c:BN_value_one_storage_bss_get Line | Count | Source | 38 | 5.77k | static type *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aes_128_cbc_storage_bss_get Line | Count | Source | 38 | 5 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aes_128_ctr_storage_bss_get Line | Count | Source | 38 | 220 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aes_128_ofb_storage_bss_get Line | Count | Source | 38 | 55 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aes_128_gcm_storage_bss_get Line | Count | Source | 38 | 128 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aes_192_cbc_storage_bss_get Line | Count | Source | 38 | 46 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aes_192_ctr_storage_bss_get Line | Count | Source | 38 | 3 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aes_192_ofb_storage_bss_get Line | Count | Source | 38 | 5 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aes_192_gcm_storage_bss_get Line | Count | Source | 38 | 64 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aes_256_cbc_storage_bss_get Line | Count | Source | 38 | 42 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aes_256_ctr_storage_bss_get Line | Count | Source | 38 | 46 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aes_256_ofb_storage_bss_get Line | Count | Source | 38 | 170 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aes_256_gcm_storage_bss_get Line | Count | Source | 38 | 133 | static type *name##_bss_get(void) { return &name; } |
bcm.c:aes_128_ecb_generic_storage_bss_get Line | Count | Source | 38 | 203 | static type *name##_bss_get(void) { return &name; } |
bcm.c:aes_192_ecb_generic_storage_bss_get Line | Count | Source | 38 | 2 | static type *name##_bss_get(void) { return &name; } |
Unexecuted instantiation: bcm.c:aes_256_ecb_generic_storage_bss_get bcm.c:EVP_aead_aes_128_gcm_storage_bss_get Line | Count | Source | 38 | 4 | static type *name##_bss_get(void) { return &name; } |
Unexecuted instantiation: bcm.c:EVP_aead_aes_192_gcm_storage_bss_get bcm.c:EVP_aead_aes_256_gcm_storage_bss_get Line | Count | Source | 38 | 4 | static type *name##_bss_get(void) { return &name; } |
Unexecuted instantiation: bcm.c:EVP_aead_aes_128_gcm_randnonce_storage_bss_get Unexecuted instantiation: bcm.c:EVP_aead_aes_256_gcm_randnonce_storage_bss_get bcm.c:EVP_aead_aes_128_gcm_tls12_storage_bss_get Line | Count | Source | 38 | 4 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aead_aes_256_gcm_tls12_storage_bss_get Line | Count | Source | 38 | 4 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aead_aes_128_gcm_tls13_storage_bss_get Line | Count | Source | 38 | 4 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aead_aes_256_gcm_tls13_storage_bss_get Line | Count | Source | 38 | 4 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aead_aes_128_ccm_bluetooth_storage_bss_get Line | Count | Source | 38 | 4 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aead_aes_128_ccm_bluetooth_8_storage_bss_get Line | Count | Source | 38 | 4 | static type *name##_bss_get(void) { return &name; } |
Unexecuted instantiation: bcm.c:EVP_aead_aes_128_ccm_matter_storage_bss_get bcm.c:EVP_sha1_storage_bss_get Line | Count | Source | 38 | 9 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EVP_sha224_storage_bss_get Line | Count | Source | 38 | 4 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EVP_sha256_storage_bss_get Line | Count | Source | 38 | 136 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EVP_sha384_storage_bss_get Line | Count | Source | 38 | 4 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EVP_sha512_storage_bss_get Line | Count | Source | 38 | 4 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EVP_sha512_256_storage_bss_get Line | Count | Source | 38 | 4 | static type *name##_bss_get(void) { return &name; } |
Unexecuted instantiation: bcm.c:md_pctx_ops_storage_bss_get bcm.c:EC_group_p224_storage_bss_get Line | Count | Source | 38 | 51 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EC_group_p256_storage_bss_get Line | Count | Source | 38 | 107 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EC_group_p384_storage_bss_get Line | Count | Source | 38 | 145 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EC_group_p521_storage_bss_get Line | Count | Source | 38 | 110 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EC_GFp_mont_method_storage_bss_get Line | Count | Source | 38 | 6 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EC_GFp_nistp224_method_storage_bss_get Line | Count | Source | 38 | 4 | static type *name##_bss_get(void) { return &name; } |
bcm.c:EC_GFp_nistp256_method_storage_bss_get Line | Count | Source | 38 | 2 | static type *name##_bss_get(void) { return &name; } |
Unexecuted instantiation: bcm.c:g_small_factors_storage_bss_get Unexecuted instantiation: bcm.c:RSA_default_method_storage_bss_get bcm.c:aes_hw_128_ecb_storage_bss_get Line | Count | Source | 38 | 22 | static type *name##_bss_get(void) { return &name; } |
bcm.c:aes_hw_192_ecb_storage_bss_get Line | Count | Source | 38 | 3 | static type *name##_bss_get(void) { return &name; } |
Unexecuted instantiation: bcm.c:aes_hw_256_ecb_storage_bss_get bcm.c:EC_GFp_nistz256_method_storage_bss_get Line | Count | Source | 38 | 2 | static type *name##_bss_get(void) { return &name; } |
|
39 | | #define DEFINE_STATIC_ONCE(name) \ |
40 | | static CRYPTO_once_t name = CRYPTO_ONCE_INIT; \ |
41 | 7.47k | static CRYPTO_once_t *name##_bss_get(void) { return &name; } bcm.c:BN_value_one_once_bss_get Line | Count | Source | 41 | 5.77k | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aes_128_cbc_once_bss_get Line | Count | Source | 41 | 3 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aes_128_ctr_once_bss_get Line | Count | Source | 41 | 218 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aes_128_ofb_once_bss_get Line | Count | Source | 41 | 53 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aes_128_gcm_once_bss_get Line | Count | Source | 41 | 126 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aes_192_cbc_once_bss_get Line | Count | Source | 41 | 44 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aes_192_ctr_once_bss_get Line | Count | Source | 41 | 2 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aes_192_ofb_once_bss_get Line | Count | Source | 41 | 3 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aes_192_gcm_once_bss_get Line | Count | Source | 41 | 62 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aes_256_cbc_once_bss_get Line | Count | Source | 41 | 41 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aes_256_ctr_once_bss_get Line | Count | Source | 41 | 44 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aes_256_ofb_once_bss_get Line | Count | Source | 41 | 168 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aes_256_gcm_once_bss_get Line | Count | Source | 41 | 131 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:aes_128_ecb_generic_once_bss_get Line | Count | Source | 41 | 202 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:aes_192_ecb_generic_once_bss_get Line | Count | Source | 41 | 1 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
Unexecuted instantiation: bcm.c:aes_256_ecb_generic_once_bss_get bcm.c:EVP_aead_aes_128_gcm_once_bss_get Line | Count | Source | 41 | 2 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
Unexecuted instantiation: bcm.c:EVP_aead_aes_192_gcm_once_bss_get bcm.c:EVP_aead_aes_256_gcm_once_bss_get Line | Count | Source | 41 | 2 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
Unexecuted instantiation: bcm.c:EVP_aead_aes_128_gcm_randnonce_once_bss_get Unexecuted instantiation: bcm.c:EVP_aead_aes_256_gcm_randnonce_once_bss_get bcm.c:EVP_aead_aes_128_gcm_tls12_once_bss_get Line | Count | Source | 41 | 2 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aead_aes_256_gcm_tls12_once_bss_get Line | Count | Source | 41 | 2 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aead_aes_128_gcm_tls13_once_bss_get Line | Count | Source | 41 | 2 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aead_aes_256_gcm_tls13_once_bss_get Line | Count | Source | 41 | 2 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aead_aes_128_ccm_bluetooth_once_bss_get Line | Count | Source | 41 | 2 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EVP_aead_aes_128_ccm_bluetooth_8_once_bss_get Line | Count | Source | 41 | 2 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
Unexecuted instantiation: bcm.c:EVP_aead_aes_128_ccm_matter_once_bss_get bcm.c:EVP_sha1_once_bss_get Line | Count | Source | 41 | 7 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EVP_sha224_once_bss_get Line | Count | Source | 41 | 2 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EVP_sha256_once_bss_get Line | Count | Source | 41 | 134 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EVP_sha384_once_bss_get Line | Count | Source | 41 | 2 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EVP_sha512_once_bss_get Line | Count | Source | 41 | 2 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EVP_sha512_256_once_bss_get Line | Count | Source | 41 | 2 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
Unexecuted instantiation: bcm.c:md_pctx_ops_once_bss_get bcm.c:EC_group_p224_once_bss_get Line | Count | Source | 41 | 49 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EC_group_p256_once_bss_get Line | Count | Source | 41 | 105 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EC_group_p384_once_bss_get Line | Count | Source | 41 | 143 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EC_group_p521_once_bss_get Line | Count | Source | 41 | 108 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EC_GFp_mont_method_once_bss_get Line | Count | Source | 41 | 4 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EC_GFp_nistp224_method_once_bss_get Line | Count | Source | 41 | 2 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:EC_GFp_nistp256_method_once_bss_get Line | Count | Source | 41 | 1 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
Unexecuted instantiation: bcm.c:g_small_factors_once_bss_get Unexecuted instantiation: bcm.c:RSA_default_method_once_bss_get bcm.c:aes_hw_128_ecb_once_bss_get Line | Count | Source | 41 | 21 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
bcm.c:aes_hw_192_ecb_once_bss_get Line | Count | Source | 41 | 2 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
Unexecuted instantiation: bcm.c:aes_hw_256_ecb_once_bss_get bcm.c:EC_GFp_nistz256_method_once_bss_get Line | Count | Source | 41 | 1 | static CRYPTO_once_t *name##_bss_get(void) { return &name; } |
|
42 | | #define DEFINE_STATIC_MUTEX(name) \ |
43 | | static CRYPTO_MUTEX name = CRYPTO_MUTEX_INIT; \ |
44 | | static CRYPTO_MUTEX *name##_bss_get(void) { return &name; } |
45 | | #define DEFINE_STATIC_EX_DATA_CLASS(name) \ |
46 | | static CRYPTO_EX_DATA_CLASS name = CRYPTO_EX_DATA_CLASS_INIT; \ |
47 | 534 | static CRYPTO_EX_DATA_CLASS *name##_bss_get(void) { return &name; } bcm.c:g_ec_ex_data_class_bss_get Line | Count | Source | 47 | 534 | static CRYPTO_EX_DATA_CLASS *name##_bss_get(void) { return &name; } |
Unexecuted instantiation: bcm.c:g_rsa_ex_data_class_bss_get |
48 | | #endif |
49 | | |
50 | | #define DEFINE_DATA(type, name, accessor_decorations) \ |
51 | | DEFINE_BSS_GET(type, name##_storage) \ |
52 | | DEFINE_STATIC_ONCE(name##_once) \ |
53 | | static void name##_do_init(type *out); \ |
54 | 70 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
bcm.c:EVP_aes_128_cbc_init Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
bcm.c:EVP_aes_128_ctr_init Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
bcm.c:EVP_aes_128_ofb_init Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
bcm.c:EVP_aes_128_gcm_init Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
bcm.c:EVP_aes_192_cbc_init Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
bcm.c:EVP_aes_192_ctr_init Line | Count | Source | 54 | 1 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
bcm.c:EVP_aes_192_ofb_init Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
bcm.c:EVP_aes_192_gcm_init Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
bcm.c:EVP_aes_256_cbc_init Line | Count | Source | 54 | 1 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
bcm.c:EVP_aes_256_ctr_init Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
bcm.c:EVP_aes_256_ofb_init Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
bcm.c:EVP_aes_256_gcm_init Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
bcm.c:aes_128_ecb_generic_init Line | Count | Source | 54 | 1 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
bcm.c:aes_192_ecb_generic_init Line | Count | Source | 54 | 1 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
Unexecuted instantiation: bcm.c:aes_256_ecb_generic_init bcm.c:EVP_aead_aes_128_gcm_init Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
Unexecuted instantiation: bcm.c:EVP_aead_aes_192_gcm_init bcm.c:EVP_aead_aes_256_gcm_init Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
Unexecuted instantiation: bcm.c:EVP_aead_aes_128_gcm_randnonce_init Unexecuted instantiation: bcm.c:EVP_aead_aes_256_gcm_randnonce_init bcm.c:EVP_aead_aes_128_gcm_tls12_init Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
bcm.c:EVP_aead_aes_256_gcm_tls12_init Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
bcm.c:EVP_aead_aes_128_gcm_tls13_init Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
bcm.c:EVP_aead_aes_256_gcm_tls13_init Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
bcm.c:EVP_aead_aes_128_ccm_bluetooth_init Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
bcm.c:EVP_aead_aes_128_ccm_bluetooth_8_init Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
Unexecuted instantiation: bcm.c:EVP_aead_aes_128_ccm_matter_init Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
bcm.c:EVP_sha512_256_init Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
Unexecuted instantiation: bcm.c:md_pctx_ops_init Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
bcm.c:EC_GFp_mont_method_init Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
bcm.c:EC_GFp_nistp224_method_init Line | Count | Source | 54 | 2 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
bcm.c:EC_GFp_nistp256_method_init Line | Count | Source | 54 | 1 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
Unexecuted instantiation: bcm.c:g_small_factors_init Unexecuted instantiation: bcm.c:RSA_default_method_init bcm.c:aes_hw_128_ecb_init Line | Count | Source | 54 | 1 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
bcm.c:aes_hw_192_ecb_init Line | Count | Source | 54 | 1 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
Unexecuted instantiation: bcm.c:aes_hw_256_ecb_init bcm.c:EC_GFp_nistz256_method_init Line | Count | Source | 54 | 1 | static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \ |
|
55 | 342k | accessor_decorations type *name(void) { \ |
56 | 342k | CRYPTO_once(name##_once_bss_get(), name##_init); \ |
57 | 342k | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ |
58 | 342k | * cast is needed. */ \ |
59 | 342k | return (const type *)name##_storage_bss_get(); \ |
60 | 342k | } \ Line | Count | Source | 55 | 338k | accessor_decorations type *name(void) { \ | 56 | 338k | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 338k | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 338k | * cast is needed. */ \ | 59 | 338k | return (const type *)name##_storage_bss_get(); \ | 60 | 338k | } \ |
Line | Count | Source | 55 | 83 | accessor_decorations type *name(void) { \ | 56 | 83 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 83 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 83 | * cast is needed. */ \ | 59 | 83 | return (const type *)name##_storage_bss_get(); \ | 60 | 83 | } \ |
Line | Count | Source | 55 | 251 | accessor_decorations type *name(void) { \ | 56 | 251 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 251 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 251 | * cast is needed. */ \ | 59 | 251 | return (const type *)name##_storage_bss_get(); \ | 60 | 251 | } \ |
Line | Count | Source | 55 | 65 | accessor_decorations type *name(void) { \ | 56 | 65 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 65 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 65 | * cast is needed. */ \ | 59 | 65 | return (const type *)name##_storage_bss_get(); \ | 60 | 65 | } \ |
Line | Count | Source | 55 | 204 | accessor_decorations type *name(void) { \ | 56 | 204 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 204 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 204 | * cast is needed. */ \ | 59 | 204 | return (const type *)name##_storage_bss_get(); \ | 60 | 204 | } \ |
Line | Count | Source | 55 | 83 | accessor_decorations type *name(void) { \ | 56 | 83 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 83 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 83 | * cast is needed. */ \ | 59 | 83 | return (const type *)name##_storage_bss_get(); \ | 60 | 83 | } \ |
Line | Count | Source | 55 | 59 | accessor_decorations type *name(void) { \ | 56 | 59 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 59 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 59 | * cast is needed. */ \ | 59 | 59 | return (const type *)name##_storage_bss_get(); \ | 60 | 59 | } \ |
Line | Count | Source | 55 | 41 | accessor_decorations type *name(void) { \ | 56 | 41 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 41 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 41 | * cast is needed. */ \ | 59 | 41 | return (const type *)name##_storage_bss_get(); \ | 60 | 41 | } \ |
Line | Count | Source | 55 | 79 | accessor_decorations type *name(void) { \ | 56 | 79 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 79 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 79 | * cast is needed. */ \ | 59 | 79 | return (const type *)name##_storage_bss_get(); \ | 60 | 79 | } \ |
Line | Count | Source | 55 | 45 | accessor_decorations type *name(void) { \ | 56 | 45 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 45 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 45 | * cast is needed. */ \ | 59 | 45 | return (const type *)name##_storage_bss_get(); \ | 60 | 45 | } \ |
Line | Count | Source | 55 | 82 | accessor_decorations type *name(void) { \ | 56 | 82 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 82 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 82 | * cast is needed. */ \ | 59 | 82 | return (const type *)name##_storage_bss_get(); \ | 60 | 82 | } \ |
Line | Count | Source | 55 | 193 | accessor_decorations type *name(void) { \ | 56 | 193 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 193 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 193 | * cast is needed. */ \ | 59 | 193 | return (const type *)name##_storage_bss_get(); \ | 60 | 193 | } \ |
Line | Count | Source | 55 | 138 | accessor_decorations type *name(void) { \ | 56 | 138 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 138 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 138 | * cast is needed. */ \ | 59 | 138 | return (const type *)name##_storage_bss_get(); \ | 60 | 138 | } \ |
Line | Count | Source | 55 | 2 | accessor_decorations type *name(void) { \ | 56 | 2 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 2 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 2 | * cast is needed. */ \ | 59 | 2 | return (const type *)name##_storage_bss_get(); \ | 60 | 2 | } \ |
Unexecuted instantiation: EVP_aead_aes_192_gcm Line | Count | Source | 55 | 2 | accessor_decorations type *name(void) { \ | 56 | 2 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 2 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 2 | * cast is needed. */ \ | 59 | 2 | return (const type *)name##_storage_bss_get(); \ | 60 | 2 | } \ |
Unexecuted instantiation: EVP_aead_aes_128_gcm_randnonce Unexecuted instantiation: EVP_aead_aes_256_gcm_randnonce EVP_aead_aes_128_gcm_tls12 Line | Count | Source | 55 | 2 | accessor_decorations type *name(void) { \ | 56 | 2 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 2 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 2 | * cast is needed. */ \ | 59 | 2 | return (const type *)name##_storage_bss_get(); \ | 60 | 2 | } \ |
EVP_aead_aes_256_gcm_tls12 Line | Count | Source | 55 | 2 | accessor_decorations type *name(void) { \ | 56 | 2 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 2 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 2 | * cast is needed. */ \ | 59 | 2 | return (const type *)name##_storage_bss_get(); \ | 60 | 2 | } \ |
EVP_aead_aes_128_gcm_tls13 Line | Count | Source | 55 | 2 | accessor_decorations type *name(void) { \ | 56 | 2 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 2 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 2 | * cast is needed. */ \ | 59 | 2 | return (const type *)name##_storage_bss_get(); \ | 60 | 2 | } \ |
EVP_aead_aes_256_gcm_tls13 Line | Count | Source | 55 | 2 | accessor_decorations type *name(void) { \ | 56 | 2 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 2 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 2 | * cast is needed. */ \ | 59 | 2 | return (const type *)name##_storage_bss_get(); \ | 60 | 2 | } \ |
EVP_aead_aes_128_ccm_bluetooth Line | Count | Source | 55 | 2 | accessor_decorations type *name(void) { \ | 56 | 2 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 2 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 2 | * cast is needed. */ \ | 59 | 2 | return (const type *)name##_storage_bss_get(); \ | 60 | 2 | } \ |
EVP_aead_aes_128_ccm_bluetooth_8 Line | Count | Source | 55 | 2 | accessor_decorations type *name(void) { \ | 56 | 2 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 2 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 2 | * cast is needed. */ \ | 59 | 2 | return (const type *)name##_storage_bss_get(); \ | 60 | 2 | } \ |
Unexecuted instantiation: EVP_aead_aes_128_ccm_matter Line | Count | Source | 55 | 11 | accessor_decorations type *name(void) { \ | 56 | 11 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 11 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 11 | * cast is needed. */ \ | 59 | 11 | return (const type *)name##_storage_bss_get(); \ | 60 | 11 | } \ |
Line | Count | Source | 55 | 6 | accessor_decorations type *name(void) { \ | 56 | 6 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 6 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 6 | * cast is needed. */ \ | 59 | 6 | return (const type *)name##_storage_bss_get(); \ | 60 | 6 | } \ |
Line | Count | Source | 55 | 138 | accessor_decorations type *name(void) { \ | 56 | 138 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 138 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 138 | * cast is needed. */ \ | 59 | 138 | return (const type *)name##_storage_bss_get(); \ | 60 | 138 | } \ |
Line | Count | Source | 55 | 6 | accessor_decorations type *name(void) { \ | 56 | 6 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 6 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 6 | * cast is needed. */ \ | 59 | 6 | return (const type *)name##_storage_bss_get(); \ | 60 | 6 | } \ |
Line | Count | Source | 55 | 6 | accessor_decorations type *name(void) { \ | 56 | 6 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 6 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 6 | * cast is needed. */ \ | 59 | 6 | return (const type *)name##_storage_bss_get(); \ | 60 | 6 | } \ |
Line | Count | Source | 55 | 6 | accessor_decorations type *name(void) { \ | 56 | 6 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 6 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 6 | * cast is needed. */ \ | 59 | 6 | return (const type *)name##_storage_bss_get(); \ | 60 | 6 | } \ |
Line | Count | Source | 55 | 49 | accessor_decorations type *name(void) { \ | 56 | 49 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 49 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 49 | * cast is needed. */ \ | 59 | 49 | return (const type *)name##_storage_bss_get(); \ | 60 | 49 | } \ |
Line | Count | Source | 55 | 105 | accessor_decorations type *name(void) { \ | 56 | 105 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 105 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 105 | * cast is needed. */ \ | 59 | 105 | return (const type *)name##_storage_bss_get(); \ | 60 | 105 | } \ |
Line | Count | Source | 55 | 143 | accessor_decorations type *name(void) { \ | 56 | 143 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 143 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 143 | * cast is needed. */ \ | 59 | 143 | return (const type *)name##_storage_bss_get(); \ | 60 | 143 | } \ |
Line | Count | Source | 55 | 108 | accessor_decorations type *name(void) { \ | 56 | 108 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 108 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 108 | * cast is needed. */ \ | 59 | 108 | return (const type *)name##_storage_bss_get(); \ | 60 | 108 | } \ |
Line | Count | Source | 55 | 1.46k | accessor_decorations type *name(void) { \ | 56 | 1.46k | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 1.46k | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 1.46k | * cast is needed. */ \ | 59 | 1.46k | return (const type *)name##_storage_bss_get(); \ | 60 | 1.46k | } \ |
Line | Count | Source | 55 | 2 | accessor_decorations type *name(void) { \ | 56 | 2 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 2 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 2 | * cast is needed. */ \ | 59 | 2 | return (const type *)name##_storage_bss_get(); \ | 60 | 2 | } \ |
Line | Count | Source | 55 | 1 | accessor_decorations type *name(void) { \ | 56 | 1 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 1 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 1 | * cast is needed. */ \ | 59 | 1 | return (const type *)name##_storage_bss_get(); \ | 60 | 1 | } \ |
Unexecuted instantiation: RSA_default_method bcm.c:aes_128_ecb_generic Line | Count | Source | 55 | 202 | accessor_decorations type *name(void) { \ | 56 | 202 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 202 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 202 | * cast is needed. */ \ | 59 | 202 | return (const type *)name##_storage_bss_get(); \ | 60 | 202 | } \ |
bcm.c:aes_192_ecb_generic Line | Count | Source | 55 | 1 | accessor_decorations type *name(void) { \ | 56 | 1 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 1 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 1 | * cast is needed. */ \ | 59 | 1 | return (const type *)name##_storage_bss_get(); \ | 60 | 1 | } \ |
Unexecuted instantiation: bcm.c:aes_256_ecb_generic Unexecuted instantiation: bcm.c:md_pctx_ops Unexecuted instantiation: bcm.c:g_small_factors Line | Count | Source | 55 | 353 | accessor_decorations type *name(void) { \ | 56 | 353 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 353 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 353 | * cast is needed. */ \ | 59 | 353 | return (const type *)name##_storage_bss_get(); \ | 60 | 353 | } \ |
Line | Count | Source | 55 | 21 | accessor_decorations type *name(void) { \ | 56 | 21 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 21 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 21 | * cast is needed. */ \ | 59 | 21 | return (const type *)name##_storage_bss_get(); \ | 60 | 21 | } \ |
Line | Count | Source | 55 | 2 | accessor_decorations type *name(void) { \ | 56 | 2 | CRYPTO_once(name##_once_bss_get(), name##_init); \ | 57 | 2 | /* See http://c-faq.com/ansi/constmismatch.html for why the following \ | 58 | 2 | * cast is needed. */ \ | 59 | 2 | return (const type *)name##_storage_bss_get(); \ | 60 | 2 | } \ |
Unexecuted instantiation: bcm.c:aes_hw_256_ecb |
61 | | static void name##_do_init(type *out) |
62 | | |
63 | | // DEFINE_METHOD_FUNCTION defines a function named |name| which returns a |
64 | | // method table of type const |type|*. In FIPS mode, to avoid rel.ro data, it |
65 | | // is split into a CRYPTO_once_t-guarded initializer in the module and |
66 | | // unhashed, non-module accessor functions to space reserved in the BSS. The |
67 | | // method table is initialized by a caller-supplied function which takes a |
68 | | // parameter named |out| of type |type|*. The caller should follow the macro |
69 | | // invocation with the body of this function: |
70 | | // |
71 | | // DEFINE_METHOD_FUNCTION(EVP_MD, EVP_md4) { |
72 | | // out->type = NID_md4; |
73 | | // out->md_size = MD4_DIGEST_LENGTH; |
74 | | // out->flags = 0; |
75 | | // out->init = md4_init; |
76 | | // out->update = md4_update; |
77 | | // out->final = md4_final; |
78 | | // out->block_size = 64; |
79 | | // out->ctx_size = sizeof(MD4_CTX); |
80 | | // } |
81 | | // |
82 | | // This mechanism does not use a static initializer because their execution |
83 | | // order is undefined. See FIPS.md for more details. |
84 | | #define DEFINE_METHOD_FUNCTION(type, name) DEFINE_DATA(type, name, const) |
85 | | |
86 | | #define DEFINE_LOCAL_DATA(type, name) DEFINE_DATA(type, name, static const) |
87 | | |
88 | | #endif // OPENSSL_HEADER_FIPSMODULE_DELOCATE_H |