Skip to content

seal_poly_eval #67

@dv-ai

Description

@dv-ai

There is a strange behavoir when using seal_poly_eval with the 3th parameter of coeffs different than 0 (in the unitary test the value is 0):

with tf.Session() as sess:
        x = np.array([[1, 2, 3], [4, 5, 5]], np.float32)
        coeffs = np.array([0.0, 0.0, 0.1, 0.00])
        pub_key, sec_key = seal_key_gen(gen_relin=True, gen_galois=True)
        x_var = seal_encrypt(x, pub_key)
        c_var = seal_poly_eval(x_var, coeffs, pub_key)
        c = seal_decrypt(c_var, sec_key, tf.float32)
        sess.run(c)

I have the exception:
terminate called after throwing an instance of 'std::logic_error'
what(): result ciphertext is transparent
Aborted

For others coefficients like "coeffs = np.array([0.1, 0.5, 0.1, 0.00])", I have the following exception:
terminate called after throwing an instance of 'std::invalid_argument'
what(): encrypted_ntt and plain_ntt parameter mismatch
Aborted

It is working when using the coefficents used in the unitary test (coeffs = np.array([0.5, 0.197, 0.0, -0.004]))

I have installed the files given by Wixee in the issue #62

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions