Skip to content

Instantly share code, notes, and snippets.

@hiroyuki-sato
Created June 8, 2021 13:00
Show Gist options
  • Save hiroyuki-sato/26e3c588ac95d3dd332889c407ec8db3 to your computer and use it in GitHub Desktop.
Save hiroyuki-sato/26e3c588ac95d3dd332889c407ec8db3 to your computer and use it in GitHub Desktop.
case PGPPublicKey.RSA_ENCRYPT:
case PGPPublicKey.RSA_GENERAL:
case PGPPublicKey.RSA_SIGN:
case PGPPublicKey.DSA:
case PGPPublicKey.ELGAMAL_ENCRYPT:
case PGPPublicKey.ELGAMAL_GENERAL:
case PGPPublicKey.ECDH:
case PGPPublicKey.ECDSA:
case PGPPublicKey.EDDSA:
default:
throw new PGPException("unknown public key algorithm encountered");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment