Run-time analysis of PKCS#11 attacks