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. #7

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

Forgot to mention also has unit tests for all the operations that were added. pt_add_inplace, pt_mul_inplace, pt_neg_inplace, pt_double_inplace

TariqEE commented 8 years ago

OK, i see the failure on the auto-test and have fixed them. Going to send another pull request and see if those pass. This things is pretty cool :).