#NEWLINE# def _create_cryptographic_parameters( self , params ) : #NEWLINE# #INDENT# bcm = None #NEWLINE# padding_method = None #NEWLINE# hashing_algorithm = None #NEWLINE# key_role_type = None #NEWLINE# if ( hashing_algorithm is not None ) : #NEWLINE# #INDENT# if ( 'block_cipher_mode' in params ) : #NEWLINE# #INDENT# bcm = attributes . CryptographicParameters . BlockCipherMode ( params . get ( 'block_cipher_mode' ) ) #NEWLINE# #UNINDENT# padding_method = None #NEWLINE# if ( 'padding_method' in params ) : #NEWLINE# #INDENT# padding_method = attributes . CryptographicParameters . PaddingMethod ( params . get ( 'padding_method' ) ) #NEWLINE# #UNINDENT# key_role_type = None #NEWLINE# if ( 'key_role_type' in params ) : #NEWLINE# #INDENT# key_role_type = attributes . CryptographicParameters . KeyRoleType ( params . get ( 'key_role_type' ) ) #NEWLINE# #UNINDENT# hashing_algorithm = None #NEWLINE# if ( 'hashing_algorithm' in params ) : #NEWLINE# #INDENT# hashing_algorithm = attributes . HashingAlgorithm ( params . get ( 'hashing_algorithm' ) ) #NEWLINE# #UNINDENT# #UNINDENT# return attributes . CryptographicParameters ( block_cipher_mode = bcm , padding_method = padding_method , hashing_algorithm = hashing_algorithm , key_role_type = key_role_type )