move check to be available inside cryptography.hazmat.bindings.utils