OpenSC is the library that talks to the (physical) device and exposes the standard PKCS#11 interface.
YubiKey 5, firmware >= 5.3.x supports OpenPGP 3.4 (X25519 support).
For YubiKeys two types of PKCS#11 interfaces exists; OpenPGP mode and PIV_II mode. By default PIV_II mode is selected. To use OpenPGP set: