generateKeyPair

Generates a key pair.

Return

Null if any error is occurred, otherwise the key pair.