#NEWLINE# def _get_alg_attr( self , alg = None ) : #NEWLINE# #INDENT# if ( alg is None ) : #NEWLINE# #INDENT# alg = attribute_type . algorithm_name #NEWLINE# #UNINDENT# attr_factory = AttributeFactory ( ) #NEWLINE# attribute_type = AttributeType . CRYPTOGRAPHIC_ALGORITHM #NEWLINE# return attr_factory . create_attribute ( attribute_type , alg )