Testing cryptographic entity