Etan Kissling 2373ee0061
harden ecnist byte export against uninitialized key (#671)
Currently, `ecnist`'s `toBytes` and `getBytes` methods operate only on
properly initialized keys. If an un-initialized key is given, an
`IndexError` may be raised if the key's `xlen` / `qlen` property is
larger than the maximum buffer size. This patch hardens those functions
to report a proper error in that case.
Note that the library functions called by `init` and `initRaw` already
reject data that does not have the expected length, so these new checks
should not be reachable in practice.
2021-12-13 18:46:25 +00:00
..
2021-10-25 10:26:32 +02:00
2020-08-04 18:19:26 +09:00
2021-09-02 12:03:40 +02:00
2021-09-09 13:22:45 +02:00