ecgroup¶
- class ecgroup.ECGroup(builtin_cv)[source]¶
Bases:
object- GetBenchmark(option)[source]¶
retrieves benchmark results for any of these options: RealTime, CpuTime, Mul, Div, Add, Sub, Exp, Granular
- StartBenchmark(options)[source]¶
starts the benchmark with any of these options: RealTime, CpuTime, Mul, Div, Add, Sub, Exp, Granular
- encode(message, include_ctr=False)[source]¶
encode arbitrary string as a group element. Max size is dependent on the EC group order
- hash(args, target_type=charm.core.math.elliptic_curve.ZR)[source]¶
hashes objects into ZR or G
Different object types may hash to the same element, e.g., the ASCII string ‘str’ and the byte string b’str’ map to the same element.