| 1 |
#ifndef _PYTHON_HACL_NAMESPACES_H |
| 2 |
#define _PYTHON_HACL_NAMESPACES_H |
| 3 |
|
| 4 |
/* |
| 5 |
* C's excuse for namespaces: Use globally unique names to avoid linkage |
| 6 |
* conflicts with builds linking or dynamically loading other code potentially |
| 7 |
* using HACL* libraries. |
| 8 |
* |
| 9 |
* To make sure this is effective: cd Modules && nm -a *.o | grep Hacl |
| 10 |
*/ |
| 11 |
|
| 12 |
#define Hacl_Hash_SHA2_state_sha2_224_s python_hashlib_Hacl_Hash_SHA2_state_sha2_224_s |
| 13 |
#define Hacl_Hash_SHA2_state_sha2_224 python_hashlib_Hacl_Hash_SHA2_state_sha2_224 |
| 14 |
#define Hacl_Hash_SHA2_state_sha2_256 python_hashlib_Hacl_Hash_SHA2_state_sha2_256 |
| 15 |
#define Hacl_Hash_SHA2_state_sha2_384_s python_hashlib_Hacl_Hash_SHA2_state_sha2_384_s |
| 16 |
#define Hacl_Hash_SHA2_state_sha2_384 python_hashlib_Hacl_Hash_SHA2_state_sha2_384 |
| 17 |
#define Hacl_Hash_SHA2_state_sha2_512 python_hashlib_Hacl_Hash_SHA2_state_sha2_512 |
| 18 |
#define Hacl_Hash_SHA2_malloc_256 python_hashlib_Hacl_Hash_SHA2_malloc_256 |
| 19 |
#define Hacl_Hash_SHA2_malloc_224 python_hashlib_Hacl_Hash_SHA2_malloc_224 |
| 20 |
#define Hacl_Hash_SHA2_malloc_512 python_hashlib_Hacl_Hash_SHA2_malloc_512 |
| 21 |
#define Hacl_Hash_SHA2_malloc_384 python_hashlib_Hacl_Hash_SHA2_malloc_384 |
| 22 |
#define Hacl_Hash_SHA2_copy_256 python_hashlib_Hacl_Hash_SHA2_copy_256 |
| 23 |
#define Hacl_Hash_SHA2_copy_224 python_hashlib_Hacl_Hash_SHA2_copy_224 |
| 24 |
#define Hacl_Hash_SHA2_copy_512 python_hashlib_Hacl_Hash_SHA2_copy_512 |
| 25 |
#define Hacl_Hash_SHA2_copy_384 python_hashlib_Hacl_Hash_SHA2_copy_384 |
| 26 |
#define Hacl_Hash_SHA2_init_256 python_hashlib_Hacl_Hash_SHA2_init_256 |
| 27 |
#define Hacl_Hash_SHA2_init_224 python_hashlib_Hacl_Hash_SHA2_init_224 |
| 28 |
#define Hacl_Hash_SHA2_init_512 python_hashlib_Hacl_Hash_SHA2_init_512 |
| 29 |
#define Hacl_Hash_SHA2_init_384 python_hashlib_Hacl_Hash_SHA2_init_384 |
| 30 |
#define Hacl_SHA2_Scalar32_sha512_init python_hashlib_Hacl_SHA2_Scalar32_sha512_init |
| 31 |
#define Hacl_Hash_SHA2_update_256 python_hashlib_Hacl_Hash_SHA2_update_256 |
| 32 |
#define Hacl_Hash_SHA2_update_224 python_hashlib_Hacl_Hash_SHA2_update_224 |
| 33 |
#define Hacl_Hash_SHA2_update_512 python_hashlib_Hacl_Hash_SHA2_update_512 |
| 34 |
#define Hacl_Hash_SHA2_update_384 python_hashlib_Hacl_Hash_SHA2_update_384 |
| 35 |
#define Hacl_Hash_SHA2_digest_256 python_hashlib_Hacl_Hash_SHA2_digest_256 |
| 36 |
#define Hacl_Hash_SHA2_digest_224 python_hashlib_Hacl_Hash_SHA2_digest_224 |
| 37 |
#define Hacl_Hash_SHA2_digest_512 python_hashlib_Hacl_Hash_SHA2_digest_512 |
| 38 |
#define Hacl_Hash_SHA2_digest_384 python_hashlib_Hacl_Hash_SHA2_digest_384 |
| 39 |
#define Hacl_Hash_SHA2_free_256 python_hashlib_Hacl_Hash_SHA2_free_256 |
| 40 |
#define Hacl_Hash_SHA2_free_224 python_hashlib_Hacl_Hash_SHA2_free_224 |
| 41 |
#define Hacl_Hash_SHA2_free_512 python_hashlib_Hacl_Hash_SHA2_free_512 |
| 42 |
#define Hacl_Hash_SHA2_free_384 python_hashlib_Hacl_Hash_SHA2_free_384 |
| 43 |
#define Hacl_Hash_SHA2_sha256 python_hashlib_Hacl_Hash_SHA2_sha256 |
| 44 |
#define Hacl_Hash_SHA2_sha224 python_hashlib_Hacl_Hash_SHA2_sha224 |
| 45 |
#define Hacl_Hash_SHA2_sha512 python_hashlib_Hacl_Hash_SHA2_sha512 |
| 46 |
#define Hacl_Hash_SHA2_sha384 python_hashlib_Hacl_Hash_SHA2_sha384 |
| 47 |
|
| 48 |
#define Hacl_Hash_MD5_malloc python_hashlib_Hacl_Hash_MD5_malloc |
| 49 |
#define Hacl_Hash_MD5_init python_hashlib_Hacl_Hash_MD5_init |
| 50 |
#define Hacl_Hash_MD5_update python_hashlib_Hacl_Hash_MD5_update |
| 51 |
#define Hacl_Hash_MD5_digest python_hashlib_Hacl_Hash_MD5_digest |
| 52 |
#define Hacl_Hash_MD5_free python_hashlib_Hacl_Hash_MD5_free |
| 53 |
#define Hacl_Hash_MD5_copy python_hashlib_Hacl_Hash_MD5_copy |
| 54 |
#define Hacl_Hash_MD5_hash python_hashlib_Hacl_Hash_MD5_hash |
| 55 |
|
| 56 |
#define Hacl_Hash_SHA1_malloc python_hashlib_Hacl_Hash_SHA1_malloc |
| 57 |
#define Hacl_Hash_SHA1_init python_hashlib_Hacl_Hash_SHA1_init |
| 58 |
#define Hacl_Hash_SHA1_update python_hashlib_Hacl_Hash_SHA1_update |
| 59 |
#define Hacl_Hash_SHA1_digest python_hashlib_Hacl_Hash_SHA1_digest |
| 60 |
#define Hacl_Hash_SHA1_free python_hashlib_Hacl_Hash_SHA1_free |
| 61 |
#define Hacl_Hash_SHA1_copy python_hashlib_Hacl_Hash_SHA1_copy |
| 62 |
#define Hacl_Hash_SHA1_hash python_hashlib_Hacl_Hash_SHA1_hash |
| 63 |
|
| 64 |
#define Hacl_Hash_SHA3_update_last_sha3 python_hashlib_Hacl_Hash_SHA3_update_last_sha3 |
| 65 |
#define Hacl_Hash_SHA3_update_multi_sha3 python_hashlib_Hacl_Hash_SHA3_update_multi_sha3 |
| 66 |
#define Hacl_Impl_SHA3_absorb_inner python_hashlib_Hacl_Impl_SHA3_absorb_inner |
| 67 |
#define Hacl_Impl_SHA3_keccak python_hashlib_Hacl_Impl_SHA3_keccak |
| 68 |
#define Hacl_Impl_SHA3_loadState python_hashlib_Hacl_Impl_SHA3_loadState |
| 69 |
#define Hacl_Impl_SHA3_squeeze python_hashlib_Hacl_Impl_SHA3_squeeze |
| 70 |
#define Hacl_Impl_SHA3_state_permute python_hashlib_Hacl_Impl_SHA3_state_permute |
| 71 |
#define Hacl_SHA3_sha3_224 python_hashlib_Hacl_SHA3_sha3_224 |
| 72 |
#define Hacl_SHA3_sha3_256 python_hashlib_Hacl_SHA3_sha3_256 |
| 73 |
#define Hacl_SHA3_sha3_384 python_hashlib_Hacl_SHA3_sha3_384 |
| 74 |
#define Hacl_SHA3_sha3_512 python_hashlib_Hacl_SHA3_sha3_512 |
| 75 |
#define Hacl_SHA3_shake128_hacl python_hashlib_Hacl_SHA3_shake128_hacl |
| 76 |
#define Hacl_SHA3_shake256_hacl python_hashlib_Hacl_SHA3_shake256_hacl |
| 77 |
#define Hacl_Hash_SHA3_block_len python_hashlib_Hacl_Hash_SHA3_block_len |
| 78 |
#define Hacl_Hash_SHA3_copy python_hashlib_Hacl_Hash_SHA3_copy |
| 79 |
#define Hacl_Hash_SHA3_digest python_hashlib_Hacl_Hash_SHA3_digest |
| 80 |
#define Hacl_Hash_SHA3_free python_hashlib_Hacl_Hash_SHA3_free |
| 81 |
#define Hacl_Hash_SHA3_get_alg python_hashlib_Hacl_Hash_SHA3_get_alg |
| 82 |
#define Hacl_Hash_SHA3_hash_len python_hashlib_Hacl_Hash_SHA3_hash_len |
| 83 |
#define Hacl_Hash_SHA3_is_shake python_hashlib_Hacl_Hash_SHA3_is_shake |
| 84 |
#define Hacl_Hash_SHA3_malloc python_hashlib_Hacl_Hash_SHA3_malloc |
| 85 |
#define Hacl_Hash_SHA3_reset python_hashlib_Hacl_Hash_SHA3_reset |
| 86 |
#define Hacl_Hash_SHA3_update python_hashlib_Hacl_Hash_SHA3_update |
| 87 |
#define Hacl_Hash_SHA3_squeeze python_hashlib_Hacl_Hash_SHA3_squeeze |
| 88 |
|
| 89 |
#endif // _PYTHON_HACL_NAMESPACES_H |