Change method name from generateAsymmetricKey to generateSymmetricKey.

Also make it return a promise.