Bug 1034856 - Implement generateKey()
WIP - key import
WIP - bits and key derivation