File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,22 +70,9 @@ STATIC mp_obj_t hash_digest(mp_obj_t self_in) {
7070}
7171MP_DEFINE_CONST_FUN_OBJ_1 (hash_digest_obj , hash_digest );
7272
73- STATIC mp_obj_t hash_hexdigest (mp_obj_t self_in ) {
74- (void )self_in ;
75- mp_not_implemented ("" );
76- #if 0
77- mp_obj_hash_t * self = self_in ;
78- byte hash [SHA256_BLOCK_SIZE ];
79- sha256_final ((SHA256_CTX * )self -> state , hash );
80- return mp_obj_new_str ((char * )hash , SHA256_BLOCK_SIZE , false);
81- #endif
82- }
83- MP_DEFINE_CONST_FUN_OBJ_1 (hash_hexdigest_obj , hash_hexdigest );
84-
8573STATIC const mp_map_elem_t hash_locals_dict_table [] = {
8674 { MP_OBJ_NEW_QSTR (MP_QSTR_update ), (mp_obj_t ) & hash_update_obj },
8775 { MP_OBJ_NEW_QSTR (MP_QSTR_digest ), (mp_obj_t ) & hash_digest_obj },
88- { MP_OBJ_NEW_QSTR (MP_QSTR_hexdigest ), (mp_obj_t ) & hash_hexdigest_obj },
8976};
9077
9178STATIC MP_DEFINE_CONST_DICT (hash_locals_dict , hash_locals_dict_table );
You can’t perform that action at this time.
0 commit comments