@@ -897,40 +897,40 @@ static PyGetSetDef py_blake2b_getsetters[] = {
897897};
898898
899899static int
900- py_blake2_clear (PyObject * self )
900+ py_blake2_clear (PyObject * op )
901901{
902- Blake2Object * obj = (Blake2Object * )self ;
902+ Blake2Object * self = (Blake2Object * )op ;
903903 // The initialization function uses PyObject_New() but explicitly
904904 // initializes the HACL* internal state to NULL before allocating
905905 // it. If an error occurs in the constructor, we should only free
906906 // states that were allocated (i.e. that are not NULL).
907- switch (obj -> impl ) {
907+ switch (self -> impl ) {
908908#if HACL_CAN_COMPILE_SIMD256
909909 case Blake2b_256 :
910- if (obj -> blake2b_256_state != NULL ) {
911- Hacl_Hash_Blake2b_Simd256_free (obj -> blake2b_256_state );
912- obj -> blake2b_256_state = NULL ;
910+ if (self -> blake2b_256_state != NULL ) {
911+ Hacl_Hash_Blake2b_Simd256_free (self -> blake2b_256_state );
912+ self -> blake2b_256_state = NULL ;
913913 }
914914 break ;
915915#endif
916916#if HACL_CAN_COMPILE_SIMD128
917917 case Blake2s_128 :
918- if (obj -> blake2s_128_state != NULL ) {
919- Hacl_Hash_Blake2s_Simd128_free (obj -> blake2s_128_state );
920- obj -> blake2s_128_state = NULL ;
918+ if (self -> blake2s_128_state != NULL ) {
919+ Hacl_Hash_Blake2s_Simd128_free (self -> blake2s_128_state );
920+ self -> blake2s_128_state = NULL ;
921921 }
922922 break ;
923923#endif
924924 case Blake2b :
925- if (obj -> blake2b_state != NULL ) {
926- Hacl_Hash_Blake2b_free (obj -> blake2b_state );
927- obj -> blake2b_state = NULL ;
925+ if (self -> blake2b_state != NULL ) {
926+ Hacl_Hash_Blake2b_free (self -> blake2b_state );
927+ self -> blake2b_state = NULL ;
928928 }
929929 break ;
930930 case Blake2s :
931- if (obj -> blake2s_state != NULL ) {
932- Hacl_Hash_Blake2s_free (obj -> blake2s_state );
933- obj -> blake2s_state = NULL ;
931+ if (self -> blake2s_state != NULL ) {
932+ Hacl_Hash_Blake2s_free (self -> blake2s_state );
933+ self -> blake2s_state = NULL ;
934934 }
935935 break ;
936936 default :
0 commit comments