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
2021-11-08 18:33:37 +01:00
2021-10-25 10:26:32 +02:00
2021-11-08 18:33:37 +01:00
2021-03-09 13:22:52 +01:00
2021-10-25 10:26:32 +02:00
2021-09-08 11:07:46 +02:00
2021-06-02 12:25:36 -06:00
2021-11-08 13:02:03 +01:00
2021-10-25 10:26:32 +02:00
2021-10-25 10:26:32 +02:00
2021-09-08 11:07:46 +02:00
2021-04-06 14:16:23 -06:00
2021-03-15 16:48:11 +09:00
2020-12-15 12:15:22 -06:00
2021-08-03 15:48:03 +02:00