Add support for generating shared keys in PKC packages.

Also adds benchmarking to support this.