pkcs11: Method added to library to extract a single attribute from an object.