Yubikey NEO was my first contact with Smart Cards. I bought it, registered U2F wherever it's accepted and was looking for a way to encrypt some data with it. But incorporating this functionality in a Java application is a surprisingly hard task.
The tests were of some help but they don't get you very far. The general practice seems to be to call gpg and let it do the job.
Is there a chance you could include a full cycle example:
encrypt the data with Java (bouncy castle?) and then decrypt it with the Yubikey NEO using javax.smartcardio APIs ?
Yubikey NEO was my first contact with Smart Cards. I bought it, registered U2F wherever it's accepted and was looking for a way to encrypt some data with it. But incorporating this functionality in a Java application is a surprisingly hard task.
The tests were of some help but they don't get you very far. The general practice seems to be to call gpg and let it do the job.
Is there a chance you could include a full cycle example: encrypt the data with Java (bouncy castle?) and then decrypt it with the Yubikey NEO using javax.smartcardio APIs ?
Here is the result of me trying to do it: http://stackoverflow.com/questions/33841380/pgp-data-encryption-for-use-with-yubico-openpgp-smart-card