Supplying a badly formatted CBOR as the attestation binary raises a KeyError when calling Attestation.verify
Error point:
pyattest/verifiers/apple_attestation.py", line 61, in unpack
credential_data = raw["authData"][37:]
It would be nice if the CBOR payload is validated and an appropriate exception is raised if it's not.
My workaround is to catch KeyError in the server script.
Supplying a badly formatted CBOR as the attestation binary raises a
KeyErrorwhen callingAttestation.verifyError point:
It would be nice if the CBOR payload is validated and an appropriate exception is raised if it's not.
My workaround is to catch
KeyErrorin the server script.