When you pass a zero length (or <32 len) byte array to EncryptedMessage::from_bytes, it will panic
thread 'tokio-runtime-worker' panicked at /usr/local/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/generic-ecies-0.1.0/src/lib.rs:545:63:
range end index 32 out of range for slice of length 0
|
match generic_ec::Point::<S::E>::from_bytes(&bytes[..compressed_len]) { |