mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-15 15:15:06 -05:00
15 lines
398 B
Python
15 lines
398 B
Python
import json
|
|
import sys
|
|
|
|
|
|
def print_curve(data):
|
|
print(f'\tSecurityCurve({data["security_level"]},{data["slope"]}, {data["bias"]}, {data["minimal_lwe_dimension"]}, KeyFormat::BINARY),')
|
|
|
|
def print_cpp_curves_declaration(datas):
|
|
print("std::vector<SecurityCurve> curves {")
|
|
for data in datas:
|
|
print_curve(data)
|
|
print("}\n")
|
|
|
|
print_cpp_curves_declaration(json.load(sys.stdin))
|