Nuitka-winsvc 2.3.3__cp311-cp311-win_amd64.whl → 2.3.11__cp311-cp311-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of Nuitka-winsvc might be problematic. Click here for more details.
- {Nuitka_winsvc-2.3.3.dist-info → Nuitka_winsvc-2.3.11.dist-info}/METADATA +1 -1
- {Nuitka_winsvc-2.3.3.dist-info → Nuitka_winsvc-2.3.11.dist-info}/RECORD +63 -42
- {Nuitka_winsvc-2.3.3.dist-info → Nuitka_winsvc-2.3.11.dist-info}/WHEEL +1 -1
- nuitka/Options.py +1 -1
- nuitka/PythonFlavors.py +15 -0
- nuitka/Tracing.py +26 -23
- nuitka/Version.py +1 -1
- nuitka/build/SconsUtils.py +1 -1
- nuitka/build/include/nuitka/compiled_function.h +2 -0
- nuitka/build/inline_copy/python_hacl/LICENSE.txt +201 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Hash_MD5.c +1430 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Hash_MD5.h +66 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Hash_SHA1.c +463 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Hash_SHA1.h +66 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Hash_SHA2.c +1273 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Hash_SHA2.h +204 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Hash_SHA3.c +734 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Hash_SHA3.h +131 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/Hacl_Streaming_Types.h +83 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/include/krml/FStar_UInt128_Verified.h +346 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/include/krml/FStar_UInt_8_16_32_64.h +107 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/include/krml/fstar_uint128_struct_endianness.h +68 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/include/krml/internal/target.h +293 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/include/krml/lowstar_endianness.h +231 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/include/krml/types.h +14 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/internal/Hacl_Hash_MD5.h +56 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/internal/Hacl_Hash_SHA1.h +56 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/internal/Hacl_Hash_SHA2.h +164 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/internal/Hacl_Hash_SHA3.h +65 -0
- nuitka/build/inline_copy/python_hacl/hacl_312/python_hacl_namespaces.h +89 -0
- nuitka/build/static_src/CompiledCodeHelpers.c +2 -0
- nuitka/build/static_src/CompiledFrameType.c +2 -5
- nuitka/build/static_src/CompiledFunctionType.c +43 -4
- nuitka/build/static_src/HelpersAllocator.c +0 -2
- nuitka/build/static_src/HelpersBuiltin.c +2 -2
- nuitka/build/static_src/HelpersHeapStorage.c +4 -0
- nuitka/build/static_src/MainProgram.c +17 -0
- nuitka/build/static_src/MetaPathBasedLoader.c +77 -48
- nuitka/build/static_src/MetaPathBasedLoaderResourceReaderFiles.c +29 -0
- nuitka/code_generation/templates/CodeTemplatesModules.py +1 -10
- nuitka/freezer/DllDependenciesCommon.py +28 -3
- nuitka/freezer/DllDependenciesMacOS.py +23 -2
- nuitka/freezer/DllDependenciesWin32.py +6 -1
- nuitka/importing/Importing.py +5 -1
- nuitka/nodes/FunctionNodes.py +4 -1
- nuitka/nodes/ModuleNodes.py +3 -4
- nuitka/nodes/NodeBases.py +10 -9
- nuitka/nodes/shapes/BuiltinTypeShapes.py +21 -1
- nuitka/plugins/PluginBase.py +11 -3
- nuitka/plugins/standard/KivyPlugin.py +10 -0
- nuitka/plugins/standard/standard.nuitka-package.config.yml +240 -25
- nuitka/plugins/standard/stdlib3.nuitka-package.config.yml +38 -2
- nuitka/tools/testing/Common.py +22 -2
- nuitka/tree/InternalModule.py +1 -1
- nuitka/tree/ReformulationFunctionStatements.py +1 -0
- nuitka/utils/Execution.py +8 -7
- nuitka/utils/FileOperations.py +38 -1
- nuitka/utils/SharedLibraries.py +38 -34
- {Nuitka_winsvc-2.3.3.data → Nuitka_winsvc-2.3.11.data}/scripts/nuitka-run.bat +0 -0
- {Nuitka_winsvc-2.3.3.data → Nuitka_winsvc-2.3.11.data}/scripts/nuitka.bat +0 -0
- {Nuitka_winsvc-2.3.3.dist-info → Nuitka_winsvc-2.3.11.dist-info}/LICENSE.txt +0 -0
- {Nuitka_winsvc-2.3.3.dist-info → Nuitka_winsvc-2.3.11.dist-info}/entry_points.txt +0 -0
- {Nuitka_winsvc-2.3.3.dist-info → Nuitka_winsvc-2.3.11.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/* MIT License
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) 2016-2022 INRIA, CMU and Microsoft Corporation
|
|
4
|
+
* Copyright (c) 2022-2023 HACL* Contributors
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
#ifndef __Hacl_Hash_SHA2_H
|
|
27
|
+
#define __Hacl_Hash_SHA2_H
|
|
28
|
+
|
|
29
|
+
#if defined(__cplusplus)
|
|
30
|
+
extern "C" {
|
|
31
|
+
#endif
|
|
32
|
+
|
|
33
|
+
#include <string.h>
|
|
34
|
+
#include "python_hacl_namespaces.h"
|
|
35
|
+
#include "krml/types.h"
|
|
36
|
+
#include "krml/lowstar_endianness.h"
|
|
37
|
+
#include "krml/internal/target.h"
|
|
38
|
+
|
|
39
|
+
#include "Hacl_Streaming_Types.h"
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
typedef Hacl_Streaming_MD_state_32 Hacl_Hash_SHA2_state_t_224;
|
|
43
|
+
|
|
44
|
+
typedef Hacl_Streaming_MD_state_32 Hacl_Hash_SHA2_state_t_256;
|
|
45
|
+
|
|
46
|
+
typedef Hacl_Streaming_MD_state_64 Hacl_Hash_SHA2_state_t_384;
|
|
47
|
+
|
|
48
|
+
typedef Hacl_Streaming_MD_state_64 Hacl_Hash_SHA2_state_t_512;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
Allocate initial state for the SHA2_256 hash. The state is to be freed by
|
|
52
|
+
calling `free_256`.
|
|
53
|
+
*/
|
|
54
|
+
Hacl_Streaming_MD_state_32 *Hacl_Hash_SHA2_malloc_256(void);
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
Copies the state passed as argument into a newly allocated state (deep copy).
|
|
58
|
+
The state is to be freed by calling `free_256`. Cloning the state this way is
|
|
59
|
+
useful, for instance, if your control-flow diverges and you need to feed
|
|
60
|
+
more (different) data into the hash in each branch.
|
|
61
|
+
*/
|
|
62
|
+
Hacl_Streaming_MD_state_32 *Hacl_Hash_SHA2_copy_256(Hacl_Streaming_MD_state_32 *state);
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
Reset an existing state to the initial hash state with empty data.
|
|
66
|
+
*/
|
|
67
|
+
void Hacl_Hash_SHA2_reset_256(Hacl_Streaming_MD_state_32 *state);
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
Feed an arbitrary amount of data into the hash. This function returns 0 for
|
|
71
|
+
success, or 1 if the combined length of all of the data passed to `update_256`
|
|
72
|
+
(since the last call to `reset_256`) exceeds 2^61-1 bytes.
|
|
73
|
+
|
|
74
|
+
This function is identical to the update function for SHA2_224.
|
|
75
|
+
*/
|
|
76
|
+
Hacl_Streaming_Types_error_code
|
|
77
|
+
Hacl_Hash_SHA2_update_256(
|
|
78
|
+
Hacl_Streaming_MD_state_32 *state,
|
|
79
|
+
uint8_t *input,
|
|
80
|
+
uint32_t input_len
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
Write the resulting hash into `output`, an array of 32 bytes. The state remains
|
|
85
|
+
valid after a call to `digest_256`, meaning the user may feed more data into
|
|
86
|
+
the hash via `update_256`. (The digest_256 function operates on an internal copy of
|
|
87
|
+
the state and therefore does not invalidate the client-held state `p`.)
|
|
88
|
+
*/
|
|
89
|
+
void Hacl_Hash_SHA2_digest_256(Hacl_Streaming_MD_state_32 *state, uint8_t *output);
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
Free a state allocated with `malloc_256`.
|
|
93
|
+
|
|
94
|
+
This function is identical to the free function for SHA2_224.
|
|
95
|
+
*/
|
|
96
|
+
void Hacl_Hash_SHA2_free_256(Hacl_Streaming_MD_state_32 *state);
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
Hash `input`, of len `input_len`, into `output`, an array of 32 bytes.
|
|
100
|
+
*/
|
|
101
|
+
void Hacl_Hash_SHA2_hash_256(uint8_t *output, uint8_t *input, uint32_t input_len);
|
|
102
|
+
|
|
103
|
+
Hacl_Streaming_MD_state_32 *Hacl_Hash_SHA2_malloc_224(void);
|
|
104
|
+
|
|
105
|
+
void Hacl_Hash_SHA2_reset_224(Hacl_Streaming_MD_state_32 *state);
|
|
106
|
+
|
|
107
|
+
Hacl_Streaming_Types_error_code
|
|
108
|
+
Hacl_Hash_SHA2_update_224(
|
|
109
|
+
Hacl_Streaming_MD_state_32 *state,
|
|
110
|
+
uint8_t *input,
|
|
111
|
+
uint32_t input_len
|
|
112
|
+
);
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
Write the resulting hash into `output`, an array of 28 bytes. The state remains
|
|
116
|
+
valid after a call to `digest_224`, meaning the user may feed more data into
|
|
117
|
+
the hash via `update_224`.
|
|
118
|
+
*/
|
|
119
|
+
void Hacl_Hash_SHA2_digest_224(Hacl_Streaming_MD_state_32 *state, uint8_t *output);
|
|
120
|
+
|
|
121
|
+
void Hacl_Hash_SHA2_free_224(Hacl_Streaming_MD_state_32 *state);
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
Hash `input`, of len `input_len`, into `output`, an array of 28 bytes.
|
|
125
|
+
*/
|
|
126
|
+
void Hacl_Hash_SHA2_hash_224(uint8_t *output, uint8_t *input, uint32_t input_len);
|
|
127
|
+
|
|
128
|
+
Hacl_Streaming_MD_state_64 *Hacl_Hash_SHA2_malloc_512(void);
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
Copies the state passed as argument into a newly allocated state (deep copy).
|
|
132
|
+
The state is to be freed by calling `free_512`. Cloning the state this way is
|
|
133
|
+
useful, for instance, if your control-flow diverges and you need to feed
|
|
134
|
+
more (different) data into the hash in each branch.
|
|
135
|
+
*/
|
|
136
|
+
Hacl_Streaming_MD_state_64 *Hacl_Hash_SHA2_copy_512(Hacl_Streaming_MD_state_64 *state);
|
|
137
|
+
|
|
138
|
+
void Hacl_Hash_SHA2_reset_512(Hacl_Streaming_MD_state_64 *state);
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
Feed an arbitrary amount of data into the hash. This function returns 0 for
|
|
142
|
+
success, or 1 if the combined length of all of the data passed to `update_512`
|
|
143
|
+
(since the last call to `reset_512`) exceeds 2^125-1 bytes.
|
|
144
|
+
|
|
145
|
+
This function is identical to the update function for SHA2_384.
|
|
146
|
+
*/
|
|
147
|
+
Hacl_Streaming_Types_error_code
|
|
148
|
+
Hacl_Hash_SHA2_update_512(
|
|
149
|
+
Hacl_Streaming_MD_state_64 *state,
|
|
150
|
+
uint8_t *input,
|
|
151
|
+
uint32_t input_len
|
|
152
|
+
);
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
Write the resulting hash into `output`, an array of 64 bytes. The state remains
|
|
156
|
+
valid after a call to `digest_512`, meaning the user may feed more data into
|
|
157
|
+
the hash via `update_512`. (The digest_512 function operates on an internal copy of
|
|
158
|
+
the state and therefore does not invalidate the client-held state `p`.)
|
|
159
|
+
*/
|
|
160
|
+
void Hacl_Hash_SHA2_digest_512(Hacl_Streaming_MD_state_64 *state, uint8_t *output);
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
Free a state allocated with `malloc_512`.
|
|
164
|
+
|
|
165
|
+
This function is identical to the free function for SHA2_384.
|
|
166
|
+
*/
|
|
167
|
+
void Hacl_Hash_SHA2_free_512(Hacl_Streaming_MD_state_64 *state);
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
Hash `input`, of len `input_len`, into `output`, an array of 64 bytes.
|
|
171
|
+
*/
|
|
172
|
+
void Hacl_Hash_SHA2_hash_512(uint8_t *output, uint8_t *input, uint32_t input_len);
|
|
173
|
+
|
|
174
|
+
Hacl_Streaming_MD_state_64 *Hacl_Hash_SHA2_malloc_384(void);
|
|
175
|
+
|
|
176
|
+
void Hacl_Hash_SHA2_reset_384(Hacl_Streaming_MD_state_64 *state);
|
|
177
|
+
|
|
178
|
+
Hacl_Streaming_Types_error_code
|
|
179
|
+
Hacl_Hash_SHA2_update_384(
|
|
180
|
+
Hacl_Streaming_MD_state_64 *state,
|
|
181
|
+
uint8_t *input,
|
|
182
|
+
uint32_t input_len
|
|
183
|
+
);
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
Write the resulting hash into `output`, an array of 48 bytes. The state remains
|
|
187
|
+
valid after a call to `digest_384`, meaning the user may feed more data into
|
|
188
|
+
the hash via `update_384`.
|
|
189
|
+
*/
|
|
190
|
+
void Hacl_Hash_SHA2_digest_384(Hacl_Streaming_MD_state_64 *state, uint8_t *output);
|
|
191
|
+
|
|
192
|
+
void Hacl_Hash_SHA2_free_384(Hacl_Streaming_MD_state_64 *state);
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
Hash `input`, of len `input_len`, into `output`, an array of 48 bytes.
|
|
196
|
+
*/
|
|
197
|
+
void Hacl_Hash_SHA2_hash_384(uint8_t *output, uint8_t *input, uint32_t input_len);
|
|
198
|
+
|
|
199
|
+
#if defined(__cplusplus)
|
|
200
|
+
}
|
|
201
|
+
#endif
|
|
202
|
+
|
|
203
|
+
#define __Hacl_Hash_SHA2_H_DEFINED
|
|
204
|
+
#endif
|