@@ -211,7 +211,7 @@ STATIC void aes_process_ctr_impl(AES_CTX_IMPL *ctx, const uint8_t *in, uint8_t *
211211
212212#endif
213213
214- STATIC mp_obj_t ucryptolib_aes_make_new (const mp_obj_type_t * type , size_t n_args , size_t n_kw , const mp_obj_t * args ) {
214+ STATIC mp_obj_t cryptolib_aes_make_new (const mp_obj_type_t * type , size_t n_args , size_t n_kw , const mp_obj_t * args ) {
215215 mp_arg_check_num (n_args , n_kw , 2 , 3 , false);
216216
217217 const mp_int_t block_mode = mp_obj_get_int (args [1 ]);
@@ -332,33 +332,33 @@ STATIC mp_obj_t aes_process(size_t n_args, const mp_obj_t *args, bool encrypt) {
332332 return mp_obj_new_bytes_from_vstr (& vstr );
333333}
334334
335- STATIC mp_obj_t ucryptolib_aes_encrypt (size_t n_args , const mp_obj_t * args ) {
335+ STATIC mp_obj_t cryptolib_aes_encrypt (size_t n_args , const mp_obj_t * args ) {
336336 return aes_process (n_args , args , true);
337337}
338- STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (ucryptolib_aes_encrypt_obj , 2 , 3 , ucryptolib_aes_encrypt );
338+ STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (cryptolib_aes_encrypt_obj , 2 , 3 , cryptolib_aes_encrypt );
339339
340- STATIC mp_obj_t ucryptolib_aes_decrypt (size_t n_args , const mp_obj_t * args ) {
340+ STATIC mp_obj_t cryptolib_aes_decrypt (size_t n_args , const mp_obj_t * args ) {
341341 return aes_process (n_args , args , false);
342342}
343- STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (ucryptolib_aes_decrypt_obj , 2 , 3 , ucryptolib_aes_decrypt );
343+ STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (cryptolib_aes_decrypt_obj , 2 , 3 , cryptolib_aes_decrypt );
344344
345- STATIC const mp_rom_map_elem_t ucryptolib_aes_locals_dict_table [] = {
346- { MP_ROM_QSTR (MP_QSTR_encrypt ), MP_ROM_PTR (& ucryptolib_aes_encrypt_obj ) },
347- { MP_ROM_QSTR (MP_QSTR_decrypt ), MP_ROM_PTR (& ucryptolib_aes_decrypt_obj ) },
345+ STATIC const mp_rom_map_elem_t cryptolib_aes_locals_dict_table [] = {
346+ { MP_ROM_QSTR (MP_QSTR_encrypt ), MP_ROM_PTR (& cryptolib_aes_encrypt_obj ) },
347+ { MP_ROM_QSTR (MP_QSTR_decrypt ), MP_ROM_PTR (& cryptolib_aes_decrypt_obj ) },
348348};
349- STATIC MP_DEFINE_CONST_DICT (ucryptolib_aes_locals_dict , ucryptolib_aes_locals_dict_table );
349+ STATIC MP_DEFINE_CONST_DICT (cryptolib_aes_locals_dict , cryptolib_aes_locals_dict_table );
350350
351351STATIC MP_DEFINE_CONST_OBJ_TYPE (
352- ucryptolib_aes_type ,
352+ cryptolib_aes_type ,
353353 MP_QSTR_aes ,
354354 MP_TYPE_FLAG_NONE ,
355- make_new , ucryptolib_aes_make_new ,
356- locals_dict , & ucryptolib_aes_locals_dict
355+ make_new , cryptolib_aes_make_new ,
356+ locals_dict , & cryptolib_aes_locals_dict
357357 );
358358
359359STATIC const mp_rom_map_elem_t mp_module_cryptolib_globals_table [] = {
360360 { MP_ROM_QSTR (MP_QSTR___name__ ), MP_ROM_QSTR (MP_QSTR_cryptolib ) },
361- { MP_ROM_QSTR (MP_QSTR_aes ), MP_ROM_PTR (& ucryptolib_aes_type ) },
361+ { MP_ROM_QSTR (MP_QSTR_aes ), MP_ROM_PTR (& cryptolib_aes_type ) },
362362 #if MICROPY_PY_UCRYPTOLIB_CONSTS
363363 { MP_ROM_QSTR (MP_QSTR_MODE_ECB ), MP_ROM_INT (UCRYPTOLIB_MODE_ECB ) },
364364 { MP_ROM_QSTR (MP_QSTR_MODE_CBC ), MP_ROM_INT (UCRYPTOLIB_MODE_CBC ) },
0 commit comments