-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Karatsuba's trick for tensoring ciphertexts in mul #4
Comments
@Janmajayamall can I take this up ser |
Yup! |
At present we tensor degree 1 ciphertexts ct0 = (c00, c01) and ct1 = (c10, c11) the usual way With Karatsuba's trick the calculation will change to This replaces 2 vector modulur multiplications with 2 vector modulur additions, 2 vector modulur subtrations, and 1 vector modulur multiplication. So assuming 2 additions and 2 subtrations are cheaper than a single multiplication (which is the case if you bench But we should run benchmarks for multiplications after adding Karatsurba's trick on mac and x86 (using hexl and for modulus bit size <= 50 and > 50). Tensoring code lives here. Thanks for looking into this :) |
@Janmajayamall Is @ameya-deshmukh still working on this If not would love to take this up as this seems to be a good first issue to get started. |
@nlok5923 I don't think Ameya is still working on it. Please feel free to take this up. Thanks! |
Add Karatsuba's trick for ciphertext multiplication and benchmark it against normal tensoring for different polynomial degrees.
The text was updated successfully, but these errors were encountered: