gdanezis / petlib

A python library that implements a number of Privacy Enhancing Technolgies
BSD 2-Clause "Simplified" License
133 stars 33 forks source link

Added memory-in-place operations for arithmetic on ec_points. Now with bug fixes. #9

Closed TariqEE closed 8 years ago

TariqEE commented 8 years ago

Memory-in-place arithmetic operations are useful when ec_points are in a data structure without an easy way to index them. This is the case when porting PrivEx from using the C ec_library to using petlib since there are data structures used that assume in-place operations rather than creating new objects.

TariqEE commented 8 years ago

OK, I think that should do it for the unit tests. Let me know if you'd like to see something more/different.

gdanezis commented 8 years ago

Modified a bit the sized export, make sure it does not break your code. Do you even need such a function? Why not call .export()[:size]? Added an additional test for it.