Attacking and Fixing PKCS#11 Security Tokens.