returns the name of a elliptic curve with his id
(self, id)
| 453 | return self.curves[name] |
| 454 | |
| 455 | def get_curve_by_id(self, id): |
| 456 | """ |
| 457 | returns the name of a elliptic curve with his id |
| 458 | """ |
| 459 | res = None |
| 460 | for i in self.curves: |
| 461 | if self.curves[i] == id: |
| 462 | res = i |
| 463 | break |
| 464 | if res is None: |
| 465 | raise Exception("Unknown curve") |
| 466 | return res |
| 467 | |
| 468 | def rand(self, size): |
| 469 | """ |