security: In MemoryPrivateKeyStorage, implement generateKeyPair.