Updates generate_keypair() to use generateKeys() from openpgpjs.crypto.js