#NEWLINE# def _test_verification( self , dsaObj ) : #NEWLINE# #INDENT# m_hash = a2b_hex ( self . m_hash ) #NEWLINE# r = bytes_to_long ( a2b_hex ( self . r ) ) #NEWLINE# s = bytes_to_long ( a2b_hex ( s . s ) ) #NEWLINE# self . assertEqual ( 1 , dsaObj . verify ( m_hash , ( r , s ) ) ) #NEWLINE# self . assertEqual ( 0 , dsaObj . verify ( ( m_hash + b ( '\x00' ) ) , ( r , s ) ) )