#NEWLINE# def get_algorithm_impls( self , algorithm ) : #NEWLINE# #INDENT# if ( algorithm == 'MD5' ) : #NEWLINE# #INDENT# H = md5_digest #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( algorithm == 'SHA' ) : #NEWLINE# #INDENT# H = sha1_digest #NEWLINE# #UNINDENT# #UNINDENT# KD = ( lambda s , d : H ( ( '%s:%s' % ( s , d ) ) ) ) #NEWLINE# return ( H , H )