repaired cmCrypt generateAsyncKeypair