(self, header)
| 722 | return self.ENC_REGISTRY[enc] |
| 723 | |
| 724 | def get_header_zip(self, header): |
| 725 | if "zip" in header: |
| 726 | z = header["zip"] |
| 727 | if self._algorithms is not None and z not in self._algorithms: |
| 728 | raise UnsupportedCompressionAlgorithmError() |
| 729 | if z not in self.ZIP_REGISTRY: |
| 730 | raise UnsupportedCompressionAlgorithmError() |
| 731 | return self.ZIP_REGISTRY[z] |
| 732 | |
| 733 | def _validate_sender_key(self, sender_key, alg): |
| 734 | if isinstance(alg, JWEAlgorithmWithTagAwareKeyAgreement): |
no test coverage detected