security: In MemoryPrivateKeyStorage, added seprate setPublicKeyForKeyName and setPrivateKeyForKeyName.