(self, header)
| 712 | return instance |
| 713 | |
| 714 | def get_header_enc(self, header): |
| 715 | if "enc" not in header: |
| 716 | raise MissingEncryptionAlgorithmError() |
| 717 | enc = header["enc"] |
| 718 | if self._algorithms is not None and enc not in self._algorithms: |
| 719 | raise UnsupportedEncryptionAlgorithmError() |
| 720 | if enc not in self.ENC_REGISTRY: |
| 721 | raise UnsupportedEncryptionAlgorithmError() |
| 722 | return self.ENC_REGISTRY[enc] |
| 723 | |
| 724 | def get_header_zip(self, header): |
| 725 | if "zip" in header: |
no test coverage detected