def __init__(self, encryption_type, algorithm, padding_type, padding_algorithm, padding_mgf):
        """Prepares new WrappingAlgorithm."""
        self.encryption_type = encryption_type
        self.algorithm = algorithm
        if padding_type == padding.OAEP:
            padding_args = {
                "mgf": padding_mgf(algorithm=padding_algorithm()),
                "algorithm": padding_algorithm(),
                "label": None,
            }
        else:
            padding_args = {}
        if padding_type is not None:
            padding_type = padding_type(**padding_args)
        self.padding = padding_type
def __init__ ( self , encryption_type , algorithm , padding_type , padding_algorithm , padding_mgf ) : self . encryption_type = encryption_type self . algorithm = algorithm if padding_type == padding . OAEP : padding_args = { "mgf" : padding_mgf ( algorithm = padding_algorithm ( ) ) , "algorithm" : padding_algorithm ( ) , "label" : None , } else : padding_args = { } if padding_type is not None : padding_type = padding_type ( ** padding_args ) self . padding = padding_type
Prepares new WrappingAlgorithm.