nim-libp2p/libp2p/crypto
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
..
ed25519 Rename getKey -> getPublicKey (#621) 2021-09-02 12:03:40 +02:00
chacha20poly1305.nim Use results and no exceptions in chacha and curve25519 (#182) 2020-05-19 10:22:49 +02:00
crypto.nim Various cleanups part 1 (#632) 2021-10-25 10:26:32 +02:00
curve25519.nim Audit curve fixes part2 (#298) 2020-08-04 18:19:26 +09:00
ecnist.nim harden `ecnist` byte export against uninitialized key (#671) 2021-12-13 18:46:25 +00:00
hkdf.nim removals (#159) 2020-05-06 18:31:47 +02:00
minasn1.nim Refactor minasn1 and fix security issues. (#323) 2020-08-11 16:58:51 -06:00
rsa.nim Rename getKey -> getPublicKey (#621) 2021-09-02 12:03:40 +02:00
secp.nim Merge branch 'master' into unstable 2021-09-09 13:22:45 +02:00