cryptimeleon / math

Library providing mathematical basics for (pairing-based) cryptography.
Apache License 2.0
10 stars 2 forks source link

Add (multi-)exp algorithm selection options to debug group #113

Closed rheitjoh closed 3 years ago

rheitjoh commented 3 years ago

Adds (multi-)exp algorithm selection options to debug group. The same interface as for LazyGroup but just for DebugGroup. Also adds similar methods to DebugBilinearGroup, although here some changes have to be made to account for the fact that DebugBilinearGroup consists of three groups, G1, G2, and GT. So the getter methods only return something useful if all of those groups have the same value set. The setter methods apply the change to all of G1, G2, and GT at once.

I also improved the toString methods of DebugGroup and DebugBilinearGroup to make them more informative.