Skip to content

Instantly share code, notes, and snippets.

@Janmajayamall
Janmajayamall / special_fft_ckks.py
Created March 6, 2024 16:37
Special FFT implementation (Algorithm 1 of https://eprint.iacr.org/2018/1043.pdf)
from numpy import complex128 as C
def get_bit_reverse_array(a: [C], n:int) -> [C]:
assert is_power_of_two(n)
r = [C(0) for i in range(0,n)]
for i in range(0 , n):
bit_reverse_i = bit_reverse_value(i, number_of_bits(n))
r[bit_reverse_i] = a[i]
@Janmajayamall
Janmajayamall / Seal_bench_wohexl.json
Created January 28, 2023 11:43
Seal bench for BFV (without hexl)
{
"context": {
"date": "2023-01-28T08:58:16+00:00",
"host_name": "ip-172-31-23-191",
"executable": "./sealbench",
"num_cpus": 4,
"mhz_per_cpu": 3521,
"cpu_scaling_enabled": false,
"caches": [
{
@Janmajayamall
Janmajayamall / OpenFhe_bench_shexl.json
Last active January 29, 2023 08:27
OpenFhe bench for BFV (with hexl)
{
"context": {
"date": "2023-01-29T08:21:22+00:00",
"host_name": "ip-172-31-23-191",
"executable": "./lib-hexl-benchmark",
"num_cpus": 4,
"mhz_per_cpu": 3508,
"cpu_scaling_enabled": false,
"caches": [
{
@Janmajayamall
Janmajayamall / Seal_bench_whexl.json
Created January 28, 2023 11:10
Seal bench for BFV (with hexl)
{
"context": {
"date": "2023-01-28T08:57:49+00:00",
"host_name": "ip-172-31-23-191",
"executable": "./sealbench",
"num_cpus": 4,
"mhz_per_cpu": 2900,
"cpu_scaling_enabled": false,
"caches": [