PKCS#11 is published standard.

PKCS#11 is the de-facto standard to access cryptographic devices.

pkcs11-helper is a library that simplifies the interaction with
PKCS#11 providers for end-user applications.
