mirror of
https://github.com/house-of-vanity/fesmoo_perdoliq.git
synced 2025-08-21 16:17:15 +00:00
4127 lines
136 KiB
C
4127 lines
136 KiB
C
![]() |
/* Generated code for Python source for module 'cryptography.hazmat.primitives.kdf.scrypt'
|
||
|
* created by Nuitka version 0.6.0
|
||
|
*
|
||
|
* This code is in part copyright 2018 Kay Hayen.
|
||
|
*
|
||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
* you may not use this file except in compliance with the License.
|
||
|
* You may obtain a copy of the License at
|
||
|
*
|
||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||
|
*
|
||
|
* Unless required by applicable law or agreed to in writing, software
|
||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
* See the License for the specific language governing permissions and
|
||
|
* limitations under the License.
|
||
|
*/
|
||
|
|
||
|
#include "nuitka/prelude.h"
|
||
|
|
||
|
#include "__helpers.h"
|
||
|
|
||
|
/* The _module_cryptography$hazmat$primitives$kdf$scrypt is a Python object pointer of module type. */
|
||
|
|
||
|
/* Note: For full compatibility with CPython, every module variable access
|
||
|
* needs to go through it except for cases where the module cannot possibly
|
||
|
* have changed in the mean time.
|
||
|
*/
|
||
|
|
||
|
PyObject *module_cryptography$hazmat$primitives$kdf$scrypt;
|
||
|
PyDictObject *moduledict_cryptography$hazmat$primitives$kdf$scrypt;
|
||
|
|
||
|
/* The module constants used, if any. */
|
||
|
extern PyObject *const_str_plain_metaclass;
|
||
|
extern PyObject *const_str_plain___name__;
|
||
|
static PyObject *const_str_digest_729dc88c9a5ff6923797c3418ff82eba;
|
||
|
extern PyObject *const_tuple_str_plain___class___tuple;
|
||
|
extern PyObject *const_str_angle_metaclass;
|
||
|
extern PyObject *const_str_plain_object;
|
||
|
extern PyObject *const_str_plain___file__;
|
||
|
static PyObject *const_str_digest_5b39a4fccb134d6854eaa60a7e1a9a7d;
|
||
|
extern PyObject *const_str_plain_bytes;
|
||
|
static PyObject *const_str_digest_a4a55f1e077537f4103a117b5942f9eb;
|
||
|
extern PyObject *const_str_plain_constant_time;
|
||
|
extern PyObject *const_str_plain_AlreadyFinalized;
|
||
|
extern PyObject *const_str_plain_division;
|
||
|
static PyObject *const_str_digest_9d62d7a3348c65eedaaea957bc96108b;
|
||
|
extern PyObject *const_str_digest_9db3cdd3cd765463b4eec6754eb8e087;
|
||
|
static PyObject *const_str_digest_6c6b397850e24f593b2f486082b689c5;
|
||
|
extern PyObject *const_tuple_str_plain_utils_tuple;
|
||
|
extern PyObject *const_str_plain_UnsupportedAlgorithm;
|
||
|
extern PyObject *const_str_plain_utils;
|
||
|
extern PyObject *const_str_plain_absolute_import;
|
||
|
extern PyObject *const_str_plain___doc__;
|
||
|
extern PyObject *const_str_plain__n;
|
||
|
static PyObject *const_str_digest_44e9e3cf6add8df3a8e4c6499735ea6b;
|
||
|
extern PyObject *const_str_plain___orig_bases__;
|
||
|
extern PyObject *const_str_digest_82e5b7f1075745a8638e06059354d03c;
|
||
|
static PyObject *const_tuple_str_plain_constant_time_tuple;
|
||
|
extern PyObject *const_str_digest_624798dd704a8f07276d3e75153a7c4b;
|
||
|
extern PyObject *const_str_plain_cryptography;
|
||
|
extern PyObject *const_str_plain___qualname__;
|
||
|
extern PyObject *const_str_plain_n;
|
||
|
extern PyObject *const_str_plain_p;
|
||
|
static PyObject *const_str_plain__used;
|
||
|
extern PyObject *const_str_plain_BACKEND_MISSING_INTERFACE;
|
||
|
extern PyObject *const_str_plain_ScryptBackend;
|
||
|
extern PyObject *const_str_plain__p;
|
||
|
extern PyObject *const_str_plain_InvalidKey;
|
||
|
extern PyObject *const_str_plain__r;
|
||
|
extern PyObject *const_tuple_empty;
|
||
|
static PyObject *const_str_digest_fe6cf15ed0ccba07c0ee467a014881cc;
|
||
|
static PyObject *const_tuple_str_digest_6c6b397850e24f593b2f486082b689c5_tuple;
|
||
|
extern PyObject *const_str_plain_r;
|
||
|
static PyObject *const_str_plain__length;
|
||
|
static PyObject *const_str_digest_ab892d0487e11166d363bb53eca5ed65;
|
||
|
extern PyObject *const_str_plain_register_interface;
|
||
|
static PyObject *const_tuple_135a7e60a1e65894aa177212328410c0_tuple;
|
||
|
extern PyObject *const_str_plain_salt;
|
||
|
extern PyObject *const_str_plain_derive;
|
||
|
extern PyObject *const_str_plain_expected_key;
|
||
|
extern PyObject *const_str_plain___getitem__;
|
||
|
static PyObject *const_str_digest_33365f6522802fd79d99317cbd0be416;
|
||
|
extern PyObject *const_str_plain_key_material;
|
||
|
extern PyObject *const_str_plain__Reasons;
|
||
|
extern PyObject *const_int_0;
|
||
|
static PyObject *const_str_digest_bf6e32572d6b8800a6599ed07eeebe14;
|
||
|
extern PyObject *const_str_plain_maxsize;
|
||
|
extern PyObject *const_str_plain__MEM_LIMIT;
|
||
|
static PyObject *const_str_digest_08c43705cdf37a5c0918feeb8633a510;
|
||
|
static PyObject *const_tuple_str_plain_ScryptBackend_tuple;
|
||
|
extern PyObject *const_str_plain_bytes_eq;
|
||
|
static PyObject *const_tuple_str_plain_KeyDerivationFunction_tuple;
|
||
|
extern PyObject *const_str_plain_length;
|
||
|
extern PyObject *const_str_digest_75fd71b1edada749c2ef7ac810062295;
|
||
|
extern PyObject *const_str_plain_derive_scrypt;
|
||
|
extern PyObject *const_str_plain_verify;
|
||
|
static PyObject *const_str_digest_29189c3db8252d83782d4d07d8591bb7;
|
||
|
static PyObject *const_str_digest_5ce932b5f567d15bc852124b461c9e73;
|
||
|
static PyObject *const_str_plain__salt;
|
||
|
extern PyObject *const_str_plain_type;
|
||
|
extern PyObject *const_str_digest_e27dc23b7c85daba181954dbade1a80e;
|
||
|
static PyObject *const_tuple_str_digest_33365f6522802fd79d99317cbd0be416_tuple;
|
||
|
extern PyObject *const_str_plain___cached__;
|
||
|
extern PyObject *const_str_plain_print_function;
|
||
|
extern PyObject *const_str_plain___class__;
|
||
|
extern PyObject *const_tuple_type_object_tuple;
|
||
|
extern PyObject *const_str_plain___module__;
|
||
|
extern PyObject *const_str_plain_sys;
|
||
|
extern PyObject *const_int_pos_1;
|
||
|
extern PyObject *const_str_plain_backend;
|
||
|
static PyObject *const_str_digest_f0f69e514f7ff94196f71da6ea912ae0;
|
||
|
extern PyObject *const_tuple_str_plain_self_str_plain_key_material_tuple;
|
||
|
extern PyObject *const_str_plain__backend;
|
||
|
extern PyObject *const_str_plain___prepare__;
|
||
|
extern PyObject *const_str_plain___init__;
|
||
|
static PyObject *const_str_plain_Scrypt;
|
||
|
extern PyObject *const_str_plain_self;
|
||
|
static PyObject *const_tuple_50a49f06a102c7c965d71567600d6918_tuple;
|
||
|
static PyObject *const_str_plain_derived_key;
|
||
|
extern PyObject *const_int_pos_2;
|
||
|
static PyObject *const_tuple_484884d51fdfca39c760503af93a8eb4_tuple;
|
||
|
extern PyObject *const_str_plain_KeyDerivationFunction;
|
||
|
static PyObject *module_filename_obj;
|
||
|
|
||
|
static bool constants_created = false;
|
||
|
|
||
|
static void createModuleConstants( void )
|
||
|
{
|
||
|
const_str_digest_729dc88c9a5ff6923797c3418ff82eba = UNSTREAM_STRING( &constant_bin[ 506333 ], 19, 0 );
|
||
|
const_str_digest_5b39a4fccb134d6854eaa60a7e1a9a7d = UNSTREAM_STRING( &constant_bin[ 506352 ], 13, 0 );
|
||
|
const_str_digest_a4a55f1e077537f4103a117b5942f9eb = UNSTREAM_STRING( &constant_bin[ 506365 ], 37, 0 );
|
||
|
const_str_digest_9d62d7a3348c65eedaaea957bc96108b = UNSTREAM_STRING( &constant_bin[ 506402 ], 45, 0 );
|
||
|
const_str_digest_6c6b397850e24f593b2f486082b689c5 = UNSTREAM_STRING( &constant_bin[ 506447 ], 18, 0 );
|
||
|
const_str_digest_44e9e3cf6add8df3a8e4c6499735ea6b = UNSTREAM_STRING( &constant_bin[ 506465 ], 50, 0 );
|
||
|
const_tuple_str_plain_constant_time_tuple = PyTuple_New( 1 );
|
||
|
PyTuple_SET_ITEM( const_tuple_str_plain_constant_time_tuple, 0, const_str_plain_constant_time ); Py_INCREF( const_str_plain_constant_time );
|
||
|
const_str_plain__used = UNSTREAM_STRING( &constant_bin[ 506515 ], 5, 1 );
|
||
|
const_str_digest_fe6cf15ed0ccba07c0ee467a014881cc = UNSTREAM_STRING( &constant_bin[ 506520 ], 15, 0 );
|
||
|
const_tuple_str_digest_6c6b397850e24f593b2f486082b689c5_tuple = PyTuple_New( 1 );
|
||
|
PyTuple_SET_ITEM( const_tuple_str_digest_6c6b397850e24f593b2f486082b689c5_tuple, 0, const_str_digest_6c6b397850e24f593b2f486082b689c5 ); Py_INCREF( const_str_digest_6c6b397850e24f593b2f486082b689c5 );
|
||
|
const_str_plain__length = UNSTREAM_STRING( &constant_bin[ 14929 ], 7, 1 );
|
||
|
const_str_digest_ab892d0487e11166d363bb53eca5ed65 = UNSTREAM_STRING( &constant_bin[ 506473 ], 41, 0 );
|
||
|
const_tuple_135a7e60a1e65894aa177212328410c0_tuple = PyTuple_New( 7 );
|
||
|
PyTuple_SET_ITEM( const_tuple_135a7e60a1e65894aa177212328410c0_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self );
|
||
|
PyTuple_SET_ITEM( const_tuple_135a7e60a1e65894aa177212328410c0_tuple, 1, const_str_plain_salt ); Py_INCREF( const_str_plain_salt );
|
||
|
PyTuple_SET_ITEM( const_tuple_135a7e60a1e65894aa177212328410c0_tuple, 2, const_str_plain_length ); Py_INCREF( const_str_plain_length );
|
||
|
PyTuple_SET_ITEM( const_tuple_135a7e60a1e65894aa177212328410c0_tuple, 3, const_str_plain_n ); Py_INCREF( const_str_plain_n );
|
||
|
PyTuple_SET_ITEM( const_tuple_135a7e60a1e65894aa177212328410c0_tuple, 4, const_str_plain_r ); Py_INCREF( const_str_plain_r );
|
||
|
PyTuple_SET_ITEM( const_tuple_135a7e60a1e65894aa177212328410c0_tuple, 5, const_str_plain_p ); Py_INCREF( const_str_plain_p );
|
||
|
PyTuple_SET_ITEM( const_tuple_135a7e60a1e65894aa177212328410c0_tuple, 6, const_str_plain_backend ); Py_INCREF( const_str_plain_backend );
|
||
|
const_str_digest_33365f6522802fd79d99317cbd0be416 = UNSTREAM_STRING( &constant_bin[ 506535 ], 39, 0 );
|
||
|
const_str_digest_bf6e32572d6b8800a6599ed07eeebe14 = UNSTREAM_STRING( &constant_bin[ 506574 ], 77, 0 );
|
||
|
const_str_digest_08c43705cdf37a5c0918feeb8633a510 = UNSTREAM_STRING( &constant_bin[ 506651 ], 37, 0 );
|
||
|
const_tuple_str_plain_ScryptBackend_tuple = PyTuple_New( 1 );
|
||
|
PyTuple_SET_ITEM( const_tuple_str_plain_ScryptBackend_tuple, 0, const_str_plain_ScryptBackend ); Py_INCREF( const_str_plain_ScryptBackend );
|
||
|
const_tuple_str_plain_KeyDerivationFunction_tuple = PyTuple_New( 1 );
|
||
|
PyTuple_SET_ITEM( const_tuple_str_plain_KeyDerivationFunction_tuple, 0, const_str_plain_KeyDerivationFunction ); Py_INCREF( const_str_plain_KeyDerivationFunction );
|
||
|
const_str_digest_29189c3db8252d83782d4d07d8591bb7 = UNSTREAM_STRING( &constant_bin[ 506688 ], 27, 0 );
|
||
|
const_str_digest_5ce932b5f567d15bc852124b461c9e73 = UNSTREAM_STRING( &constant_bin[ 506715 ], 48, 0 );
|
||
|
const_str_plain__salt = UNSTREAM_STRING( &constant_bin[ 23226 ], 5, 1 );
|
||
|
const_tuple_str_digest_33365f6522802fd79d99317cbd0be416_tuple = PyTuple_New( 1 );
|
||
|
PyTuple_SET_ITEM( const_tuple_str_digest_33365f6522802fd79d99317cbd0be416_tuple, 0, const_str_digest_33365f6522802fd79d99317cbd0be416 ); Py_INCREF( const_str_digest_33365f6522802fd79d99317cbd0be416 );
|
||
|
const_str_digest_f0f69e514f7ff94196f71da6ea912ae0 = UNSTREAM_STRING( &constant_bin[ 506763 ], 13, 0 );
|
||
|
const_str_plain_Scrypt = UNSTREAM_STRING( &constant_bin[ 456836 ], 6, 1 );
|
||
|
const_tuple_50a49f06a102c7c965d71567600d6918_tuple = PyTuple_New( 4 );
|
||
|
PyTuple_SET_ITEM( const_tuple_50a49f06a102c7c965d71567600d6918_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self );
|
||
|
PyTuple_SET_ITEM( const_tuple_50a49f06a102c7c965d71567600d6918_tuple, 1, const_str_plain_key_material ); Py_INCREF( const_str_plain_key_material );
|
||
|
PyTuple_SET_ITEM( const_tuple_50a49f06a102c7c965d71567600d6918_tuple, 2, const_str_plain_expected_key ); Py_INCREF( const_str_plain_expected_key );
|
||
|
const_str_plain_derived_key = UNSTREAM_STRING( &constant_bin[ 506776 ], 11, 1 );
|
||
|
PyTuple_SET_ITEM( const_tuple_50a49f06a102c7c965d71567600d6918_tuple, 3, const_str_plain_derived_key ); Py_INCREF( const_str_plain_derived_key );
|
||
|
const_tuple_484884d51fdfca39c760503af93a8eb4_tuple = PyTuple_New( 4 );
|
||
|
PyTuple_SET_ITEM( const_tuple_484884d51fdfca39c760503af93a8eb4_tuple, 0, const_str_plain_AlreadyFinalized ); Py_INCREF( const_str_plain_AlreadyFinalized );
|
||
|
PyTuple_SET_ITEM( const_tuple_484884d51fdfca39c760503af93a8eb4_tuple, 1, const_str_plain_InvalidKey ); Py_INCREF( const_str_plain_InvalidKey );
|
||
|
PyTuple_SET_ITEM( const_tuple_484884d51fdfca39c760503af93a8eb4_tuple, 2, const_str_plain_UnsupportedAlgorithm ); Py_INCREF( const_str_plain_UnsupportedAlgorithm );
|
||
|
PyTuple_SET_ITEM( const_tuple_484884d51fdfca39c760503af93a8eb4_tuple, 3, const_str_plain__Reasons ); Py_INCREF( const_str_plain__Reasons );
|
||
|
|
||
|
constants_created = true;
|
||
|
}
|
||
|
|
||
|
#ifndef __NUITKA_NO_ASSERT__
|
||
|
void checkModuleConstants_cryptography$hazmat$primitives$kdf$scrypt( void )
|
||
|
{
|
||
|
// The module may not have been used at all.
|
||
|
if (constants_created == false) return;
|
||
|
|
||
|
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
// The module code objects.
|
||
|
static PyCodeObject *codeobj_77b8afe22b74632a7cfffa4dcc92c8e0;
|
||
|
static PyCodeObject *codeobj_ab12869ed29e9faea291490ddc8d9b89;
|
||
|
static PyCodeObject *codeobj_d4d958c05d089e2700030b1b112c535d;
|
||
|
static PyCodeObject *codeobj_9231efc17e2e137bf04e5454e977c258;
|
||
|
static PyCodeObject *codeobj_1438ae337665449694c0576c65345bce;
|
||
|
|
||
|
static void createModuleCodeObjects(void)
|
||
|
{
|
||
|
module_filename_obj = const_str_digest_bf6e32572d6b8800a6599ed07eeebe14;
|
||
|
codeobj_77b8afe22b74632a7cfffa4dcc92c8e0 = MAKE_CODEOBJ( module_filename_obj, const_str_digest_44e9e3cf6add8df3a8e4c6499735ea6b, 1, const_tuple_empty, 0, 0, CO_NOFREE );
|
||
|
codeobj_ab12869ed29e9faea291490ddc8d9b89 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_Scrypt, 24, const_tuple_str_plain___class___tuple, 0, 0, CO_NOFREE );
|
||
|
codeobj_d4d958c05d089e2700030b1b112c535d = MAKE_CODEOBJ( module_filename_obj, const_str_plain___init__, 25, const_tuple_135a7e60a1e65894aa177212328410c0_tuple, 7, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
||
|
codeobj_9231efc17e2e137bf04e5454e977c258 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_derive, 52, const_tuple_str_plain_self_str_plain_key_material_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
||
|
codeobj_1438ae337665449694c0576c65345bce = MAKE_CODEOBJ( module_filename_obj, const_str_plain_verify, 63, const_tuple_50a49f06a102c7c965d71567600d6918_tuple, 3, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
||
|
}
|
||
|
|
||
|
// The module function declarations.
|
||
|
NUITKA_CROSS_MODULE PyObject *impl___internal__$$$function_1__mro_entries_conversion( PyObject **python_pars );
|
||
|
|
||
|
|
||
|
static PyObject *MAKE_FUNCTION_cryptography$hazmat$primitives$kdf$scrypt$$$function_1___init__( );
|
||
|
|
||
|
|
||
|
static PyObject *MAKE_FUNCTION_cryptography$hazmat$primitives$kdf$scrypt$$$function_2_derive( );
|
||
|
|
||
|
|
||
|
static PyObject *MAKE_FUNCTION_cryptography$hazmat$primitives$kdf$scrypt$$$function_3_verify( );
|
||
|
|
||
|
|
||
|
// The module function definitions.
|
||
|
static PyObject *impl_cryptography$hazmat$primitives$kdf$scrypt$$$function_1___init__( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
|
||
|
{
|
||
|
// Preserve error status for checks
|
||
|
#ifndef __NUITKA_NO_ASSERT__
|
||
|
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
|
||
|
#endif
|
||
|
|
||
|
// Local variable declarations.
|
||
|
PyObject *par_self = python_pars[ 0 ];
|
||
|
PyObject *par_salt = python_pars[ 1 ];
|
||
|
PyObject *par_length = python_pars[ 2 ];
|
||
|
PyObject *par_n = python_pars[ 3 ];
|
||
|
PyObject *par_r = python_pars[ 4 ];
|
||
|
PyObject *par_p = python_pars[ 5 ];
|
||
|
PyObject *par_backend = python_pars[ 6 ];
|
||
|
struct Nuitka_FrameObject *frame_d4d958c05d089e2700030b1b112c535d;
|
||
|
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
|
||
|
PyObject *exception_type = NULL;
|
||
|
PyObject *exception_value = NULL;
|
||
|
PyTracebackObject *exception_tb = NULL;
|
||
|
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
|
||
|
int tmp_res;
|
||
|
bool tmp_result;
|
||
|
static struct Nuitka_FrameObject *cache_frame_d4d958c05d089e2700030b1b112c535d = NULL;
|
||
|
PyObject *tmp_return_value = NULL;
|
||
|
PyObject *exception_keeper_type_1;
|
||
|
PyObject *exception_keeper_value_1;
|
||
|
PyTracebackObject *exception_keeper_tb_1;
|
||
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
|
||
|
|
||
|
// Actual function code.
|
||
|
{
|
||
|
// Tried code:
|
||
|
MAKE_OR_REUSE_FRAME( cache_frame_d4d958c05d089e2700030b1b112c535d, codeobj_d4d958c05d089e2700030b1b112c535d, module_cryptography$hazmat$primitives$kdf$scrypt, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) );
|
||
|
frame_d4d958c05d089e2700030b1b112c535d = cache_frame_d4d958c05d089e2700030b1b112c535d;
|
||
|
|
||
|
// Push the new frame as the currently active one.
|
||
|
pushFrameStack( frame_d4d958c05d089e2700030b1b112c535d );
|
||
|
|
||
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
||
|
assert( Py_REFCNT( frame_d4d958c05d089e2700030b1b112c535d ) == 2 ); // Frame stack
|
||
|
|
||
|
// Framed code:
|
||
|
{
|
||
|
nuitka_bool tmp_condition_result_1;
|
||
|
PyObject *tmp_operand_name_1;
|
||
|
PyObject *tmp_isinstance_inst_1;
|
||
|
PyObject *tmp_isinstance_cls_1;
|
||
|
PyObject *tmp_mvar_value_1;
|
||
|
CHECK_OBJECT( par_backend );
|
||
|
tmp_isinstance_inst_1 = par_backend;
|
||
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain_ScryptBackend );
|
||
|
|
||
|
if (unlikely( tmp_mvar_value_1 == NULL ))
|
||
|
{
|
||
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_ScryptBackend );
|
||
|
}
|
||
|
|
||
|
if ( tmp_mvar_value_1 == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_NameError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "ScryptBackend" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 26;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_isinstance_cls_1 = tmp_mvar_value_1;
|
||
|
tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_1, tmp_isinstance_cls_1 );
|
||
|
if ( tmp_res == -1 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 26;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_operand_name_1 = ( tmp_res != 0 ) ? Py_True : Py_False;
|
||
|
tmp_res = CHECK_IF_TRUE( tmp_operand_name_1 );
|
||
|
if ( tmp_res == -1 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 26;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_condition_result_1 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
||
|
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
|
||
|
{
|
||
|
goto branch_yes_1;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
goto branch_no_1;
|
||
|
}
|
||
|
branch_yes_1:;
|
||
|
{
|
||
|
PyObject *tmp_raise_type_1;
|
||
|
PyObject *tmp_called_name_1;
|
||
|
PyObject *tmp_mvar_value_2;
|
||
|
PyObject *tmp_args_element_name_1;
|
||
|
PyObject *tmp_args_element_name_2;
|
||
|
PyObject *tmp_source_name_1;
|
||
|
PyObject *tmp_mvar_value_3;
|
||
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain_UnsupportedAlgorithm );
|
||
|
|
||
|
if (unlikely( tmp_mvar_value_2 == NULL ))
|
||
|
{
|
||
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_UnsupportedAlgorithm );
|
||
|
}
|
||
|
|
||
|
if ( tmp_mvar_value_2 == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_NameError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "UnsupportedAlgorithm" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 27;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_called_name_1 = tmp_mvar_value_2;
|
||
|
tmp_args_element_name_1 = const_str_digest_5ce932b5f567d15bc852124b461c9e73;
|
||
|
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain__Reasons );
|
||
|
|
||
|
if (unlikely( tmp_mvar_value_3 == NULL ))
|
||
|
{
|
||
|
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain__Reasons );
|
||
|
}
|
||
|
|
||
|
if ( tmp_mvar_value_3 == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_NameError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "_Reasons" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 29;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_source_name_1 = tmp_mvar_value_3;
|
||
|
tmp_args_element_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_BACKEND_MISSING_INTERFACE );
|
||
|
if ( tmp_args_element_name_2 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 29;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
frame_d4d958c05d089e2700030b1b112c535d->m_frame.f_lineno = 27;
|
||
|
{
|
||
|
PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_2 };
|
||
|
tmp_raise_type_1 = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_1, call_args );
|
||
|
}
|
||
|
|
||
|
Py_DECREF( tmp_args_element_name_2 );
|
||
|
if ( tmp_raise_type_1 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 27;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
exception_type = tmp_raise_type_1;
|
||
|
exception_lineno = 27;
|
||
|
RAISE_EXCEPTION_WITH_TYPE( &exception_type, &exception_value, &exception_tb );
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
branch_no_1:;
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assattr_name_1;
|
||
|
PyObject *tmp_assattr_target_1;
|
||
|
if ( par_length == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "length" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 32;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_assattr_name_1 = par_length;
|
||
|
if ( par_self == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 32;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_assattr_target_1 = par_self;
|
||
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain__length, tmp_assattr_name_1 );
|
||
|
if ( tmp_result == false )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 32;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
}
|
||
|
{
|
||
|
nuitka_bool tmp_condition_result_2;
|
||
|
PyObject *tmp_operand_name_2;
|
||
|
PyObject *tmp_isinstance_inst_2;
|
||
|
PyObject *tmp_isinstance_cls_2;
|
||
|
if ( par_salt == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "salt" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 33;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_isinstance_inst_2 = par_salt;
|
||
|
tmp_isinstance_cls_2 = (PyObject *)&PyBytes_Type;
|
||
|
tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_2, tmp_isinstance_cls_2 );
|
||
|
if ( tmp_res == -1 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 33;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_operand_name_2 = ( tmp_res != 0 ) ? Py_True : Py_False;
|
||
|
tmp_res = CHECK_IF_TRUE( tmp_operand_name_2 );
|
||
|
if ( tmp_res == -1 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 33;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_condition_result_2 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
||
|
if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE )
|
||
|
{
|
||
|
goto branch_yes_2;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
goto branch_no_2;
|
||
|
}
|
||
|
branch_yes_2:;
|
||
|
{
|
||
|
PyObject *tmp_raise_type_2;
|
||
|
PyObject *tmp_make_exception_arg_1;
|
||
|
tmp_make_exception_arg_1 = const_str_digest_729dc88c9a5ff6923797c3418ff82eba;
|
||
|
frame_d4d958c05d089e2700030b1b112c535d->m_frame.f_lineno = 34;
|
||
|
{
|
||
|
PyObject *call_args[] = { tmp_make_exception_arg_1 };
|
||
|
tmp_raise_type_2 = CALL_FUNCTION_WITH_ARGS1( PyExc_TypeError, call_args );
|
||
|
}
|
||
|
|
||
|
assert( !(tmp_raise_type_2 == NULL) );
|
||
|
exception_type = tmp_raise_type_2;
|
||
|
exception_lineno = 34;
|
||
|
RAISE_EXCEPTION_WITH_TYPE( &exception_type, &exception_value, &exception_tb );
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
branch_no_2:;
|
||
|
}
|
||
|
{
|
||
|
nuitka_bool tmp_condition_result_3;
|
||
|
int tmp_or_left_truth_1;
|
||
|
nuitka_bool tmp_or_left_value_1;
|
||
|
nuitka_bool tmp_or_right_value_1;
|
||
|
PyObject *tmp_compexpr_left_1;
|
||
|
PyObject *tmp_compexpr_right_1;
|
||
|
PyObject *tmp_compexpr_left_2;
|
||
|
PyObject *tmp_compexpr_right_2;
|
||
|
PyObject *tmp_left_name_1;
|
||
|
PyObject *tmp_right_name_1;
|
||
|
PyObject *tmp_left_name_2;
|
||
|
PyObject *tmp_right_name_2;
|
||
|
if ( par_n == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "n" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 36;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_compexpr_left_1 = par_n;
|
||
|
tmp_compexpr_right_1 = const_int_pos_2;
|
||
|
tmp_res = RICH_COMPARE_BOOL_LT( tmp_compexpr_left_1, tmp_compexpr_right_1 );
|
||
|
if ( tmp_res == -1 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 36;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_or_left_value_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
||
|
tmp_or_left_truth_1 = tmp_or_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0;
|
||
|
if ( tmp_or_left_truth_1 == 1 )
|
||
|
{
|
||
|
goto or_left_1;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
goto or_right_1;
|
||
|
}
|
||
|
or_right_1:;
|
||
|
if ( par_n == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "n" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 36;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_left_name_1 = par_n;
|
||
|
if ( par_n == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "n" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 36;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_left_name_2 = par_n;
|
||
|
tmp_right_name_2 = const_int_pos_1;
|
||
|
tmp_right_name_1 = BINARY_OPERATION_SUB( tmp_left_name_2, tmp_right_name_2 );
|
||
|
if ( tmp_right_name_1 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 36;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_compexpr_left_2 = BINARY_OPERATION( PyNumber_And, tmp_left_name_1, tmp_right_name_1 );
|
||
|
Py_DECREF( tmp_right_name_1 );
|
||
|
if ( tmp_compexpr_left_2 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 36;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_compexpr_right_2 = const_int_0;
|
||
|
tmp_res = RICH_COMPARE_BOOL_NE( tmp_compexpr_left_2, tmp_compexpr_right_2 );
|
||
|
Py_DECREF( tmp_compexpr_left_2 );
|
||
|
if ( tmp_res == -1 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 36;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_or_right_value_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
||
|
tmp_condition_result_3 = tmp_or_right_value_1;
|
||
|
goto or_end_1;
|
||
|
or_left_1:;
|
||
|
tmp_condition_result_3 = tmp_or_left_value_1;
|
||
|
or_end_1:;
|
||
|
if ( tmp_condition_result_3 == NUITKA_BOOL_TRUE )
|
||
|
{
|
||
|
goto branch_yes_3;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
goto branch_no_3;
|
||
|
}
|
||
|
branch_yes_3:;
|
||
|
{
|
||
|
PyObject *tmp_raise_type_3;
|
||
|
PyObject *tmp_make_exception_arg_2;
|
||
|
tmp_make_exception_arg_2 = const_str_digest_9d62d7a3348c65eedaaea957bc96108b;
|
||
|
frame_d4d958c05d089e2700030b1b112c535d->m_frame.f_lineno = 37;
|
||
|
{
|
||
|
PyObject *call_args[] = { tmp_make_exception_arg_2 };
|
||
|
tmp_raise_type_3 = CALL_FUNCTION_WITH_ARGS1( PyExc_ValueError, call_args );
|
||
|
}
|
||
|
|
||
|
assert( !(tmp_raise_type_3 == NULL) );
|
||
|
exception_type = tmp_raise_type_3;
|
||
|
exception_lineno = 37;
|
||
|
RAISE_EXCEPTION_WITH_TYPE( &exception_type, &exception_value, &exception_tb );
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
branch_no_3:;
|
||
|
}
|
||
|
{
|
||
|
nuitka_bool tmp_condition_result_4;
|
||
|
PyObject *tmp_compexpr_left_3;
|
||
|
PyObject *tmp_compexpr_right_3;
|
||
|
if ( par_r == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "r" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 39;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_compexpr_left_3 = par_r;
|
||
|
tmp_compexpr_right_3 = const_int_pos_1;
|
||
|
tmp_res = RICH_COMPARE_BOOL_LT( tmp_compexpr_left_3, tmp_compexpr_right_3 );
|
||
|
if ( tmp_res == -1 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 39;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_condition_result_4 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
||
|
if ( tmp_condition_result_4 == NUITKA_BOOL_TRUE )
|
||
|
{
|
||
|
goto branch_yes_4;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
goto branch_no_4;
|
||
|
}
|
||
|
branch_yes_4:;
|
||
|
{
|
||
|
PyObject *tmp_raise_type_4;
|
||
|
PyObject *tmp_make_exception_arg_3;
|
||
|
tmp_make_exception_arg_3 = const_str_digest_08c43705cdf37a5c0918feeb8633a510;
|
||
|
frame_d4d958c05d089e2700030b1b112c535d->m_frame.f_lineno = 40;
|
||
|
{
|
||
|
PyObject *call_args[] = { tmp_make_exception_arg_3 };
|
||
|
tmp_raise_type_4 = CALL_FUNCTION_WITH_ARGS1( PyExc_ValueError, call_args );
|
||
|
}
|
||
|
|
||
|
assert( !(tmp_raise_type_4 == NULL) );
|
||
|
exception_type = tmp_raise_type_4;
|
||
|
exception_lineno = 40;
|
||
|
RAISE_EXCEPTION_WITH_TYPE( &exception_type, &exception_value, &exception_tb );
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
branch_no_4:;
|
||
|
}
|
||
|
{
|
||
|
nuitka_bool tmp_condition_result_5;
|
||
|
PyObject *tmp_compexpr_left_4;
|
||
|
PyObject *tmp_compexpr_right_4;
|
||
|
if ( par_p == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "p" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 42;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_compexpr_left_4 = par_p;
|
||
|
tmp_compexpr_right_4 = const_int_pos_1;
|
||
|
tmp_res = RICH_COMPARE_BOOL_LT( tmp_compexpr_left_4, tmp_compexpr_right_4 );
|
||
|
if ( tmp_res == -1 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 42;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_condition_result_5 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
||
|
if ( tmp_condition_result_5 == NUITKA_BOOL_TRUE )
|
||
|
{
|
||
|
goto branch_yes_5;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
goto branch_no_5;
|
||
|
}
|
||
|
branch_yes_5:;
|
||
|
{
|
||
|
PyObject *tmp_raise_type_5;
|
||
|
PyObject *tmp_make_exception_arg_4;
|
||
|
tmp_make_exception_arg_4 = const_str_digest_a4a55f1e077537f4103a117b5942f9eb;
|
||
|
frame_d4d958c05d089e2700030b1b112c535d->m_frame.f_lineno = 43;
|
||
|
{
|
||
|
PyObject *call_args[] = { tmp_make_exception_arg_4 };
|
||
|
tmp_raise_type_5 = CALL_FUNCTION_WITH_ARGS1( PyExc_ValueError, call_args );
|
||
|
}
|
||
|
|
||
|
assert( !(tmp_raise_type_5 == NULL) );
|
||
|
exception_type = tmp_raise_type_5;
|
||
|
exception_lineno = 43;
|
||
|
RAISE_EXCEPTION_WITH_TYPE( &exception_type, &exception_value, &exception_tb );
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
branch_no_5:;
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assattr_name_2;
|
||
|
PyObject *tmp_assattr_target_2;
|
||
|
tmp_assattr_name_2 = Py_False;
|
||
|
if ( par_self == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 45;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_assattr_target_2 = par_self;
|
||
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_2, const_str_plain__used, tmp_assattr_name_2 );
|
||
|
if ( tmp_result == false )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 45;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assattr_name_3;
|
||
|
PyObject *tmp_assattr_target_3;
|
||
|
if ( par_salt == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "salt" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 46;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_assattr_name_3 = par_salt;
|
||
|
if ( par_self == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 46;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_assattr_target_3 = par_self;
|
||
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_3, const_str_plain__salt, tmp_assattr_name_3 );
|
||
|
if ( tmp_result == false )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 46;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assattr_name_4;
|
||
|
PyObject *tmp_assattr_target_4;
|
||
|
if ( par_n == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "n" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 47;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_assattr_name_4 = par_n;
|
||
|
if ( par_self == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 47;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_assattr_target_4 = par_self;
|
||
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_4, const_str_plain__n, tmp_assattr_name_4 );
|
||
|
if ( tmp_result == false )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 47;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assattr_name_5;
|
||
|
PyObject *tmp_assattr_target_5;
|
||
|
if ( par_r == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "r" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 48;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_assattr_name_5 = par_r;
|
||
|
if ( par_self == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 48;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_assattr_target_5 = par_self;
|
||
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_5, const_str_plain__r, tmp_assattr_name_5 );
|
||
|
if ( tmp_result == false )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 48;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assattr_name_6;
|
||
|
PyObject *tmp_assattr_target_6;
|
||
|
if ( par_p == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "p" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 49;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_assattr_name_6 = par_p;
|
||
|
if ( par_self == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 49;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_assattr_target_6 = par_self;
|
||
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_6, const_str_plain__p, tmp_assattr_name_6 );
|
||
|
if ( tmp_result == false )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 49;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assattr_name_7;
|
||
|
PyObject *tmp_assattr_target_7;
|
||
|
if ( par_backend == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "backend" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 50;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_assattr_name_7 = par_backend;
|
||
|
if ( par_self == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 50;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_assattr_target_7 = par_self;
|
||
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_7, const_str_plain__backend, tmp_assattr_name_7 );
|
||
|
if ( tmp_result == false )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 50;
|
||
|
type_description_1 = "ooooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#if 0
|
||
|
RESTORE_FRAME_EXCEPTION( frame_d4d958c05d089e2700030b1b112c535d );
|
||
|
#endif
|
||
|
|
||
|
// Put the previous frame back on top.
|
||
|
popFrameStack();
|
||
|
|
||
|
goto frame_no_exception_1;
|
||
|
|
||
|
frame_exception_exit_1:;
|
||
|
|
||
|
#if 0
|
||
|
RESTORE_FRAME_EXCEPTION( frame_d4d958c05d089e2700030b1b112c535d );
|
||
|
#endif
|
||
|
|
||
|
if ( exception_tb == NULL )
|
||
|
{
|
||
|
exception_tb = MAKE_TRACEBACK( frame_d4d958c05d089e2700030b1b112c535d, exception_lineno );
|
||
|
}
|
||
|
else if ( exception_tb->tb_frame != &frame_d4d958c05d089e2700030b1b112c535d->m_frame )
|
||
|
{
|
||
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_d4d958c05d089e2700030b1b112c535d, exception_lineno );
|
||
|
}
|
||
|
|
||
|
// Attachs locals to frame if any.
|
||
|
Nuitka_Frame_AttachLocals(
|
||
|
(struct Nuitka_FrameObject *)frame_d4d958c05d089e2700030b1b112c535d,
|
||
|
type_description_1,
|
||
|
par_self,
|
||
|
par_salt,
|
||
|
par_length,
|
||
|
par_n,
|
||
|
par_r,
|
||
|
par_p,
|
||
|
par_backend
|
||
|
);
|
||
|
|
||
|
|
||
|
// Release cached frame.
|
||
|
if ( frame_d4d958c05d089e2700030b1b112c535d == cache_frame_d4d958c05d089e2700030b1b112c535d )
|
||
|
{
|
||
|
Py_DECREF( frame_d4d958c05d089e2700030b1b112c535d );
|
||
|
}
|
||
|
cache_frame_d4d958c05d089e2700030b1b112c535d = NULL;
|
||
|
|
||
|
assertFrameObject( frame_d4d958c05d089e2700030b1b112c535d );
|
||
|
|
||
|
// Put the previous frame back on top.
|
||
|
popFrameStack();
|
||
|
|
||
|
// Return the error.
|
||
|
goto try_except_handler_1;
|
||
|
|
||
|
frame_no_exception_1:;
|
||
|
{
|
||
|
tmp_return_value = Py_None;
|
||
|
Py_INCREF( tmp_return_value );
|
||
|
goto try_return_handler_1;
|
||
|
}
|
||
|
// tried codes exits in all cases
|
||
|
NUITKA_CANNOT_GET_HERE( cryptography$hazmat$primitives$kdf$scrypt$$$function_1___init__ );
|
||
|
return NULL;
|
||
|
// Return handler code:
|
||
|
try_return_handler_1:;
|
||
|
{
|
||
|
Py_XDECREF( par_self );
|
||
|
par_self = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( par_salt );
|
||
|
par_salt = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( par_length );
|
||
|
par_length = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( par_n );
|
||
|
par_n = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( par_r );
|
||
|
par_r = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( par_p );
|
||
|
par_p = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( par_backend );
|
||
|
par_backend = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
goto function_return_exit;
|
||
|
}
|
||
|
// Exception handler code:
|
||
|
try_except_handler_1:;
|
||
|
exception_keeper_type_1 = exception_type;
|
||
|
exception_keeper_value_1 = exception_value;
|
||
|
exception_keeper_tb_1 = exception_tb;
|
||
|
exception_keeper_lineno_1 = exception_lineno;
|
||
|
exception_type = NULL;
|
||
|
exception_value = NULL;
|
||
|
exception_tb = NULL;
|
||
|
exception_lineno = 0;
|
||
|
|
||
|
{
|
||
|
Py_XDECREF( par_self );
|
||
|
par_self = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( par_salt );
|
||
|
par_salt = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( par_length );
|
||
|
par_length = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( par_n );
|
||
|
par_n = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( par_r );
|
||
|
par_r = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( par_p );
|
||
|
par_p = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( par_backend );
|
||
|
par_backend = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
// Re-raise.
|
||
|
exception_type = exception_keeper_type_1;
|
||
|
exception_value = exception_keeper_value_1;
|
||
|
exception_tb = exception_keeper_tb_1;
|
||
|
exception_lineno = exception_keeper_lineno_1;
|
||
|
|
||
|
goto function_exception_exit;
|
||
|
}
|
||
|
// End of try:
|
||
|
}
|
||
|
|
||
|
// Return statement must have exited already.
|
||
|
NUITKA_CANNOT_GET_HERE( cryptography$hazmat$primitives$kdf$scrypt$$$function_1___init__ );
|
||
|
return NULL;
|
||
|
|
||
|
function_exception_exit:
|
||
|
assert( exception_type );
|
||
|
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
|
||
|
|
||
|
return NULL;
|
||
|
function_return_exit:
|
||
|
|
||
|
CHECK_OBJECT( tmp_return_value );
|
||
|
assert( had_error || !ERROR_OCCURRED() );
|
||
|
return tmp_return_value;
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
static PyObject *impl_cryptography$hazmat$primitives$kdf$scrypt$$$function_2_derive( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
|
||
|
{
|
||
|
// Preserve error status for checks
|
||
|
#ifndef __NUITKA_NO_ASSERT__
|
||
|
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
|
||
|
#endif
|
||
|
|
||
|
// Local variable declarations.
|
||
|
PyObject *par_self = python_pars[ 0 ];
|
||
|
PyObject *par_key_material = python_pars[ 1 ];
|
||
|
struct Nuitka_FrameObject *frame_9231efc17e2e137bf04e5454e977c258;
|
||
|
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
|
||
|
PyObject *exception_type = NULL;
|
||
|
PyObject *exception_value = NULL;
|
||
|
PyTracebackObject *exception_tb = NULL;
|
||
|
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
|
||
|
bool tmp_result;
|
||
|
int tmp_res;
|
||
|
PyObject *tmp_return_value = NULL;
|
||
|
static struct Nuitka_FrameObject *cache_frame_9231efc17e2e137bf04e5454e977c258 = NULL;
|
||
|
PyObject *exception_keeper_type_1;
|
||
|
PyObject *exception_keeper_value_1;
|
||
|
PyTracebackObject *exception_keeper_tb_1;
|
||
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
|
||
|
|
||
|
// Actual function code.
|
||
|
{
|
||
|
// Tried code:
|
||
|
MAKE_OR_REUSE_FRAME( cache_frame_9231efc17e2e137bf04e5454e977c258, codeobj_9231efc17e2e137bf04e5454e977c258, module_cryptography$hazmat$primitives$kdf$scrypt, sizeof(void *)+sizeof(void *) );
|
||
|
frame_9231efc17e2e137bf04e5454e977c258 = cache_frame_9231efc17e2e137bf04e5454e977c258;
|
||
|
|
||
|
// Push the new frame as the currently active one.
|
||
|
pushFrameStack( frame_9231efc17e2e137bf04e5454e977c258 );
|
||
|
|
||
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
||
|
assert( Py_REFCNT( frame_9231efc17e2e137bf04e5454e977c258 ) == 2 ); // Frame stack
|
||
|
|
||
|
// Framed code:
|
||
|
{
|
||
|
nuitka_bool tmp_condition_result_1;
|
||
|
PyObject *tmp_source_name_1;
|
||
|
PyObject *tmp_attribute_value_1;
|
||
|
int tmp_truth_name_1;
|
||
|
CHECK_OBJECT( par_self );
|
||
|
tmp_source_name_1 = par_self;
|
||
|
tmp_attribute_value_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain__used );
|
||
|
if ( tmp_attribute_value_1 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 53;
|
||
|
type_description_1 = "oo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_truth_name_1 = CHECK_IF_TRUE( tmp_attribute_value_1 );
|
||
|
if ( tmp_truth_name_1 == -1 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
Py_DECREF( tmp_attribute_value_1 );
|
||
|
|
||
|
exception_lineno = 53;
|
||
|
type_description_1 = "oo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_condition_result_1 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
||
|
Py_DECREF( tmp_attribute_value_1 );
|
||
|
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
|
||
|
{
|
||
|
goto branch_yes_1;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
goto branch_no_1;
|
||
|
}
|
||
|
branch_yes_1:;
|
||
|
{
|
||
|
PyObject *tmp_raise_type_1;
|
||
|
PyObject *tmp_called_name_1;
|
||
|
PyObject *tmp_mvar_value_1;
|
||
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain_AlreadyFinalized );
|
||
|
|
||
|
if (unlikely( tmp_mvar_value_1 == NULL ))
|
||
|
{
|
||
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_AlreadyFinalized );
|
||
|
}
|
||
|
|
||
|
if ( tmp_mvar_value_1 == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_NameError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "AlreadyFinalized" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 54;
|
||
|
type_description_1 = "oo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_called_name_1 = tmp_mvar_value_1;
|
||
|
frame_9231efc17e2e137bf04e5454e977c258->m_frame.f_lineno = 54;
|
||
|
tmp_raise_type_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, &PyTuple_GET_ITEM( const_tuple_str_digest_33365f6522802fd79d99317cbd0be416_tuple, 0 ) );
|
||
|
|
||
|
if ( tmp_raise_type_1 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 54;
|
||
|
type_description_1 = "oo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
exception_type = tmp_raise_type_1;
|
||
|
exception_lineno = 54;
|
||
|
RAISE_EXCEPTION_WITH_TYPE( &exception_type, &exception_value, &exception_tb );
|
||
|
type_description_1 = "oo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
branch_no_1:;
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assattr_name_1;
|
||
|
PyObject *tmp_assattr_target_1;
|
||
|
tmp_assattr_name_1 = Py_True;
|
||
|
if ( par_self == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 55;
|
||
|
type_description_1 = "oo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_assattr_target_1 = par_self;
|
||
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain__used, tmp_assattr_name_1 );
|
||
|
if ( tmp_result == false )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 55;
|
||
|
type_description_1 = "oo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
}
|
||
|
{
|
||
|
nuitka_bool tmp_condition_result_2;
|
||
|
PyObject *tmp_operand_name_1;
|
||
|
PyObject *tmp_isinstance_inst_1;
|
||
|
PyObject *tmp_isinstance_cls_1;
|
||
|
if ( par_key_material == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "key_material" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 57;
|
||
|
type_description_1 = "oo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_isinstance_inst_1 = par_key_material;
|
||
|
tmp_isinstance_cls_1 = (PyObject *)&PyBytes_Type;
|
||
|
tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_1, tmp_isinstance_cls_1 );
|
||
|
if ( tmp_res == -1 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 57;
|
||
|
type_description_1 = "oo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_operand_name_1 = ( tmp_res != 0 ) ? Py_True : Py_False;
|
||
|
tmp_res = CHECK_IF_TRUE( tmp_operand_name_1 );
|
||
|
if ( tmp_res == -1 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 57;
|
||
|
type_description_1 = "oo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_condition_result_2 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
||
|
if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE )
|
||
|
{
|
||
|
goto branch_yes_2;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
goto branch_no_2;
|
||
|
}
|
||
|
branch_yes_2:;
|
||
|
{
|
||
|
PyObject *tmp_raise_type_2;
|
||
|
PyObject *tmp_make_exception_arg_1;
|
||
|
tmp_make_exception_arg_1 = const_str_digest_29189c3db8252d83782d4d07d8591bb7;
|
||
|
frame_9231efc17e2e137bf04e5454e977c258->m_frame.f_lineno = 58;
|
||
|
{
|
||
|
PyObject *call_args[] = { tmp_make_exception_arg_1 };
|
||
|
tmp_raise_type_2 = CALL_FUNCTION_WITH_ARGS1( PyExc_TypeError, call_args );
|
||
|
}
|
||
|
|
||
|
assert( !(tmp_raise_type_2 == NULL) );
|
||
|
exception_type = tmp_raise_type_2;
|
||
|
exception_lineno = 58;
|
||
|
RAISE_EXCEPTION_WITH_TYPE( &exception_type, &exception_value, &exception_tb );
|
||
|
type_description_1 = "oo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
branch_no_2:;
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_called_name_2;
|
||
|
PyObject *tmp_source_name_2;
|
||
|
PyObject *tmp_source_name_3;
|
||
|
PyObject *tmp_args_element_name_1;
|
||
|
PyObject *tmp_args_element_name_2;
|
||
|
PyObject *tmp_source_name_4;
|
||
|
PyObject *tmp_args_element_name_3;
|
||
|
PyObject *tmp_source_name_5;
|
||
|
PyObject *tmp_args_element_name_4;
|
||
|
PyObject *tmp_source_name_6;
|
||
|
PyObject *tmp_args_element_name_5;
|
||
|
PyObject *tmp_source_name_7;
|
||
|
PyObject *tmp_args_element_name_6;
|
||
|
PyObject *tmp_source_name_8;
|
||
|
if ( par_self == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 59;
|
||
|
type_description_1 = "oo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_source_name_3 = par_self;
|
||
|
tmp_source_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain__backend );
|
||
|
if ( tmp_source_name_2 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 59;
|
||
|
type_description_1 = "oo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_called_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_derive_scrypt );
|
||
|
Py_DECREF( tmp_source_name_2 );
|
||
|
if ( tmp_called_name_2 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 59;
|
||
|
type_description_1 = "oo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
if ( par_key_material == NULL )
|
||
|
{
|
||
|
Py_DECREF( tmp_called_name_2 );
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "key_material" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 60;
|
||
|
type_description_1 = "oo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_args_element_name_1 = par_key_material;
|
||
|
if ( par_self == NULL )
|
||
|
{
|
||
|
Py_DECREF( tmp_called_name_2 );
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 60;
|
||
|
type_description_1 = "oo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_source_name_4 = par_self;
|
||
|
tmp_args_element_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain__salt );
|
||
|
if ( tmp_args_element_name_2 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
Py_DECREF( tmp_called_name_2 );
|
||
|
|
||
|
exception_lineno = 60;
|
||
|
type_description_1 = "oo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
if ( par_self == NULL )
|
||
|
{
|
||
|
Py_DECREF( tmp_called_name_2 );
|
||
|
Py_DECREF( tmp_args_element_name_2 );
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 60;
|
||
|
type_description_1 = "oo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_source_name_5 = par_self;
|
||
|
tmp_args_element_name_3 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain__length );
|
||
|
if ( tmp_args_element_name_3 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
Py_DECREF( tmp_called_name_2 );
|
||
|
Py_DECREF( tmp_args_element_name_2 );
|
||
|
|
||
|
exception_lineno = 60;
|
||
|
type_description_1 = "oo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
if ( par_self == NULL )
|
||
|
{
|
||
|
Py_DECREF( tmp_called_name_2 );
|
||
|
Py_DECREF( tmp_args_element_name_2 );
|
||
|
Py_DECREF( tmp_args_element_name_3 );
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 60;
|
||
|
type_description_1 = "oo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_source_name_6 = par_self;
|
||
|
tmp_args_element_name_4 = LOOKUP_ATTRIBUTE( tmp_source_name_6, const_str_plain__n );
|
||
|
if ( tmp_args_element_name_4 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
Py_DECREF( tmp_called_name_2 );
|
||
|
Py_DECREF( tmp_args_element_name_2 );
|
||
|
Py_DECREF( tmp_args_element_name_3 );
|
||
|
|
||
|
exception_lineno = 60;
|
||
|
type_description_1 = "oo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
if ( par_self == NULL )
|
||
|
{
|
||
|
Py_DECREF( tmp_called_name_2 );
|
||
|
Py_DECREF( tmp_args_element_name_2 );
|
||
|
Py_DECREF( tmp_args_element_name_3 );
|
||
|
Py_DECREF( tmp_args_element_name_4 );
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 60;
|
||
|
type_description_1 = "oo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_source_name_7 = par_self;
|
||
|
tmp_args_element_name_5 = LOOKUP_ATTRIBUTE( tmp_source_name_7, const_str_plain__r );
|
||
|
if ( tmp_args_element_name_5 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
Py_DECREF( tmp_called_name_2 );
|
||
|
Py_DECREF( tmp_args_element_name_2 );
|
||
|
Py_DECREF( tmp_args_element_name_3 );
|
||
|
Py_DECREF( tmp_args_element_name_4 );
|
||
|
|
||
|
exception_lineno = 60;
|
||
|
type_description_1 = "oo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
if ( par_self == NULL )
|
||
|
{
|
||
|
Py_DECREF( tmp_called_name_2 );
|
||
|
Py_DECREF( tmp_args_element_name_2 );
|
||
|
Py_DECREF( tmp_args_element_name_3 );
|
||
|
Py_DECREF( tmp_args_element_name_4 );
|
||
|
Py_DECREF( tmp_args_element_name_5 );
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 60;
|
||
|
type_description_1 = "oo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_source_name_8 = par_self;
|
||
|
tmp_args_element_name_6 = LOOKUP_ATTRIBUTE( tmp_source_name_8, const_str_plain__p );
|
||
|
if ( tmp_args_element_name_6 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
Py_DECREF( tmp_called_name_2 );
|
||
|
Py_DECREF( tmp_args_element_name_2 );
|
||
|
Py_DECREF( tmp_args_element_name_3 );
|
||
|
Py_DECREF( tmp_args_element_name_4 );
|
||
|
Py_DECREF( tmp_args_element_name_5 );
|
||
|
|
||
|
exception_lineno = 60;
|
||
|
type_description_1 = "oo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
frame_9231efc17e2e137bf04e5454e977c258->m_frame.f_lineno = 59;
|
||
|
{
|
||
|
PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4, tmp_args_element_name_5, tmp_args_element_name_6 };
|
||
|
tmp_return_value = CALL_FUNCTION_WITH_ARGS6( tmp_called_name_2, call_args );
|
||
|
}
|
||
|
|
||
|
Py_DECREF( tmp_called_name_2 );
|
||
|
Py_DECREF( tmp_args_element_name_2 );
|
||
|
Py_DECREF( tmp_args_element_name_3 );
|
||
|
Py_DECREF( tmp_args_element_name_4 );
|
||
|
Py_DECREF( tmp_args_element_name_5 );
|
||
|
Py_DECREF( tmp_args_element_name_6 );
|
||
|
if ( tmp_return_value == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 59;
|
||
|
type_description_1 = "oo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
goto frame_return_exit_1;
|
||
|
}
|
||
|
|
||
|
#if 0
|
||
|
RESTORE_FRAME_EXCEPTION( frame_9231efc17e2e137bf04e5454e977c258 );
|
||
|
#endif
|
||
|
|
||
|
// Put the previous frame back on top.
|
||
|
popFrameStack();
|
||
|
|
||
|
goto frame_no_exception_1;
|
||
|
|
||
|
frame_return_exit_1:;
|
||
|
#if 0
|
||
|
RESTORE_FRAME_EXCEPTION( frame_9231efc17e2e137bf04e5454e977c258 );
|
||
|
#endif
|
||
|
|
||
|
// Put the previous frame back on top.
|
||
|
popFrameStack();
|
||
|
|
||
|
goto try_return_handler_1;
|
||
|
|
||
|
frame_exception_exit_1:;
|
||
|
|
||
|
#if 0
|
||
|
RESTORE_FRAME_EXCEPTION( frame_9231efc17e2e137bf04e5454e977c258 );
|
||
|
#endif
|
||
|
|
||
|
if ( exception_tb == NULL )
|
||
|
{
|
||
|
exception_tb = MAKE_TRACEBACK( frame_9231efc17e2e137bf04e5454e977c258, exception_lineno );
|
||
|
}
|
||
|
else if ( exception_tb->tb_frame != &frame_9231efc17e2e137bf04e5454e977c258->m_frame )
|
||
|
{
|
||
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_9231efc17e2e137bf04e5454e977c258, exception_lineno );
|
||
|
}
|
||
|
|
||
|
// Attachs locals to frame if any.
|
||
|
Nuitka_Frame_AttachLocals(
|
||
|
(struct Nuitka_FrameObject *)frame_9231efc17e2e137bf04e5454e977c258,
|
||
|
type_description_1,
|
||
|
par_self,
|
||
|
par_key_material
|
||
|
);
|
||
|
|
||
|
|
||
|
// Release cached frame.
|
||
|
if ( frame_9231efc17e2e137bf04e5454e977c258 == cache_frame_9231efc17e2e137bf04e5454e977c258 )
|
||
|
{
|
||
|
Py_DECREF( frame_9231efc17e2e137bf04e5454e977c258 );
|
||
|
}
|
||
|
cache_frame_9231efc17e2e137bf04e5454e977c258 = NULL;
|
||
|
|
||
|
assertFrameObject( frame_9231efc17e2e137bf04e5454e977c258 );
|
||
|
|
||
|
// Put the previous frame back on top.
|
||
|
popFrameStack();
|
||
|
|
||
|
// Return the error.
|
||
|
goto try_except_handler_1;
|
||
|
|
||
|
frame_no_exception_1:;
|
||
|
// tried codes exits in all cases
|
||
|
NUITKA_CANNOT_GET_HERE( cryptography$hazmat$primitives$kdf$scrypt$$$function_2_derive );
|
||
|
return NULL;
|
||
|
// Return handler code:
|
||
|
try_return_handler_1:;
|
||
|
{
|
||
|
Py_XDECREF( par_self );
|
||
|
par_self = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( par_key_material );
|
||
|
par_key_material = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
goto function_return_exit;
|
||
|
}
|
||
|
// Exception handler code:
|
||
|
try_except_handler_1:;
|
||
|
exception_keeper_type_1 = exception_type;
|
||
|
exception_keeper_value_1 = exception_value;
|
||
|
exception_keeper_tb_1 = exception_tb;
|
||
|
exception_keeper_lineno_1 = exception_lineno;
|
||
|
exception_type = NULL;
|
||
|
exception_value = NULL;
|
||
|
exception_tb = NULL;
|
||
|
exception_lineno = 0;
|
||
|
|
||
|
{
|
||
|
Py_XDECREF( par_self );
|
||
|
par_self = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( par_key_material );
|
||
|
par_key_material = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
// Re-raise.
|
||
|
exception_type = exception_keeper_type_1;
|
||
|
exception_value = exception_keeper_value_1;
|
||
|
exception_tb = exception_keeper_tb_1;
|
||
|
exception_lineno = exception_keeper_lineno_1;
|
||
|
|
||
|
goto function_exception_exit;
|
||
|
}
|
||
|
// End of try:
|
||
|
}
|
||
|
|
||
|
// Return statement must have exited already.
|
||
|
NUITKA_CANNOT_GET_HERE( cryptography$hazmat$primitives$kdf$scrypt$$$function_2_derive );
|
||
|
return NULL;
|
||
|
|
||
|
function_exception_exit:
|
||
|
assert( exception_type );
|
||
|
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
|
||
|
|
||
|
return NULL;
|
||
|
function_return_exit:
|
||
|
|
||
|
CHECK_OBJECT( tmp_return_value );
|
||
|
assert( had_error || !ERROR_OCCURRED() );
|
||
|
return tmp_return_value;
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
static PyObject *impl_cryptography$hazmat$primitives$kdf$scrypt$$$function_3_verify( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
|
||
|
{
|
||
|
// Preserve error status for checks
|
||
|
#ifndef __NUITKA_NO_ASSERT__
|
||
|
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
|
||
|
#endif
|
||
|
|
||
|
// Local variable declarations.
|
||
|
PyObject *par_self = python_pars[ 0 ];
|
||
|
PyObject *par_key_material = python_pars[ 1 ];
|
||
|
PyObject *par_expected_key = python_pars[ 2 ];
|
||
|
PyObject *var_derived_key = NULL;
|
||
|
struct Nuitka_FrameObject *frame_1438ae337665449694c0576c65345bce;
|
||
|
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
|
||
|
PyObject *exception_type = NULL;
|
||
|
PyObject *exception_value = NULL;
|
||
|
PyTracebackObject *exception_tb = NULL;
|
||
|
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
|
||
|
int tmp_res;
|
||
|
static struct Nuitka_FrameObject *cache_frame_1438ae337665449694c0576c65345bce = NULL;
|
||
|
PyObject *tmp_return_value = NULL;
|
||
|
PyObject *exception_keeper_type_1;
|
||
|
PyObject *exception_keeper_value_1;
|
||
|
PyTracebackObject *exception_keeper_tb_1;
|
||
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
|
||
|
|
||
|
// Actual function code.
|
||
|
{
|
||
|
// Tried code:
|
||
|
MAKE_OR_REUSE_FRAME( cache_frame_1438ae337665449694c0576c65345bce, codeobj_1438ae337665449694c0576c65345bce, module_cryptography$hazmat$primitives$kdf$scrypt, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) );
|
||
|
frame_1438ae337665449694c0576c65345bce = cache_frame_1438ae337665449694c0576c65345bce;
|
||
|
|
||
|
// Push the new frame as the currently active one.
|
||
|
pushFrameStack( frame_1438ae337665449694c0576c65345bce );
|
||
|
|
||
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
||
|
assert( Py_REFCNT( frame_1438ae337665449694c0576c65345bce ) == 2 ); // Frame stack
|
||
|
|
||
|
// Framed code:
|
||
|
{
|
||
|
PyObject *tmp_assign_source_1;
|
||
|
PyObject *tmp_called_name_1;
|
||
|
PyObject *tmp_source_name_1;
|
||
|
PyObject *tmp_args_element_name_1;
|
||
|
CHECK_OBJECT( par_self );
|
||
|
tmp_source_name_1 = par_self;
|
||
|
tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_derive );
|
||
|
if ( tmp_called_name_1 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 64;
|
||
|
type_description_1 = "oooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
if ( par_key_material == NULL )
|
||
|
{
|
||
|
Py_DECREF( tmp_called_name_1 );
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "key_material" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 64;
|
||
|
type_description_1 = "oooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_args_element_name_1 = par_key_material;
|
||
|
frame_1438ae337665449694c0576c65345bce->m_frame.f_lineno = 64;
|
||
|
{
|
||
|
PyObject *call_args[] = { tmp_args_element_name_1 };
|
||
|
tmp_assign_source_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args );
|
||
|
}
|
||
|
|
||
|
Py_DECREF( tmp_called_name_1 );
|
||
|
if ( tmp_assign_source_1 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 64;
|
||
|
type_description_1 = "oooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
assert( var_derived_key == NULL );
|
||
|
var_derived_key = tmp_assign_source_1;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
nuitka_bool tmp_condition_result_1;
|
||
|
PyObject *tmp_operand_name_1;
|
||
|
PyObject *tmp_called_name_2;
|
||
|
PyObject *tmp_source_name_2;
|
||
|
PyObject *tmp_mvar_value_1;
|
||
|
PyObject *tmp_args_element_name_2;
|
||
|
PyObject *tmp_args_element_name_3;
|
||
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain_constant_time );
|
||
|
|
||
|
if (unlikely( tmp_mvar_value_1 == NULL ))
|
||
|
{
|
||
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_constant_time );
|
||
|
}
|
||
|
|
||
|
if ( tmp_mvar_value_1 == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_NameError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "constant_time" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 65;
|
||
|
type_description_1 = "oooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_source_name_2 = tmp_mvar_value_1;
|
||
|
tmp_called_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_bytes_eq );
|
||
|
if ( tmp_called_name_2 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 65;
|
||
|
type_description_1 = "oooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
if ( var_derived_key == NULL )
|
||
|
{
|
||
|
Py_DECREF( tmp_called_name_2 );
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "derived_key" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 65;
|
||
|
type_description_1 = "oooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_args_element_name_2 = var_derived_key;
|
||
|
if ( par_expected_key == NULL )
|
||
|
{
|
||
|
Py_DECREF( tmp_called_name_2 );
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "expected_key" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 65;
|
||
|
type_description_1 = "oooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_args_element_name_3 = par_expected_key;
|
||
|
frame_1438ae337665449694c0576c65345bce->m_frame.f_lineno = 65;
|
||
|
{
|
||
|
PyObject *call_args[] = { tmp_args_element_name_2, tmp_args_element_name_3 };
|
||
|
tmp_operand_name_1 = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_2, call_args );
|
||
|
}
|
||
|
|
||
|
Py_DECREF( tmp_called_name_2 );
|
||
|
if ( tmp_operand_name_1 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 65;
|
||
|
type_description_1 = "oooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_res = CHECK_IF_TRUE( tmp_operand_name_1 );
|
||
|
Py_DECREF( tmp_operand_name_1 );
|
||
|
if ( tmp_res == -1 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 65;
|
||
|
type_description_1 = "oooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_condition_result_1 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
||
|
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
|
||
|
{
|
||
|
goto branch_yes_1;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
goto branch_no_1;
|
||
|
}
|
||
|
branch_yes_1:;
|
||
|
{
|
||
|
PyObject *tmp_raise_type_1;
|
||
|
PyObject *tmp_called_name_3;
|
||
|
PyObject *tmp_mvar_value_2;
|
||
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain_InvalidKey );
|
||
|
|
||
|
if (unlikely( tmp_mvar_value_2 == NULL ))
|
||
|
{
|
||
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_InvalidKey );
|
||
|
}
|
||
|
|
||
|
if ( tmp_mvar_value_2 == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_NameError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "InvalidKey" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 66;
|
||
|
type_description_1 = "oooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_called_name_3 = tmp_mvar_value_2;
|
||
|
frame_1438ae337665449694c0576c65345bce->m_frame.f_lineno = 66;
|
||
|
tmp_raise_type_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_3, &PyTuple_GET_ITEM( const_tuple_str_digest_6c6b397850e24f593b2f486082b689c5_tuple, 0 ) );
|
||
|
|
||
|
if ( tmp_raise_type_1 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 66;
|
||
|
type_description_1 = "oooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
exception_type = tmp_raise_type_1;
|
||
|
exception_lineno = 66;
|
||
|
RAISE_EXCEPTION_WITH_TYPE( &exception_type, &exception_value, &exception_tb );
|
||
|
type_description_1 = "oooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
branch_no_1:;
|
||
|
}
|
||
|
|
||
|
#if 0
|
||
|
RESTORE_FRAME_EXCEPTION( frame_1438ae337665449694c0576c65345bce );
|
||
|
#endif
|
||
|
|
||
|
// Put the previous frame back on top.
|
||
|
popFrameStack();
|
||
|
|
||
|
goto frame_no_exception_1;
|
||
|
|
||
|
frame_exception_exit_1:;
|
||
|
|
||
|
#if 0
|
||
|
RESTORE_FRAME_EXCEPTION( frame_1438ae337665449694c0576c65345bce );
|
||
|
#endif
|
||
|
|
||
|
if ( exception_tb == NULL )
|
||
|
{
|
||
|
exception_tb = MAKE_TRACEBACK( frame_1438ae337665449694c0576c65345bce, exception_lineno );
|
||
|
}
|
||
|
else if ( exception_tb->tb_frame != &frame_1438ae337665449694c0576c65345bce->m_frame )
|
||
|
{
|
||
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_1438ae337665449694c0576c65345bce, exception_lineno );
|
||
|
}
|
||
|
|
||
|
// Attachs locals to frame if any.
|
||
|
Nuitka_Frame_AttachLocals(
|
||
|
(struct Nuitka_FrameObject *)frame_1438ae337665449694c0576c65345bce,
|
||
|
type_description_1,
|
||
|
par_self,
|
||
|
par_key_material,
|
||
|
par_expected_key,
|
||
|
var_derived_key
|
||
|
);
|
||
|
|
||
|
|
||
|
// Release cached frame.
|
||
|
if ( frame_1438ae337665449694c0576c65345bce == cache_frame_1438ae337665449694c0576c65345bce )
|
||
|
{
|
||
|
Py_DECREF( frame_1438ae337665449694c0576c65345bce );
|
||
|
}
|
||
|
cache_frame_1438ae337665449694c0576c65345bce = NULL;
|
||
|
|
||
|
assertFrameObject( frame_1438ae337665449694c0576c65345bce );
|
||
|
|
||
|
// Put the previous frame back on top.
|
||
|
popFrameStack();
|
||
|
|
||
|
// Return the error.
|
||
|
goto try_except_handler_1;
|
||
|
|
||
|
frame_no_exception_1:;
|
||
|
{
|
||
|
tmp_return_value = Py_None;
|
||
|
Py_INCREF( tmp_return_value );
|
||
|
goto try_return_handler_1;
|
||
|
}
|
||
|
// tried codes exits in all cases
|
||
|
NUITKA_CANNOT_GET_HERE( cryptography$hazmat$primitives$kdf$scrypt$$$function_3_verify );
|
||
|
return NULL;
|
||
|
// Return handler code:
|
||
|
try_return_handler_1:;
|
||
|
{
|
||
|
Py_XDECREF( par_self );
|
||
|
par_self = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( par_key_material );
|
||
|
par_key_material = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( par_expected_key );
|
||
|
par_expected_key = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( var_derived_key );
|
||
|
var_derived_key = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
goto function_return_exit;
|
||
|
}
|
||
|
// Exception handler code:
|
||
|
try_except_handler_1:;
|
||
|
exception_keeper_type_1 = exception_type;
|
||
|
exception_keeper_value_1 = exception_value;
|
||
|
exception_keeper_tb_1 = exception_tb;
|
||
|
exception_keeper_lineno_1 = exception_lineno;
|
||
|
exception_type = NULL;
|
||
|
exception_value = NULL;
|
||
|
exception_tb = NULL;
|
||
|
exception_lineno = 0;
|
||
|
|
||
|
{
|
||
|
Py_XDECREF( par_self );
|
||
|
par_self = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( par_key_material );
|
||
|
par_key_material = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( par_expected_key );
|
||
|
par_expected_key = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( var_derived_key );
|
||
|
var_derived_key = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
// Re-raise.
|
||
|
exception_type = exception_keeper_type_1;
|
||
|
exception_value = exception_keeper_value_1;
|
||
|
exception_tb = exception_keeper_tb_1;
|
||
|
exception_lineno = exception_keeper_lineno_1;
|
||
|
|
||
|
goto function_exception_exit;
|
||
|
}
|
||
|
// End of try:
|
||
|
}
|
||
|
|
||
|
// Return statement must have exited already.
|
||
|
NUITKA_CANNOT_GET_HERE( cryptography$hazmat$primitives$kdf$scrypt$$$function_3_verify );
|
||
|
return NULL;
|
||
|
|
||
|
function_exception_exit:
|
||
|
assert( exception_type );
|
||
|
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
|
||
|
|
||
|
return NULL;
|
||
|
function_return_exit:
|
||
|
|
||
|
CHECK_OBJECT( tmp_return_value );
|
||
|
assert( had_error || !ERROR_OCCURRED() );
|
||
|
return tmp_return_value;
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
static PyObject *MAKE_FUNCTION_cryptography$hazmat$primitives$kdf$scrypt$$$function_1___init__( )
|
||
|
{
|
||
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
||
|
impl_cryptography$hazmat$primitives$kdf$scrypt$$$function_1___init__,
|
||
|
const_str_plain___init__,
|
||
|
#if PYTHON_VERSION >= 300
|
||
|
const_str_digest_fe6cf15ed0ccba07c0ee467a014881cc,
|
||
|
#endif
|
||
|
codeobj_d4d958c05d089e2700030b1b112c535d,
|
||
|
NULL,
|
||
|
#if PYTHON_VERSION >= 300
|
||
|
NULL,
|
||
|
NULL,
|
||
|
#endif
|
||
|
module_cryptography$hazmat$primitives$kdf$scrypt,
|
||
|
NULL,
|
||
|
0
|
||
|
);
|
||
|
|
||
|
return (PyObject *)result;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
static PyObject *MAKE_FUNCTION_cryptography$hazmat$primitives$kdf$scrypt$$$function_2_derive( )
|
||
|
{
|
||
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
||
|
impl_cryptography$hazmat$primitives$kdf$scrypt$$$function_2_derive,
|
||
|
const_str_plain_derive,
|
||
|
#if PYTHON_VERSION >= 300
|
||
|
const_str_digest_5b39a4fccb134d6854eaa60a7e1a9a7d,
|
||
|
#endif
|
||
|
codeobj_9231efc17e2e137bf04e5454e977c258,
|
||
|
NULL,
|
||
|
#if PYTHON_VERSION >= 300
|
||
|
NULL,
|
||
|
NULL,
|
||
|
#endif
|
||
|
module_cryptography$hazmat$primitives$kdf$scrypt,
|
||
|
NULL,
|
||
|
0
|
||
|
);
|
||
|
|
||
|
return (PyObject *)result;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
static PyObject *MAKE_FUNCTION_cryptography$hazmat$primitives$kdf$scrypt$$$function_3_verify( )
|
||
|
{
|
||
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
||
|
impl_cryptography$hazmat$primitives$kdf$scrypt$$$function_3_verify,
|
||
|
const_str_plain_verify,
|
||
|
#if PYTHON_VERSION >= 300
|
||
|
const_str_digest_f0f69e514f7ff94196f71da6ea912ae0,
|
||
|
#endif
|
||
|
codeobj_1438ae337665449694c0576c65345bce,
|
||
|
NULL,
|
||
|
#if PYTHON_VERSION >= 300
|
||
|
NULL,
|
||
|
NULL,
|
||
|
#endif
|
||
|
module_cryptography$hazmat$primitives$kdf$scrypt,
|
||
|
NULL,
|
||
|
0
|
||
|
);
|
||
|
|
||
|
return (PyObject *)result;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
#if PYTHON_VERSION >= 300
|
||
|
static struct PyModuleDef mdef_cryptography$hazmat$primitives$kdf$scrypt =
|
||
|
{
|
||
|
PyModuleDef_HEAD_INIT,
|
||
|
"cryptography.hazmat.primitives.kdf.scrypt", /* m_name */
|
||
|
NULL, /* m_doc */
|
||
|
-1, /* m_size */
|
||
|
NULL, /* m_methods */
|
||
|
NULL, /* m_reload */
|
||
|
NULL, /* m_traverse */
|
||
|
NULL, /* m_clear */
|
||
|
NULL, /* m_free */
|
||
|
};
|
||
|
#endif
|
||
|
|
||
|
extern PyObject *const_str_plain___package__;
|
||
|
|
||
|
#if PYTHON_VERSION >= 300
|
||
|
extern PyObject *const_str_dot;
|
||
|
|
||
|
extern PyObject *const_str_plain___loader__;
|
||
|
extern PyObject *metapath_based_loader;
|
||
|
#endif
|
||
|
|
||
|
#if PYTHON_VERSION >= 340
|
||
|
extern PyObject *const_str_plain___spec__;
|
||
|
extern PyObject *const_str_plain__initializing;
|
||
|
#endif
|
||
|
|
||
|
extern void _initCompiledCellType();
|
||
|
extern void _initCompiledGeneratorType();
|
||
|
extern void _initCompiledFunctionType();
|
||
|
extern void _initCompiledMethodType();
|
||
|
extern void _initCompiledFrameType();
|
||
|
#if PYTHON_VERSION >= 350
|
||
|
extern void _initCompiledCoroutineTypes();
|
||
|
#endif
|
||
|
#if PYTHON_VERSION >= 360
|
||
|
extern void _initCompiledAsyncgenTypes();
|
||
|
#endif
|
||
|
|
||
|
// The exported interface to CPython. On import of the module, this function
|
||
|
// gets called. It has to have an exact function name, in cases it's a shared
|
||
|
// library export. This is hidden behind the MOD_INIT_DECL.
|
||
|
|
||
|
MOD_INIT_DECL( cryptography$hazmat$primitives$kdf$scrypt )
|
||
|
{
|
||
|
#if defined(_NUITKA_EXE) || PYTHON_VERSION >= 300
|
||
|
static bool _init_done = false;
|
||
|
|
||
|
// Modules might be imported repeatedly, which is to be ignored.
|
||
|
if ( _init_done )
|
||
|
{
|
||
|
return MOD_RETURN_VALUE( module_cryptography$hazmat$primitives$kdf$scrypt );
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
_init_done = true;
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#ifdef _NUITKA_MODULE
|
||
|
// In case of a stand alone extension module, need to call initialization
|
||
|
// the init here because that's the first and only time we are going to get
|
||
|
// called here.
|
||
|
|
||
|
// Initialize the constant values used.
|
||
|
_initBuiltinModule();
|
||
|
createGlobalConstants();
|
||
|
|
||
|
/* Initialize the compiled types of Nuitka. */
|
||
|
_initCompiledCellType();
|
||
|
_initCompiledGeneratorType();
|
||
|
_initCompiledFunctionType();
|
||
|
_initCompiledMethodType();
|
||
|
_initCompiledFrameType();
|
||
|
#if PYTHON_VERSION >= 350
|
||
|
_initCompiledCoroutineTypes();
|
||
|
#endif
|
||
|
#if PYTHON_VERSION >= 360
|
||
|
_initCompiledAsyncgenTypes();
|
||
|
#endif
|
||
|
|
||
|
#if PYTHON_VERSION < 300
|
||
|
_initSlotCompare();
|
||
|
#endif
|
||
|
#if PYTHON_VERSION >= 270
|
||
|
_initSlotIternext();
|
||
|
#endif
|
||
|
|
||
|
patchBuiltinModule();
|
||
|
patchTypeComparison();
|
||
|
|
||
|
// Enable meta path based loader if not already done.
|
||
|
#ifdef _NUITKA_TRACE
|
||
|
puts("cryptography.hazmat.primitives.kdf.scrypt: Calling setupMetaPathBasedLoader().");
|
||
|
#endif
|
||
|
setupMetaPathBasedLoader();
|
||
|
|
||
|
#if PYTHON_VERSION >= 300
|
||
|
patchInspectModule();
|
||
|
#endif
|
||
|
|
||
|
#endif
|
||
|
|
||
|
/* The constants only used by this module are created now. */
|
||
|
#ifdef _NUITKA_TRACE
|
||
|
puts("cryptography.hazmat.primitives.kdf.scrypt: Calling createModuleConstants().");
|
||
|
#endif
|
||
|
createModuleConstants();
|
||
|
|
||
|
/* The code objects used by this module are created now. */
|
||
|
#ifdef _NUITKA_TRACE
|
||
|
puts("cryptography.hazmat.primitives.kdf.scrypt: Calling createModuleCodeObjects().");
|
||
|
#endif
|
||
|
createModuleCodeObjects();
|
||
|
|
||
|
// puts( "in initcryptography$hazmat$primitives$kdf$scrypt" );
|
||
|
|
||
|
// Create the module object first. There are no methods initially, all are
|
||
|
// added dynamically in actual code only. Also no "__doc__" is initially
|
||
|
// set at this time, as it could not contain NUL characters this way, they
|
||
|
// are instead set in early module code. No "self" for modules, we have no
|
||
|
// use for it.
|
||
|
#if PYTHON_VERSION < 300
|
||
|
module_cryptography$hazmat$primitives$kdf$scrypt = Py_InitModule4(
|
||
|
"cryptography.hazmat.primitives.kdf.scrypt", // Module Name
|
||
|
NULL, // No methods initially, all are added
|
||
|
// dynamically in actual module code only.
|
||
|
NULL, // No "__doc__" is initially set, as it could
|
||
|
// not contain NUL this way, added early in
|
||
|
// actual code.
|
||
|
NULL, // No self for modules, we don't use it.
|
||
|
PYTHON_API_VERSION
|
||
|
);
|
||
|
#else
|
||
|
|
||
|
module_cryptography$hazmat$primitives$kdf$scrypt = PyModule_Create( &mdef_cryptography$hazmat$primitives$kdf$scrypt );
|
||
|
#endif
|
||
|
|
||
|
moduledict_cryptography$hazmat$primitives$kdf$scrypt = MODULE_DICT( module_cryptography$hazmat$primitives$kdf$scrypt );
|
||
|
|
||
|
// Update "__package__" value to what it ought to be.
|
||
|
{
|
||
|
#if 0
|
||
|
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain___name__ );
|
||
|
|
||
|
UPDATE_STRING_DICT1(
|
||
|
moduledict_cryptography$hazmat$primitives$kdf$scrypt,
|
||
|
(Nuitka_StringObject *)const_str_plain___package__,
|
||
|
module_name
|
||
|
);
|
||
|
|
||
|
#else
|
||
|
|
||
|
#if PYTHON_VERSION < 300
|
||
|
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain___name__ );
|
||
|
char const *module_name_cstr = PyString_AS_STRING( module_name );
|
||
|
|
||
|
char const *last_dot = strrchr( module_name_cstr, '.' );
|
||
|
|
||
|
if ( last_dot != NULL )
|
||
|
{
|
||
|
UPDATE_STRING_DICT1(
|
||
|
moduledict_cryptography$hazmat$primitives$kdf$scrypt,
|
||
|
(Nuitka_StringObject *)const_str_plain___package__,
|
||
|
PyString_FromStringAndSize( module_name_cstr, last_dot - module_name_cstr )
|
||
|
);
|
||
|
}
|
||
|
#else
|
||
|
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain___name__ );
|
||
|
Py_ssize_t dot_index = PyUnicode_Find( module_name, const_str_dot, 0, PyUnicode_GetLength( module_name ), -1 );
|
||
|
|
||
|
if ( dot_index != -1 )
|
||
|
{
|
||
|
UPDATE_STRING_DICT1(
|
||
|
moduledict_cryptography$hazmat$primitives$kdf$scrypt,
|
||
|
(Nuitka_StringObject *)const_str_plain___package__,
|
||
|
PyUnicode_Substring( module_name, 0, dot_index )
|
||
|
);
|
||
|
}
|
||
|
#endif
|
||
|
#endif
|
||
|
}
|
||
|
|
||
|
CHECK_OBJECT( module_cryptography$hazmat$primitives$kdf$scrypt );
|
||
|
|
||
|
// Seems to work for Python2.7 out of the box, but for Python3, the module
|
||
|
// doesn't automatically enter "sys.modules", so do it manually.
|
||
|
#if PYTHON_VERSION >= 300
|
||
|
{
|
||
|
int r = PyObject_SetItem( PySys_GetObject( (char *)"modules" ), const_str_digest_ab892d0487e11166d363bb53eca5ed65, module_cryptography$hazmat$primitives$kdf$scrypt );
|
||
|
|
||
|
assert( r != -1 );
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
// For deep importing of a module we need to have "__builtins__", so we set
|
||
|
// it ourselves in the same way than CPython does. Note: This must be done
|
||
|
// before the frame object is allocated, or else it may fail.
|
||
|
|
||
|
if ( GET_STRING_DICT_VALUE( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain___builtins__ ) == NULL )
|
||
|
{
|
||
|
PyObject *value = (PyObject *)builtin_module;
|
||
|
|
||
|
// Check if main module, not a dict then but the module itself.
|
||
|
#if !defined(_NUITKA_EXE) || !0
|
||
|
value = PyModule_GetDict( value );
|
||
|
#endif
|
||
|
|
||
|
UPDATE_STRING_DICT0( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain___builtins__, value );
|
||
|
}
|
||
|
|
||
|
#if PYTHON_VERSION >= 300
|
||
|
UPDATE_STRING_DICT0( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain___loader__, metapath_based_loader );
|
||
|
#endif
|
||
|
|
||
|
#if PYTHON_VERSION >= 340
|
||
|
#if 0
|
||
|
UPDATE_STRING_DICT0( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain___spec__, Py_None );
|
||
|
#else
|
||
|
{
|
||
|
PyObject *bootstrap_module = PyImport_ImportModule("importlib._bootstrap");
|
||
|
CHECK_OBJECT( bootstrap_module );
|
||
|
PyObject *module_spec_class = PyObject_GetAttrString( bootstrap_module, "ModuleSpec" );
|
||
|
Py_DECREF( bootstrap_module );
|
||
|
|
||
|
PyObject *args[] = {
|
||
|
GET_STRING_DICT_VALUE( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain___name__ ),
|
||
|
metapath_based_loader
|
||
|
};
|
||
|
|
||
|
PyObject *spec_value = CALL_FUNCTION_WITH_ARGS2(
|
||
|
module_spec_class,
|
||
|
args
|
||
|
);
|
||
|
|
||
|
SET_ATTRIBUTE( spec_value, const_str_plain__initializing, Py_True );
|
||
|
|
||
|
UPDATE_STRING_DICT1( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain___spec__, spec_value );
|
||
|
|
||
|
Py_DECREF( module_spec_class );
|
||
|
}
|
||
|
#endif
|
||
|
#endif
|
||
|
|
||
|
|
||
|
// Temp variables if any
|
||
|
PyObject *outline_0_var___class__ = NULL;
|
||
|
PyObject *tmp_class_creation_1__bases = NULL;
|
||
|
PyObject *tmp_class_creation_1__class_decl_dict = NULL;
|
||
|
PyObject *tmp_class_creation_1__metaclass = NULL;
|
||
|
PyObject *tmp_class_creation_1__prepared = NULL;
|
||
|
PyObject *tmp_import_from_1__module = NULL;
|
||
|
PyObject *tmp_import_from_2__module = NULL;
|
||
|
struct Nuitka_FrameObject *frame_77b8afe22b74632a7cfffa4dcc92c8e0;
|
||
|
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
|
||
|
PyObject *exception_type = NULL;
|
||
|
PyObject *exception_value = NULL;
|
||
|
PyTracebackObject *exception_tb = NULL;
|
||
|
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
|
||
|
PyObject *exception_keeper_type_1;
|
||
|
PyObject *exception_keeper_value_1;
|
||
|
PyTracebackObject *exception_keeper_tb_1;
|
||
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
|
||
|
PyObject *exception_keeper_type_2;
|
||
|
PyObject *exception_keeper_value_2;
|
||
|
PyTracebackObject *exception_keeper_tb_2;
|
||
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2;
|
||
|
int tmp_res;
|
||
|
PyObject *tmp_dictdel_dict;
|
||
|
PyObject *tmp_dictdel_key;
|
||
|
bool tmp_result;
|
||
|
PyObject *locals_cryptography$hazmat$primitives$kdf$scrypt_24 = NULL;
|
||
|
PyObject *tmp_dictset_value;
|
||
|
struct Nuitka_FrameObject *frame_ab12869ed29e9faea291490ddc8d9b89_2;
|
||
|
NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL;
|
||
|
static struct Nuitka_FrameObject *cache_frame_ab12869ed29e9faea291490ddc8d9b89_2 = NULL;
|
||
|
PyObject *exception_keeper_type_3;
|
||
|
PyObject *exception_keeper_value_3;
|
||
|
PyTracebackObject *exception_keeper_tb_3;
|
||
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3;
|
||
|
PyObject *exception_keeper_type_4;
|
||
|
PyObject *exception_keeper_value_4;
|
||
|
PyTracebackObject *exception_keeper_tb_4;
|
||
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4;
|
||
|
PyObject *exception_keeper_type_5;
|
||
|
PyObject *exception_keeper_value_5;
|
||
|
PyTracebackObject *exception_keeper_tb_5;
|
||
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5;
|
||
|
|
||
|
// Module code.
|
||
|
{
|
||
|
PyObject *tmp_assign_source_1;
|
||
|
tmp_assign_source_1 = Py_None;
|
||
|
UPDATE_STRING_DICT0( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain___doc__, tmp_assign_source_1 );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_2;
|
||
|
tmp_assign_source_2 = const_str_digest_bf6e32572d6b8800a6599ed07eeebe14;
|
||
|
UPDATE_STRING_DICT0( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain___file__, tmp_assign_source_2 );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_3;
|
||
|
tmp_assign_source_3 = Py_None;
|
||
|
UPDATE_STRING_DICT0( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain___cached__, tmp_assign_source_3 );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_4;
|
||
|
tmp_assign_source_4 = PyImport_ImportModule("__future__");
|
||
|
assert( !(tmp_assign_source_4 == NULL) );
|
||
|
assert( tmp_import_from_1__module == NULL );
|
||
|
Py_INCREF( tmp_assign_source_4 );
|
||
|
tmp_import_from_1__module = tmp_assign_source_4;
|
||
|
|
||
|
}
|
||
|
// Frame without reuse.
|
||
|
frame_77b8afe22b74632a7cfffa4dcc92c8e0 = MAKE_MODULE_FRAME( codeobj_77b8afe22b74632a7cfffa4dcc92c8e0, module_cryptography$hazmat$primitives$kdf$scrypt );
|
||
|
|
||
|
// Push the new frame as the currently active one, and we should be exclusively
|
||
|
// owning it.
|
||
|
pushFrameStack( frame_77b8afe22b74632a7cfffa4dcc92c8e0 );
|
||
|
assert( Py_REFCNT( frame_77b8afe22b74632a7cfffa4dcc92c8e0 ) == 2 );
|
||
|
|
||
|
// Framed code:
|
||
|
{
|
||
|
// Tried code:
|
||
|
{
|
||
|
PyObject *tmp_assign_source_5;
|
||
|
PyObject *tmp_import_name_from_1;
|
||
|
CHECK_OBJECT( tmp_import_from_1__module );
|
||
|
tmp_import_name_from_1 = tmp_import_from_1__module;
|
||
|
tmp_assign_source_5 = IMPORT_NAME( tmp_import_name_from_1, const_str_plain_absolute_import );
|
||
|
if ( tmp_assign_source_5 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 5;
|
||
|
|
||
|
goto try_except_handler_1;
|
||
|
}
|
||
|
UPDATE_STRING_DICT1( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain_absolute_import, tmp_assign_source_5 );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_6;
|
||
|
PyObject *tmp_import_name_from_2;
|
||
|
CHECK_OBJECT( tmp_import_from_1__module );
|
||
|
tmp_import_name_from_2 = tmp_import_from_1__module;
|
||
|
tmp_assign_source_6 = IMPORT_NAME( tmp_import_name_from_2, const_str_plain_division );
|
||
|
if ( tmp_assign_source_6 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 5;
|
||
|
|
||
|
goto try_except_handler_1;
|
||
|
}
|
||
|
UPDATE_STRING_DICT1( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain_division, tmp_assign_source_6 );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_7;
|
||
|
PyObject *tmp_import_name_from_3;
|
||
|
CHECK_OBJECT( tmp_import_from_1__module );
|
||
|
tmp_import_name_from_3 = tmp_import_from_1__module;
|
||
|
tmp_assign_source_7 = IMPORT_NAME( tmp_import_name_from_3, const_str_plain_print_function );
|
||
|
if ( tmp_assign_source_7 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 5;
|
||
|
|
||
|
goto try_except_handler_1;
|
||
|
}
|
||
|
UPDATE_STRING_DICT1( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain_print_function, tmp_assign_source_7 );
|
||
|
}
|
||
|
goto try_end_1;
|
||
|
// Exception handler code:
|
||
|
try_except_handler_1:;
|
||
|
exception_keeper_type_1 = exception_type;
|
||
|
exception_keeper_value_1 = exception_value;
|
||
|
exception_keeper_tb_1 = exception_tb;
|
||
|
exception_keeper_lineno_1 = exception_lineno;
|
||
|
exception_type = NULL;
|
||
|
exception_value = NULL;
|
||
|
exception_tb = NULL;
|
||
|
exception_lineno = 0;
|
||
|
|
||
|
{
|
||
|
CHECK_OBJECT( (PyObject *)tmp_import_from_1__module );
|
||
|
Py_DECREF( tmp_import_from_1__module );
|
||
|
tmp_import_from_1__module = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
// Re-raise.
|
||
|
exception_type = exception_keeper_type_1;
|
||
|
exception_value = exception_keeper_value_1;
|
||
|
exception_tb = exception_keeper_tb_1;
|
||
|
exception_lineno = exception_keeper_lineno_1;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
// End of try:
|
||
|
try_end_1:;
|
||
|
}
|
||
|
{
|
||
|
CHECK_OBJECT( (PyObject *)tmp_import_from_1__module );
|
||
|
Py_DECREF( tmp_import_from_1__module );
|
||
|
tmp_import_from_1__module = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_8;
|
||
|
PyObject *tmp_name_name_1;
|
||
|
PyObject *tmp_globals_name_1;
|
||
|
PyObject *tmp_locals_name_1;
|
||
|
PyObject *tmp_fromlist_name_1;
|
||
|
PyObject *tmp_level_name_1;
|
||
|
tmp_name_name_1 = const_str_plain_sys;
|
||
|
tmp_globals_name_1 = (PyObject *)moduledict_cryptography$hazmat$primitives$kdf$scrypt;
|
||
|
tmp_locals_name_1 = Py_None;
|
||
|
tmp_fromlist_name_1 = Py_None;
|
||
|
tmp_level_name_1 = const_int_0;
|
||
|
frame_77b8afe22b74632a7cfffa4dcc92c8e0->m_frame.f_lineno = 7;
|
||
|
tmp_assign_source_8 = IMPORT_MODULE5( tmp_name_name_1, tmp_globals_name_1, tmp_locals_name_1, tmp_fromlist_name_1, tmp_level_name_1 );
|
||
|
assert( !(tmp_assign_source_8 == NULL) );
|
||
|
UPDATE_STRING_DICT1( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain_sys, tmp_assign_source_8 );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_9;
|
||
|
PyObject *tmp_import_name_from_4;
|
||
|
PyObject *tmp_name_name_2;
|
||
|
PyObject *tmp_globals_name_2;
|
||
|
PyObject *tmp_locals_name_2;
|
||
|
PyObject *tmp_fromlist_name_2;
|
||
|
PyObject *tmp_level_name_2;
|
||
|
tmp_name_name_2 = const_str_plain_cryptography;
|
||
|
tmp_globals_name_2 = (PyObject *)moduledict_cryptography$hazmat$primitives$kdf$scrypt;
|
||
|
tmp_locals_name_2 = Py_None;
|
||
|
tmp_fromlist_name_2 = const_tuple_str_plain_utils_tuple;
|
||
|
tmp_level_name_2 = const_int_0;
|
||
|
frame_77b8afe22b74632a7cfffa4dcc92c8e0->m_frame.f_lineno = 9;
|
||
|
tmp_import_name_from_4 = IMPORT_MODULE5( tmp_name_name_2, tmp_globals_name_2, tmp_locals_name_2, tmp_fromlist_name_2, tmp_level_name_2 );
|
||
|
if ( tmp_import_name_from_4 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 9;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_assign_source_9 = IMPORT_NAME( tmp_import_name_from_4, const_str_plain_utils );
|
||
|
Py_DECREF( tmp_import_name_from_4 );
|
||
|
if ( tmp_assign_source_9 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 9;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
UPDATE_STRING_DICT1( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain_utils, tmp_assign_source_9 );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_10;
|
||
|
PyObject *tmp_name_name_3;
|
||
|
PyObject *tmp_globals_name_3;
|
||
|
PyObject *tmp_locals_name_3;
|
||
|
PyObject *tmp_fromlist_name_3;
|
||
|
PyObject *tmp_level_name_3;
|
||
|
tmp_name_name_3 = const_str_digest_82e5b7f1075745a8638e06059354d03c;
|
||
|
tmp_globals_name_3 = (PyObject *)moduledict_cryptography$hazmat$primitives$kdf$scrypt;
|
||
|
tmp_locals_name_3 = Py_None;
|
||
|
tmp_fromlist_name_3 = const_tuple_484884d51fdfca39c760503af93a8eb4_tuple;
|
||
|
tmp_level_name_3 = const_int_0;
|
||
|
frame_77b8afe22b74632a7cfffa4dcc92c8e0->m_frame.f_lineno = 10;
|
||
|
tmp_assign_source_10 = IMPORT_MODULE5( tmp_name_name_3, tmp_globals_name_3, tmp_locals_name_3, tmp_fromlist_name_3, tmp_level_name_3 );
|
||
|
if ( tmp_assign_source_10 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 10;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
assert( tmp_import_from_2__module == NULL );
|
||
|
tmp_import_from_2__module = tmp_assign_source_10;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
// Tried code:
|
||
|
{
|
||
|
PyObject *tmp_assign_source_11;
|
||
|
PyObject *tmp_import_name_from_5;
|
||
|
CHECK_OBJECT( tmp_import_from_2__module );
|
||
|
tmp_import_name_from_5 = tmp_import_from_2__module;
|
||
|
tmp_assign_source_11 = IMPORT_NAME( tmp_import_name_from_5, const_str_plain_AlreadyFinalized );
|
||
|
if ( tmp_assign_source_11 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 10;
|
||
|
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
UPDATE_STRING_DICT1( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain_AlreadyFinalized, tmp_assign_source_11 );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_12;
|
||
|
PyObject *tmp_import_name_from_6;
|
||
|
CHECK_OBJECT( tmp_import_from_2__module );
|
||
|
tmp_import_name_from_6 = tmp_import_from_2__module;
|
||
|
tmp_assign_source_12 = IMPORT_NAME( tmp_import_name_from_6, const_str_plain_InvalidKey );
|
||
|
if ( tmp_assign_source_12 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 10;
|
||
|
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
UPDATE_STRING_DICT1( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain_InvalidKey, tmp_assign_source_12 );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_13;
|
||
|
PyObject *tmp_import_name_from_7;
|
||
|
CHECK_OBJECT( tmp_import_from_2__module );
|
||
|
tmp_import_name_from_7 = tmp_import_from_2__module;
|
||
|
tmp_assign_source_13 = IMPORT_NAME( tmp_import_name_from_7, const_str_plain_UnsupportedAlgorithm );
|
||
|
if ( tmp_assign_source_13 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 10;
|
||
|
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
UPDATE_STRING_DICT1( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain_UnsupportedAlgorithm, tmp_assign_source_13 );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_14;
|
||
|
PyObject *tmp_import_name_from_8;
|
||
|
CHECK_OBJECT( tmp_import_from_2__module );
|
||
|
tmp_import_name_from_8 = tmp_import_from_2__module;
|
||
|
tmp_assign_source_14 = IMPORT_NAME( tmp_import_name_from_8, const_str_plain__Reasons );
|
||
|
if ( tmp_assign_source_14 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 10;
|
||
|
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
UPDATE_STRING_DICT1( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain__Reasons, tmp_assign_source_14 );
|
||
|
}
|
||
|
goto try_end_2;
|
||
|
// Exception handler code:
|
||
|
try_except_handler_2:;
|
||
|
exception_keeper_type_2 = exception_type;
|
||
|
exception_keeper_value_2 = exception_value;
|
||
|
exception_keeper_tb_2 = exception_tb;
|
||
|
exception_keeper_lineno_2 = exception_lineno;
|
||
|
exception_type = NULL;
|
||
|
exception_value = NULL;
|
||
|
exception_tb = NULL;
|
||
|
exception_lineno = 0;
|
||
|
|
||
|
{
|
||
|
CHECK_OBJECT( (PyObject *)tmp_import_from_2__module );
|
||
|
Py_DECREF( tmp_import_from_2__module );
|
||
|
tmp_import_from_2__module = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
// Re-raise.
|
||
|
exception_type = exception_keeper_type_2;
|
||
|
exception_value = exception_keeper_value_2;
|
||
|
exception_tb = exception_keeper_tb_2;
|
||
|
exception_lineno = exception_keeper_lineno_2;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
// End of try:
|
||
|
try_end_2:;
|
||
|
}
|
||
|
{
|
||
|
CHECK_OBJECT( (PyObject *)tmp_import_from_2__module );
|
||
|
Py_DECREF( tmp_import_from_2__module );
|
||
|
tmp_import_from_2__module = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_15;
|
||
|
PyObject *tmp_import_name_from_9;
|
||
|
PyObject *tmp_name_name_4;
|
||
|
PyObject *tmp_globals_name_4;
|
||
|
PyObject *tmp_locals_name_4;
|
||
|
PyObject *tmp_fromlist_name_4;
|
||
|
PyObject *tmp_level_name_4;
|
||
|
tmp_name_name_4 = const_str_digest_624798dd704a8f07276d3e75153a7c4b;
|
||
|
tmp_globals_name_4 = (PyObject *)moduledict_cryptography$hazmat$primitives$kdf$scrypt;
|
||
|
tmp_locals_name_4 = Py_None;
|
||
|
tmp_fromlist_name_4 = const_tuple_str_plain_ScryptBackend_tuple;
|
||
|
tmp_level_name_4 = const_int_0;
|
||
|
frame_77b8afe22b74632a7cfffa4dcc92c8e0->m_frame.f_lineno = 13;
|
||
|
tmp_import_name_from_9 = IMPORT_MODULE5( tmp_name_name_4, tmp_globals_name_4, tmp_locals_name_4, tmp_fromlist_name_4, tmp_level_name_4 );
|
||
|
if ( tmp_import_name_from_9 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 13;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_assign_source_15 = IMPORT_NAME( tmp_import_name_from_9, const_str_plain_ScryptBackend );
|
||
|
Py_DECREF( tmp_import_name_from_9 );
|
||
|
if ( tmp_assign_source_15 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 13;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
UPDATE_STRING_DICT1( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain_ScryptBackend, tmp_assign_source_15 );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_16;
|
||
|
PyObject *tmp_import_name_from_10;
|
||
|
PyObject *tmp_name_name_5;
|
||
|
PyObject *tmp_globals_name_5;
|
||
|
PyObject *tmp_locals_name_5;
|
||
|
PyObject *tmp_fromlist_name_5;
|
||
|
PyObject *tmp_level_name_5;
|
||
|
tmp_name_name_5 = const_str_digest_9db3cdd3cd765463b4eec6754eb8e087;
|
||
|
tmp_globals_name_5 = (PyObject *)moduledict_cryptography$hazmat$primitives$kdf$scrypt;
|
||
|
tmp_locals_name_5 = Py_None;
|
||
|
tmp_fromlist_name_5 = const_tuple_str_plain_constant_time_tuple;
|
||
|
tmp_level_name_5 = const_int_0;
|
||
|
frame_77b8afe22b74632a7cfffa4dcc92c8e0->m_frame.f_lineno = 14;
|
||
|
tmp_import_name_from_10 = IMPORT_MODULE5( tmp_name_name_5, tmp_globals_name_5, tmp_locals_name_5, tmp_fromlist_name_5, tmp_level_name_5 );
|
||
|
if ( tmp_import_name_from_10 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 14;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_assign_source_16 = IMPORT_NAME( tmp_import_name_from_10, const_str_plain_constant_time );
|
||
|
Py_DECREF( tmp_import_name_from_10 );
|
||
|
if ( tmp_assign_source_16 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 14;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
UPDATE_STRING_DICT1( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain_constant_time, tmp_assign_source_16 );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_17;
|
||
|
PyObject *tmp_import_name_from_11;
|
||
|
PyObject *tmp_name_name_6;
|
||
|
PyObject *tmp_globals_name_6;
|
||
|
PyObject *tmp_locals_name_6;
|
||
|
PyObject *tmp_fromlist_name_6;
|
||
|
PyObject *tmp_level_name_6;
|
||
|
tmp_name_name_6 = const_str_digest_e27dc23b7c85daba181954dbade1a80e;
|
||
|
tmp_globals_name_6 = (PyObject *)moduledict_cryptography$hazmat$primitives$kdf$scrypt;
|
||
|
tmp_locals_name_6 = Py_None;
|
||
|
tmp_fromlist_name_6 = const_tuple_str_plain_KeyDerivationFunction_tuple;
|
||
|
tmp_level_name_6 = const_int_0;
|
||
|
frame_77b8afe22b74632a7cfffa4dcc92c8e0->m_frame.f_lineno = 15;
|
||
|
tmp_import_name_from_11 = IMPORT_MODULE5( tmp_name_name_6, tmp_globals_name_6, tmp_locals_name_6, tmp_fromlist_name_6, tmp_level_name_6 );
|
||
|
if ( tmp_import_name_from_11 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 15;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_assign_source_17 = IMPORT_NAME( tmp_import_name_from_11, const_str_plain_KeyDerivationFunction );
|
||
|
Py_DECREF( tmp_import_name_from_11 );
|
||
|
if ( tmp_assign_source_17 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 15;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
UPDATE_STRING_DICT1( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain_KeyDerivationFunction, tmp_assign_source_17 );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_18;
|
||
|
PyObject *tmp_left_name_1;
|
||
|
PyObject *tmp_source_name_1;
|
||
|
PyObject *tmp_mvar_value_1;
|
||
|
PyObject *tmp_right_name_1;
|
||
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain_sys );
|
||
|
|
||
|
if (unlikely( tmp_mvar_value_1 == NULL ))
|
||
|
{
|
||
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_sys );
|
||
|
}
|
||
|
|
||
|
if ( tmp_mvar_value_1 == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_NameError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "sys" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 20;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_source_name_1 = tmp_mvar_value_1;
|
||
|
tmp_left_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_maxsize );
|
||
|
if ( tmp_left_name_1 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 20;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_right_name_1 = const_int_pos_2;
|
||
|
tmp_assign_source_18 = BINARY_OPERATION_FLOORDIV( tmp_left_name_1, tmp_right_name_1 );
|
||
|
Py_DECREF( tmp_left_name_1 );
|
||
|
if ( tmp_assign_source_18 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 20;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
UPDATE_STRING_DICT1( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain__MEM_LIMIT, tmp_assign_source_18 );
|
||
|
}
|
||
|
{
|
||
|
// Tried code:
|
||
|
{
|
||
|
PyObject *tmp_assign_source_19;
|
||
|
PyObject *tmp_dircall_arg1_1;
|
||
|
tmp_dircall_arg1_1 = const_tuple_type_object_tuple;
|
||
|
Py_INCREF( tmp_dircall_arg1_1 );
|
||
|
|
||
|
{
|
||
|
PyObject *dir_call_args[] = {tmp_dircall_arg1_1};
|
||
|
tmp_assign_source_19 = impl___internal__$$$function_1__mro_entries_conversion( dir_call_args );
|
||
|
}
|
||
|
if ( tmp_assign_source_19 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 24;
|
||
|
|
||
|
goto try_except_handler_3;
|
||
|
}
|
||
|
assert( tmp_class_creation_1__bases == NULL );
|
||
|
tmp_class_creation_1__bases = tmp_assign_source_19;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_20;
|
||
|
tmp_assign_source_20 = PyDict_New();
|
||
|
assert( tmp_class_creation_1__class_decl_dict == NULL );
|
||
|
tmp_class_creation_1__class_decl_dict = tmp_assign_source_20;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_21;
|
||
|
PyObject *tmp_metaclass_name_1;
|
||
|
nuitka_bool tmp_condition_result_1;
|
||
|
PyObject *tmp_key_name_1;
|
||
|
PyObject *tmp_dict_name_1;
|
||
|
PyObject *tmp_dict_name_2;
|
||
|
PyObject *tmp_key_name_2;
|
||
|
nuitka_bool tmp_condition_result_2;
|
||
|
int tmp_truth_name_1;
|
||
|
PyObject *tmp_type_arg_1;
|
||
|
PyObject *tmp_subscribed_name_1;
|
||
|
PyObject *tmp_subscript_name_1;
|
||
|
PyObject *tmp_bases_name_1;
|
||
|
tmp_key_name_1 = const_str_plain_metaclass;
|
||
|
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
|
||
|
tmp_dict_name_1 = tmp_class_creation_1__class_decl_dict;
|
||
|
tmp_res = PyDict_Contains( tmp_dict_name_1, tmp_key_name_1 );
|
||
|
if ( tmp_res == -1 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 24;
|
||
|
|
||
|
goto try_except_handler_3;
|
||
|
}
|
||
|
tmp_condition_result_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
||
|
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
|
||
|
{
|
||
|
goto condexpr_true_1;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
goto condexpr_false_1;
|
||
|
}
|
||
|
condexpr_true_1:;
|
||
|
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
|
||
|
tmp_dict_name_2 = tmp_class_creation_1__class_decl_dict;
|
||
|
tmp_key_name_2 = const_str_plain_metaclass;
|
||
|
tmp_metaclass_name_1 = DICT_GET_ITEM( tmp_dict_name_2, tmp_key_name_2 );
|
||
|
if ( tmp_metaclass_name_1 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 24;
|
||
|
|
||
|
goto try_except_handler_3;
|
||
|
}
|
||
|
goto condexpr_end_1;
|
||
|
condexpr_false_1:;
|
||
|
CHECK_OBJECT( tmp_class_creation_1__bases );
|
||
|
tmp_truth_name_1 = CHECK_IF_TRUE( tmp_class_creation_1__bases );
|
||
|
if ( tmp_truth_name_1 == -1 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 24;
|
||
|
|
||
|
goto try_except_handler_3;
|
||
|
}
|
||
|
tmp_condition_result_2 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
||
|
if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE )
|
||
|
{
|
||
|
goto condexpr_true_2;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
goto condexpr_false_2;
|
||
|
}
|
||
|
condexpr_true_2:;
|
||
|
CHECK_OBJECT( tmp_class_creation_1__bases );
|
||
|
tmp_subscribed_name_1 = tmp_class_creation_1__bases;
|
||
|
tmp_subscript_name_1 = const_int_0;
|
||
|
tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_1, tmp_subscript_name_1, 0 );
|
||
|
if ( tmp_type_arg_1 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 24;
|
||
|
|
||
|
goto try_except_handler_3;
|
||
|
}
|
||
|
tmp_metaclass_name_1 = BUILTIN_TYPE1( tmp_type_arg_1 );
|
||
|
Py_DECREF( tmp_type_arg_1 );
|
||
|
if ( tmp_metaclass_name_1 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 24;
|
||
|
|
||
|
goto try_except_handler_3;
|
||
|
}
|
||
|
goto condexpr_end_2;
|
||
|
condexpr_false_2:;
|
||
|
tmp_metaclass_name_1 = (PyObject *)&PyType_Type;
|
||
|
Py_INCREF( tmp_metaclass_name_1 );
|
||
|
condexpr_end_2:;
|
||
|
condexpr_end_1:;
|
||
|
CHECK_OBJECT( tmp_class_creation_1__bases );
|
||
|
tmp_bases_name_1 = tmp_class_creation_1__bases;
|
||
|
tmp_assign_source_21 = SELECT_METACLASS( tmp_metaclass_name_1, tmp_bases_name_1 );
|
||
|
Py_DECREF( tmp_metaclass_name_1 );
|
||
|
if ( tmp_assign_source_21 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 24;
|
||
|
|
||
|
goto try_except_handler_3;
|
||
|
}
|
||
|
assert( tmp_class_creation_1__metaclass == NULL );
|
||
|
tmp_class_creation_1__metaclass = tmp_assign_source_21;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
nuitka_bool tmp_condition_result_3;
|
||
|
PyObject *tmp_key_name_3;
|
||
|
PyObject *tmp_dict_name_3;
|
||
|
tmp_key_name_3 = const_str_plain_metaclass;
|
||
|
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
|
||
|
tmp_dict_name_3 = tmp_class_creation_1__class_decl_dict;
|
||
|
tmp_res = PyDict_Contains( tmp_dict_name_3, tmp_key_name_3 );
|
||
|
if ( tmp_res == -1 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 24;
|
||
|
|
||
|
goto try_except_handler_3;
|
||
|
}
|
||
|
tmp_condition_result_3 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
||
|
if ( tmp_condition_result_3 == NUITKA_BOOL_TRUE )
|
||
|
{
|
||
|
goto branch_yes_1;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
goto branch_no_1;
|
||
|
}
|
||
|
branch_yes_1:;
|
||
|
{
|
||
|
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
|
||
|
tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict;
|
||
|
tmp_dictdel_key = const_str_plain_metaclass;
|
||
|
tmp_result = DICT_REMOVE_ITEM( tmp_dictdel_dict, tmp_dictdel_key );
|
||
|
if ( tmp_result == false )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 24;
|
||
|
|
||
|
goto try_except_handler_3;
|
||
|
}
|
||
|
}
|
||
|
branch_no_1:;
|
||
|
}
|
||
|
{
|
||
|
nuitka_bool tmp_condition_result_4;
|
||
|
PyObject *tmp_source_name_2;
|
||
|
CHECK_OBJECT( tmp_class_creation_1__metaclass );
|
||
|
tmp_source_name_2 = tmp_class_creation_1__metaclass;
|
||
|
tmp_res = PyObject_HasAttr( tmp_source_name_2, const_str_plain___prepare__ );
|
||
|
tmp_condition_result_4 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
||
|
if ( tmp_condition_result_4 == NUITKA_BOOL_TRUE )
|
||
|
{
|
||
|
goto branch_yes_2;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
goto branch_no_2;
|
||
|
}
|
||
|
branch_yes_2:;
|
||
|
{
|
||
|
PyObject *tmp_assign_source_22;
|
||
|
PyObject *tmp_called_name_1;
|
||
|
PyObject *tmp_source_name_3;
|
||
|
PyObject *tmp_args_name_1;
|
||
|
PyObject *tmp_tuple_element_1;
|
||
|
PyObject *tmp_kw_name_1;
|
||
|
CHECK_OBJECT( tmp_class_creation_1__metaclass );
|
||
|
tmp_source_name_3 = tmp_class_creation_1__metaclass;
|
||
|
tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain___prepare__ );
|
||
|
if ( tmp_called_name_1 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 24;
|
||
|
|
||
|
goto try_except_handler_3;
|
||
|
}
|
||
|
tmp_tuple_element_1 = const_str_plain_Scrypt;
|
||
|
tmp_args_name_1 = PyTuple_New( 2 );
|
||
|
Py_INCREF( tmp_tuple_element_1 );
|
||
|
PyTuple_SET_ITEM( tmp_args_name_1, 0, tmp_tuple_element_1 );
|
||
|
CHECK_OBJECT( tmp_class_creation_1__bases );
|
||
|
tmp_tuple_element_1 = tmp_class_creation_1__bases;
|
||
|
Py_INCREF( tmp_tuple_element_1 );
|
||
|
PyTuple_SET_ITEM( tmp_args_name_1, 1, tmp_tuple_element_1 );
|
||
|
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
|
||
|
tmp_kw_name_1 = tmp_class_creation_1__class_decl_dict;
|
||
|
frame_77b8afe22b74632a7cfffa4dcc92c8e0->m_frame.f_lineno = 24;
|
||
|
tmp_assign_source_22 = CALL_FUNCTION( tmp_called_name_1, tmp_args_name_1, tmp_kw_name_1 );
|
||
|
Py_DECREF( tmp_called_name_1 );
|
||
|
Py_DECREF( tmp_args_name_1 );
|
||
|
if ( tmp_assign_source_22 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 24;
|
||
|
|
||
|
goto try_except_handler_3;
|
||
|
}
|
||
|
assert( tmp_class_creation_1__prepared == NULL );
|
||
|
tmp_class_creation_1__prepared = tmp_assign_source_22;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
nuitka_bool tmp_condition_result_5;
|
||
|
PyObject *tmp_operand_name_1;
|
||
|
PyObject *tmp_source_name_4;
|
||
|
CHECK_OBJECT( tmp_class_creation_1__prepared );
|
||
|
tmp_source_name_4 = tmp_class_creation_1__prepared;
|
||
|
tmp_res = PyObject_HasAttr( tmp_source_name_4, const_str_plain___getitem__ );
|
||
|
tmp_operand_name_1 = ( tmp_res != 0 ) ? Py_True : Py_False;
|
||
|
tmp_res = CHECK_IF_TRUE( tmp_operand_name_1 );
|
||
|
if ( tmp_res == -1 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 24;
|
||
|
|
||
|
goto try_except_handler_3;
|
||
|
}
|
||
|
tmp_condition_result_5 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
||
|
if ( tmp_condition_result_5 == NUITKA_BOOL_TRUE )
|
||
|
{
|
||
|
goto branch_yes_3;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
goto branch_no_3;
|
||
|
}
|
||
|
branch_yes_3:;
|
||
|
{
|
||
|
PyObject *tmp_raise_type_1;
|
||
|
PyObject *tmp_raise_value_1;
|
||
|
PyObject *tmp_left_name_2;
|
||
|
PyObject *tmp_right_name_2;
|
||
|
PyObject *tmp_tuple_element_2;
|
||
|
PyObject *tmp_getattr_target_1;
|
||
|
PyObject *tmp_getattr_attr_1;
|
||
|
PyObject *tmp_getattr_default_1;
|
||
|
PyObject *tmp_source_name_5;
|
||
|
PyObject *tmp_type_arg_2;
|
||
|
tmp_raise_type_1 = PyExc_TypeError;
|
||
|
tmp_left_name_2 = const_str_digest_75fd71b1edada749c2ef7ac810062295;
|
||
|
CHECK_OBJECT( tmp_class_creation_1__metaclass );
|
||
|
tmp_getattr_target_1 = tmp_class_creation_1__metaclass;
|
||
|
tmp_getattr_attr_1 = const_str_plain___name__;
|
||
|
tmp_getattr_default_1 = const_str_angle_metaclass;
|
||
|
tmp_tuple_element_2 = BUILTIN_GETATTR( tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1 );
|
||
|
if ( tmp_tuple_element_2 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 24;
|
||
|
|
||
|
goto try_except_handler_3;
|
||
|
}
|
||
|
tmp_right_name_2 = PyTuple_New( 2 );
|
||
|
PyTuple_SET_ITEM( tmp_right_name_2, 0, tmp_tuple_element_2 );
|
||
|
CHECK_OBJECT( tmp_class_creation_1__prepared );
|
||
|
tmp_type_arg_2 = tmp_class_creation_1__prepared;
|
||
|
tmp_source_name_5 = BUILTIN_TYPE1( tmp_type_arg_2 );
|
||
|
assert( !(tmp_source_name_5 == NULL) );
|
||
|
tmp_tuple_element_2 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain___name__ );
|
||
|
Py_DECREF( tmp_source_name_5 );
|
||
|
if ( tmp_tuple_element_2 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
Py_DECREF( tmp_right_name_2 );
|
||
|
|
||
|
exception_lineno = 24;
|
||
|
|
||
|
goto try_except_handler_3;
|
||
|
}
|
||
|
PyTuple_SET_ITEM( tmp_right_name_2, 1, tmp_tuple_element_2 );
|
||
|
tmp_raise_value_1 = BINARY_OPERATION_REMAINDER( tmp_left_name_2, tmp_right_name_2 );
|
||
|
Py_DECREF( tmp_right_name_2 );
|
||
|
if ( tmp_raise_value_1 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 24;
|
||
|
|
||
|
goto try_except_handler_3;
|
||
|
}
|
||
|
exception_type = tmp_raise_type_1;
|
||
|
Py_INCREF( tmp_raise_type_1 );
|
||
|
exception_value = tmp_raise_value_1;
|
||
|
exception_lineno = 24;
|
||
|
RAISE_EXCEPTION_IMPLICIT( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
goto try_except_handler_3;
|
||
|
}
|
||
|
branch_no_3:;
|
||
|
}
|
||
|
goto branch_end_2;
|
||
|
branch_no_2:;
|
||
|
{
|
||
|
PyObject *tmp_assign_source_23;
|
||
|
tmp_assign_source_23 = PyDict_New();
|
||
|
assert( tmp_class_creation_1__prepared == NULL );
|
||
|
tmp_class_creation_1__prepared = tmp_assign_source_23;
|
||
|
|
||
|
}
|
||
|
branch_end_2:;
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_24;
|
||
|
PyObject *tmp_called_name_2;
|
||
|
PyObject *tmp_called_name_3;
|
||
|
PyObject *tmp_source_name_6;
|
||
|
PyObject *tmp_mvar_value_2;
|
||
|
PyObject *tmp_args_element_name_1;
|
||
|
PyObject *tmp_mvar_value_3;
|
||
|
PyObject *tmp_args_element_name_2;
|
||
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain_utils );
|
||
|
|
||
|
if (unlikely( tmp_mvar_value_2 == NULL ))
|
||
|
{
|
||
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_utils );
|
||
|
}
|
||
|
|
||
|
if ( tmp_mvar_value_2 == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_NameError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "utils" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 23;
|
||
|
|
||
|
goto try_except_handler_3;
|
||
|
}
|
||
|
|
||
|
tmp_source_name_6 = tmp_mvar_value_2;
|
||
|
tmp_called_name_3 = LOOKUP_ATTRIBUTE( tmp_source_name_6, const_str_plain_register_interface );
|
||
|
if ( tmp_called_name_3 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 23;
|
||
|
|
||
|
goto try_except_handler_3;
|
||
|
}
|
||
|
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain_KeyDerivationFunction );
|
||
|
|
||
|
if (unlikely( tmp_mvar_value_3 == NULL ))
|
||
|
{
|
||
|
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_KeyDerivationFunction );
|
||
|
}
|
||
|
|
||
|
if ( tmp_mvar_value_3 == NULL )
|
||
|
{
|
||
|
Py_DECREF( tmp_called_name_3 );
|
||
|
exception_type = PyExc_NameError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "KeyDerivationFunction" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 23;
|
||
|
|
||
|
goto try_except_handler_3;
|
||
|
}
|
||
|
|
||
|
tmp_args_element_name_1 = tmp_mvar_value_3;
|
||
|
frame_77b8afe22b74632a7cfffa4dcc92c8e0->m_frame.f_lineno = 23;
|
||
|
{
|
||
|
PyObject *call_args[] = { tmp_args_element_name_1 };
|
||
|
tmp_called_name_2 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_3, call_args );
|
||
|
}
|
||
|
|
||
|
Py_DECREF( tmp_called_name_3 );
|
||
|
if ( tmp_called_name_2 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 23;
|
||
|
|
||
|
goto try_except_handler_3;
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_set_locals_1;
|
||
|
CHECK_OBJECT( tmp_class_creation_1__prepared );
|
||
|
tmp_set_locals_1 = tmp_class_creation_1__prepared;
|
||
|
locals_cryptography$hazmat$primitives$kdf$scrypt_24 = tmp_set_locals_1;
|
||
|
Py_INCREF( tmp_set_locals_1 );
|
||
|
}
|
||
|
{
|
||
|
// Tried code:
|
||
|
{
|
||
|
// Tried code:
|
||
|
{
|
||
|
tmp_dictset_value = const_str_digest_ab892d0487e11166d363bb53eca5ed65;
|
||
|
tmp_res = PyObject_SetItem( locals_cryptography$hazmat$primitives$kdf$scrypt_24, const_str_plain___module__, tmp_dictset_value );
|
||
|
if ( tmp_res != 0 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 24;
|
||
|
|
||
|
goto try_except_handler_5;
|
||
|
}
|
||
|
}
|
||
|
{
|
||
|
tmp_dictset_value = const_str_plain_Scrypt;
|
||
|
tmp_res = PyObject_SetItem( locals_cryptography$hazmat$primitives$kdf$scrypt_24, const_str_plain___qualname__, tmp_dictset_value );
|
||
|
if ( tmp_res != 0 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 24;
|
||
|
|
||
|
goto try_except_handler_5;
|
||
|
}
|
||
|
}
|
||
|
MAKE_OR_REUSE_FRAME( cache_frame_ab12869ed29e9faea291490ddc8d9b89_2, codeobj_ab12869ed29e9faea291490ddc8d9b89, module_cryptography$hazmat$primitives$kdf$scrypt, sizeof(void *) );
|
||
|
frame_ab12869ed29e9faea291490ddc8d9b89_2 = cache_frame_ab12869ed29e9faea291490ddc8d9b89_2;
|
||
|
|
||
|
// Push the new frame as the currently active one.
|
||
|
pushFrameStack( frame_ab12869ed29e9faea291490ddc8d9b89_2 );
|
||
|
|
||
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
||
|
assert( Py_REFCNT( frame_ab12869ed29e9faea291490ddc8d9b89_2 ) == 2 ); // Frame stack
|
||
|
|
||
|
// Framed code:
|
||
|
{
|
||
|
tmp_dictset_value = MAKE_FUNCTION_cryptography$hazmat$primitives$kdf$scrypt$$$function_1___init__( );
|
||
|
|
||
|
|
||
|
|
||
|
tmp_res = PyObject_SetItem( locals_cryptography$hazmat$primitives$kdf$scrypt_24, const_str_plain___init__, tmp_dictset_value );
|
||
|
Py_DECREF( tmp_dictset_value );
|
||
|
if ( tmp_res != 0 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 25;
|
||
|
type_description_2 = "o";
|
||
|
goto frame_exception_exit_2;
|
||
|
}
|
||
|
}
|
||
|
{
|
||
|
tmp_dictset_value = MAKE_FUNCTION_cryptography$hazmat$primitives$kdf$scrypt$$$function_2_derive( );
|
||
|
|
||
|
|
||
|
|
||
|
tmp_res = PyObject_SetItem( locals_cryptography$hazmat$primitives$kdf$scrypt_24, const_str_plain_derive, tmp_dictset_value );
|
||
|
Py_DECREF( tmp_dictset_value );
|
||
|
if ( tmp_res != 0 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 52;
|
||
|
type_description_2 = "o";
|
||
|
goto frame_exception_exit_2;
|
||
|
}
|
||
|
}
|
||
|
{
|
||
|
tmp_dictset_value = MAKE_FUNCTION_cryptography$hazmat$primitives$kdf$scrypt$$$function_3_verify( );
|
||
|
|
||
|
|
||
|
|
||
|
tmp_res = PyObject_SetItem( locals_cryptography$hazmat$primitives$kdf$scrypt_24, const_str_plain_verify, tmp_dictset_value );
|
||
|
Py_DECREF( tmp_dictset_value );
|
||
|
if ( tmp_res != 0 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 63;
|
||
|
type_description_2 = "o";
|
||
|
goto frame_exception_exit_2;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#if 0
|
||
|
RESTORE_FRAME_EXCEPTION( frame_ab12869ed29e9faea291490ddc8d9b89_2 );
|
||
|
#endif
|
||
|
|
||
|
// Put the previous frame back on top.
|
||
|
popFrameStack();
|
||
|
|
||
|
goto frame_no_exception_1;
|
||
|
|
||
|
frame_exception_exit_2:;
|
||
|
|
||
|
#if 0
|
||
|
RESTORE_FRAME_EXCEPTION( frame_ab12869ed29e9faea291490ddc8d9b89_2 );
|
||
|
#endif
|
||
|
|
||
|
if ( exception_tb == NULL )
|
||
|
{
|
||
|
exception_tb = MAKE_TRACEBACK( frame_ab12869ed29e9faea291490ddc8d9b89_2, exception_lineno );
|
||
|
}
|
||
|
else if ( exception_tb->tb_frame != &frame_ab12869ed29e9faea291490ddc8d9b89_2->m_frame )
|
||
|
{
|
||
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_ab12869ed29e9faea291490ddc8d9b89_2, exception_lineno );
|
||
|
}
|
||
|
|
||
|
// Attachs locals to frame if any.
|
||
|
Nuitka_Frame_AttachLocals(
|
||
|
(struct Nuitka_FrameObject *)frame_ab12869ed29e9faea291490ddc8d9b89_2,
|
||
|
type_description_2,
|
||
|
outline_0_var___class__
|
||
|
);
|
||
|
|
||
|
|
||
|
// Release cached frame.
|
||
|
if ( frame_ab12869ed29e9faea291490ddc8d9b89_2 == cache_frame_ab12869ed29e9faea291490ddc8d9b89_2 )
|
||
|
{
|
||
|
Py_DECREF( frame_ab12869ed29e9faea291490ddc8d9b89_2 );
|
||
|
}
|
||
|
cache_frame_ab12869ed29e9faea291490ddc8d9b89_2 = NULL;
|
||
|
|
||
|
assertFrameObject( frame_ab12869ed29e9faea291490ddc8d9b89_2 );
|
||
|
|
||
|
// Put the previous frame back on top.
|
||
|
popFrameStack();
|
||
|
|
||
|
// Return the error.
|
||
|
goto nested_frame_exit_1;
|
||
|
|
||
|
frame_no_exception_1:;
|
||
|
goto skip_nested_handling_1;
|
||
|
nested_frame_exit_1:;
|
||
|
|
||
|
goto try_except_handler_5;
|
||
|
skip_nested_handling_1:;
|
||
|
{
|
||
|
nuitka_bool tmp_condition_result_6;
|
||
|
PyObject *tmp_compexpr_left_1;
|
||
|
PyObject *tmp_compexpr_right_1;
|
||
|
CHECK_OBJECT( tmp_class_creation_1__bases );
|
||
|
tmp_compexpr_left_1 = tmp_class_creation_1__bases;
|
||
|
tmp_compexpr_right_1 = const_tuple_type_object_tuple;
|
||
|
tmp_res = RICH_COMPARE_BOOL_NE( tmp_compexpr_left_1, tmp_compexpr_right_1 );
|
||
|
if ( tmp_res == -1 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 24;
|
||
|
|
||
|
goto try_except_handler_5;
|
||
|
}
|
||
|
tmp_condition_result_6 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
||
|
if ( tmp_condition_result_6 == NUITKA_BOOL_TRUE )
|
||
|
{
|
||
|
goto branch_yes_4;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
goto branch_no_4;
|
||
|
}
|
||
|
branch_yes_4:;
|
||
|
{
|
||
|
tmp_dictset_value = const_tuple_type_object_tuple;
|
||
|
tmp_res = PyObject_SetItem( locals_cryptography$hazmat$primitives$kdf$scrypt_24, const_str_plain___orig_bases__, tmp_dictset_value );
|
||
|
if ( tmp_res != 0 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 24;
|
||
|
|
||
|
goto try_except_handler_5;
|
||
|
}
|
||
|
}
|
||
|
branch_no_4:;
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_25;
|
||
|
PyObject *tmp_called_name_4;
|
||
|
PyObject *tmp_args_name_2;
|
||
|
PyObject *tmp_tuple_element_3;
|
||
|
PyObject *tmp_kw_name_2;
|
||
|
CHECK_OBJECT( tmp_class_creation_1__metaclass );
|
||
|
tmp_called_name_4 = tmp_class_creation_1__metaclass;
|
||
|
tmp_tuple_element_3 = const_str_plain_Scrypt;
|
||
|
tmp_args_name_2 = PyTuple_New( 3 );
|
||
|
Py_INCREF( tmp_tuple_element_3 );
|
||
|
PyTuple_SET_ITEM( tmp_args_name_2, 0, tmp_tuple_element_3 );
|
||
|
CHECK_OBJECT( tmp_class_creation_1__bases );
|
||
|
tmp_tuple_element_3 = tmp_class_creation_1__bases;
|
||
|
Py_INCREF( tmp_tuple_element_3 );
|
||
|
PyTuple_SET_ITEM( tmp_args_name_2, 1, tmp_tuple_element_3 );
|
||
|
tmp_tuple_element_3 = locals_cryptography$hazmat$primitives$kdf$scrypt_24;
|
||
|
Py_INCREF( tmp_tuple_element_3 );
|
||
|
PyTuple_SET_ITEM( tmp_args_name_2, 2, tmp_tuple_element_3 );
|
||
|
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
|
||
|
tmp_kw_name_2 = tmp_class_creation_1__class_decl_dict;
|
||
|
frame_77b8afe22b74632a7cfffa4dcc92c8e0->m_frame.f_lineno = 24;
|
||
|
tmp_assign_source_25 = CALL_FUNCTION( tmp_called_name_4, tmp_args_name_2, tmp_kw_name_2 );
|
||
|
Py_DECREF( tmp_args_name_2 );
|
||
|
if ( tmp_assign_source_25 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 24;
|
||
|
|
||
|
goto try_except_handler_5;
|
||
|
}
|
||
|
assert( outline_0_var___class__ == NULL );
|
||
|
outline_0_var___class__ = tmp_assign_source_25;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
CHECK_OBJECT( outline_0_var___class__ );
|
||
|
tmp_args_element_name_2 = outline_0_var___class__;
|
||
|
Py_INCREF( tmp_args_element_name_2 );
|
||
|
goto try_return_handler_5;
|
||
|
}
|
||
|
// tried codes exits in all cases
|
||
|
NUITKA_CANNOT_GET_HERE( cryptography$hazmat$primitives$kdf$scrypt );
|
||
|
return MOD_RETURN_VALUE( NULL );
|
||
|
// Return handler code:
|
||
|
try_return_handler_5:;
|
||
|
{
|
||
|
Py_DECREF( locals_cryptography$hazmat$primitives$kdf$scrypt_24 );
|
||
|
locals_cryptography$hazmat$primitives$kdf$scrypt_24 = NULL;
|
||
|
}
|
||
|
{
|
||
|
goto try_return_handler_4;
|
||
|
}
|
||
|
// Exception handler code:
|
||
|
try_except_handler_5:;
|
||
|
exception_keeper_type_3 = exception_type;
|
||
|
exception_keeper_value_3 = exception_value;
|
||
|
exception_keeper_tb_3 = exception_tb;
|
||
|
exception_keeper_lineno_3 = exception_lineno;
|
||
|
exception_type = NULL;
|
||
|
exception_value = NULL;
|
||
|
exception_tb = NULL;
|
||
|
exception_lineno = 0;
|
||
|
|
||
|
{
|
||
|
Py_DECREF( locals_cryptography$hazmat$primitives$kdf$scrypt_24 );
|
||
|
locals_cryptography$hazmat$primitives$kdf$scrypt_24 = NULL;
|
||
|
}
|
||
|
{
|
||
|
// Re-raise.
|
||
|
exception_type = exception_keeper_type_3;
|
||
|
exception_value = exception_keeper_value_3;
|
||
|
exception_tb = exception_keeper_tb_3;
|
||
|
exception_lineno = exception_keeper_lineno_3;
|
||
|
|
||
|
goto try_except_handler_4;
|
||
|
}
|
||
|
// End of try:
|
||
|
}
|
||
|
// tried codes exits in all cases
|
||
|
NUITKA_CANNOT_GET_HERE( cryptography$hazmat$primitives$kdf$scrypt );
|
||
|
return MOD_RETURN_VALUE( NULL );
|
||
|
// Return handler code:
|
||
|
try_return_handler_4:;
|
||
|
{
|
||
|
CHECK_OBJECT( (PyObject *)outline_0_var___class__ );
|
||
|
Py_DECREF( outline_0_var___class__ );
|
||
|
outline_0_var___class__ = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
goto outline_result_1;
|
||
|
}
|
||
|
// Exception handler code:
|
||
|
try_except_handler_4:;
|
||
|
exception_keeper_type_4 = exception_type;
|
||
|
exception_keeper_value_4 = exception_value;
|
||
|
exception_keeper_tb_4 = exception_tb;
|
||
|
exception_keeper_lineno_4 = exception_lineno;
|
||
|
exception_type = NULL;
|
||
|
exception_value = NULL;
|
||
|
exception_tb = NULL;
|
||
|
exception_lineno = 0;
|
||
|
|
||
|
{
|
||
|
// Re-raise.
|
||
|
exception_type = exception_keeper_type_4;
|
||
|
exception_value = exception_keeper_value_4;
|
||
|
exception_tb = exception_keeper_tb_4;
|
||
|
exception_lineno = exception_keeper_lineno_4;
|
||
|
|
||
|
goto outline_exception_1;
|
||
|
}
|
||
|
// End of try:
|
||
|
}
|
||
|
// Return statement must have exited already.
|
||
|
NUITKA_CANNOT_GET_HERE( cryptography$hazmat$primitives$kdf$scrypt );
|
||
|
return MOD_RETURN_VALUE( NULL );
|
||
|
outline_exception_1:;
|
||
|
exception_lineno = 24;
|
||
|
goto try_except_handler_3;
|
||
|
outline_result_1:;
|
||
|
frame_77b8afe22b74632a7cfffa4dcc92c8e0->m_frame.f_lineno = 23;
|
||
|
{
|
||
|
PyObject *call_args[] = { tmp_args_element_name_2 };
|
||
|
tmp_assign_source_24 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_2, call_args );
|
||
|
}
|
||
|
|
||
|
Py_DECREF( tmp_called_name_2 );
|
||
|
Py_DECREF( tmp_args_element_name_2 );
|
||
|
if ( tmp_assign_source_24 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 23;
|
||
|
|
||
|
goto try_except_handler_3;
|
||
|
}
|
||
|
UPDATE_STRING_DICT1( moduledict_cryptography$hazmat$primitives$kdf$scrypt, (Nuitka_StringObject *)const_str_plain_Scrypt, tmp_assign_source_24 );
|
||
|
}
|
||
|
goto try_end_3;
|
||
|
// Exception handler code:
|
||
|
try_except_handler_3:;
|
||
|
exception_keeper_type_5 = exception_type;
|
||
|
exception_keeper_value_5 = exception_value;
|
||
|
exception_keeper_tb_5 = exception_tb;
|
||
|
exception_keeper_lineno_5 = exception_lineno;
|
||
|
exception_type = NULL;
|
||
|
exception_value = NULL;
|
||
|
exception_tb = NULL;
|
||
|
exception_lineno = 0;
|
||
|
|
||
|
{
|
||
|
Py_XDECREF( tmp_class_creation_1__bases );
|
||
|
tmp_class_creation_1__bases = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( tmp_class_creation_1__class_decl_dict );
|
||
|
tmp_class_creation_1__class_decl_dict = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( tmp_class_creation_1__metaclass );
|
||
|
tmp_class_creation_1__metaclass = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( tmp_class_creation_1__prepared );
|
||
|
tmp_class_creation_1__prepared = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
// Re-raise.
|
||
|
exception_type = exception_keeper_type_5;
|
||
|
exception_value = exception_keeper_value_5;
|
||
|
exception_tb = exception_keeper_tb_5;
|
||
|
exception_lineno = exception_keeper_lineno_5;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
// End of try:
|
||
|
try_end_3:;
|
||
|
}
|
||
|
|
||
|
// Restore frame exception if necessary.
|
||
|
#if 0
|
||
|
RESTORE_FRAME_EXCEPTION( frame_77b8afe22b74632a7cfffa4dcc92c8e0 );
|
||
|
#endif
|
||
|
popFrameStack();
|
||
|
|
||
|
assertFrameObject( frame_77b8afe22b74632a7cfffa4dcc92c8e0 );
|
||
|
|
||
|
goto frame_no_exception_2;
|
||
|
|
||
|
frame_exception_exit_1:;
|
||
|
#if 0
|
||
|
RESTORE_FRAME_EXCEPTION( frame_77b8afe22b74632a7cfffa4dcc92c8e0 );
|
||
|
#endif
|
||
|
|
||
|
if ( exception_tb == NULL )
|
||
|
{
|
||
|
exception_tb = MAKE_TRACEBACK( frame_77b8afe22b74632a7cfffa4dcc92c8e0, exception_lineno );
|
||
|
}
|
||
|
else if ( exception_tb->tb_frame != &frame_77b8afe22b74632a7cfffa4dcc92c8e0->m_frame )
|
||
|
{
|
||
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_77b8afe22b74632a7cfffa4dcc92c8e0, exception_lineno );
|
||
|
}
|
||
|
|
||
|
// Put the previous frame back on top.
|
||
|
popFrameStack();
|
||
|
|
||
|
// Return the error.
|
||
|
goto module_exception_exit;
|
||
|
|
||
|
frame_no_exception_2:;
|
||
|
{
|
||
|
CHECK_OBJECT( (PyObject *)tmp_class_creation_1__bases );
|
||
|
Py_DECREF( tmp_class_creation_1__bases );
|
||
|
tmp_class_creation_1__bases = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
CHECK_OBJECT( (PyObject *)tmp_class_creation_1__class_decl_dict );
|
||
|
Py_DECREF( tmp_class_creation_1__class_decl_dict );
|
||
|
tmp_class_creation_1__class_decl_dict = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
CHECK_OBJECT( (PyObject *)tmp_class_creation_1__metaclass );
|
||
|
Py_DECREF( tmp_class_creation_1__metaclass );
|
||
|
tmp_class_creation_1__metaclass = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
CHECK_OBJECT( (PyObject *)tmp_class_creation_1__prepared );
|
||
|
Py_DECREF( tmp_class_creation_1__prepared );
|
||
|
tmp_class_creation_1__prepared = NULL;
|
||
|
|
||
|
}
|
||
|
|
||
|
return MOD_RETURN_VALUE( module_cryptography$hazmat$primitives$kdf$scrypt );
|
||
|
module_exception_exit:
|
||
|
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
|
||
|
return MOD_RETURN_VALUE( NULL );
|
||
|
}
|