@@ -211,7 +211,7 @@ STATIC void aes_process_ctr_impl(AES_CTX_IMPL *ctx, const uint8_t *in, uint8_t *
211
211
212
212
#endif
213
213
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 ) {
215
215
mp_arg_check_num (n_args , n_kw , 2 , 3 , false);
216
216
217
217
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) {
332
332
return mp_obj_new_bytes_from_vstr (& vstr );
333
333
}
334
334
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 ) {
336
336
return aes_process (n_args , args , true);
337
337
}
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 );
339
339
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 ) {
341
341
return aes_process (n_args , args , false);
342
342
}
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 );
344
344
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 ) },
348
348
};
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 );
350
350
351
351
STATIC MP_DEFINE_CONST_OBJ_TYPE (
352
- ucryptolib_aes_type ,
352
+ cryptolib_aes_type ,
353
353
MP_QSTR_aes ,
354
354
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
357
357
);
358
358
359
359
STATIC const mp_rom_map_elem_t mp_module_cryptolib_globals_table [] = {
360
360
{ 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 ) },
362
362
#if MICROPY_PY_UCRYPTOLIB_CONSTS
363
363
{ MP_ROM_QSTR (MP_QSTR_MODE_ECB ), MP_ROM_INT (UCRYPTOLIB_MODE_ECB ) },
364
364
{ MP_ROM_QSTR (MP_QSTR_MODE_CBC ), MP_ROM_INT (UCRYPTOLIB_MODE_CBC ) },
0 commit comments