Skip to content

rsa_param

rsa_param

Classes

RsaParam (BaseParam)

Define the sample method

Parameters:

Name Type Description Default
rsa_key_n integer

RSA modulus, default: None

None
rsa_key_e integer

RSA public exponent, default: None

None
rsa_key_d integer

RSA private exponent, default: None

None
save_out_table_namespace str

namespace of table where stores the output data. default: None

None
save_out_table_name str

name of table where stores the output data. default: None

None
Source code in federatedml/param/rsa_param.py
class RsaParam(BaseParam):
    """
    Define the sample method

    Parameters
    ----------
    rsa_key_n: integer
        RSA modulus, default: None
    rsa_key_e: integer
        RSA public exponent, default: None
    rsa_key_d: integer
        RSA private exponent, default: None
    save_out_table_namespace: str
        namespace of table where stores the output data. default: None
    save_out_table_name: str
        name of table where stores the output data. default: None
    """
    def __init__(self, rsa_key_n=None, rsa_key_e=None, rsa_key_d=None, save_out_table_namespace=None, save_out_table_name=None):
        self.rsa_key_n = rsa_key_n
        self.rsa_key_e = rsa_key_e
        self.rsa_key_d = rsa_key_d
        self.save_out_table_namespace = save_out_table_namespace
        self.save_out_table_name = save_out_table_name

    def check(self):
        descr = "rsa param"
        self.check_positive_integer(self.rsa_key_n, descr)
        self.check_positive_integer(self.rsa_key_e, descr)
        self.check_positive_integer(self.rsa_key_d, descr)
        self.check_string(self.save_out_table_namespace, descr)
        self.check_string(self.save_out_table_name, descr)
        return True
__init__(self, rsa_key_n=None, rsa_key_e=None, rsa_key_d=None, save_out_table_namespace=None, save_out_table_name=None) special
Source code in federatedml/param/rsa_param.py
def __init__(self, rsa_key_n=None, rsa_key_e=None, rsa_key_d=None, save_out_table_namespace=None, save_out_table_name=None):
    self.rsa_key_n = rsa_key_n
    self.rsa_key_e = rsa_key_e
    self.rsa_key_d = rsa_key_d
    self.save_out_table_namespace = save_out_table_namespace
    self.save_out_table_name = save_out_table_name
check(self)
Source code in federatedml/param/rsa_param.py
def check(self):
    descr = "rsa param"
    self.check_positive_integer(self.rsa_key_n, descr)
    self.check_positive_integer(self.rsa_key_e, descr)
    self.check_positive_integer(self.rsa_key_d, descr)
    self.check_string(self.save_out_table_namespace, descr)
    self.check_string(self.save_out_table_name, descr)
    return True

Last update: 2021-12-03
Back to top