def _find_method_hash(method_hash):
 for (hashname, asn1code) in HASH_ASN1.items():
  if (not method_hash.startswith(asn1code)):
   continue
  return (hashname, method_hash[len(asn1code):])
 raise VerificationError('Verification failed')

def _find_method_hash ( method_hash ) : for ( hashname , asn1code ) in HASH_ASN1 . items ( ) : if ( not method_hash . startswith ( asn1code ) ) : continue return ( hashname , method_hash [ len ( asn1code ) : ] ) raise VerificationError ( 'Verification failed' )
finds the hash method and the hash itself .