Example #1
0
 def __add__(self, other):
     """
     Add two EC points together
     """
     if isinstance(other, Point):
         result = OpenSSL.EC_POINT_new(self.os_group)
         OpenSSL.EC_POINT_add(self.os_group, result, self.os_point,
                              other.os_point, 0)
         return Point(self.curve, openssl_point=result)
     else:
         return NotImplemented