While trying to repro some user issues, I needed to create a bunch of keys with different parameters. I looked into EC key generation and turns out there was a couple of serialization issues that made it impossible to serialize key bundles with EC keys in them; and also few other issues that obscured real bugs.
This PR fixes these issues, adds experimental EC key generation function and adds a test that generates a key, serializes it, de-serializes, and then tries to encrypt that keybundle.
While trying to repro some user issues, I needed to create a bunch of keys with different parameters. I looked into EC key generation and turns out there was a couple of serialization issues that made it impossible to serialize key bundles with EC keys in them; and also few other issues that obscured real bugs.
This PR fixes these issues, adds experimental EC key generation function and adds a test that generates a key, serializes it, de-serializes, and then tries to encrypt that keybundle.