File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 39
39
//| digest_size: int
40
40
//| """Digest size in bytes"""
41
41
//|
42
- STATIC mp_obj_t hashlib_hash_get_digest_size (mp_obj_t self_in ) {
42
+ STATIC mp_obj_t hashlib_hash_digest_size_get (mp_obj_t self_in ) {
43
43
mp_check_self (mp_obj_is_type (self_in , & hashlib_hash_type ));
44
44
hashlib_hash_obj_t * self = MP_OBJ_TO_PTR (self_in );
45
45
return MP_OBJ_NEW_SMALL_INT (common_hal_hashlib_hash_get_digest_size (self ));
46
46
}
47
- MP_PROPERTY_GETTER (hashlib_hash_digest_size_obj , hashlib_hash_get_digest_size );
47
+ MP_DEFINE_CONST_FUN_OBJ_1 (hashlib_hash_digest_size_get_obj , hashlib_hash_digest_size_get );
48
+ MP_PROPERTY_GETTER (hashlib_hash_digest_size_obj , (mp_obj_t )& hashlib_hash_digest_size_get_obj );
48
49
49
50
//| def update(self, data: ReadableBuffer) -> None:
50
51
//| """Update the hash with the given bytes.
You can’t perform that action at this time.
0 commit comments