PGP data encryption for use with Yubico OpenPGP Smart Card
问题 I'm trying to implement PGP encryption based on Yubikey NEO OpenPGP Smart Card applet in a Java application. It seems to be a dark art and is not easy to google this stuff but here is where I got so far: The card is initialized, keys are generated using gpg tool. It generally works. I have my public key in .asc format and managed to load it into org.bouncycastle.openpgp Connect to the smart card in the USB dongle using javax.smartcardio APIs. Select the OpenPGP applet val pgpAID = bytes(0xD2,