(self, enc_alg, ek, headers, key)
| 114 | return self.wrap_cek(cek, key) |
| 115 | |
| 116 | def unwrap(self, enc_alg, ek, headers, key): |
| 117 | op_key = key.get_op_key("unwrapKey") |
| 118 | self._check_key(op_key) |
| 119 | cek = aes_key_unwrap(op_key, ek, default_backend()) |
| 120 | if len(cek) * 8 != enc_alg.CEK_SIZE: |
| 121 | cek = secrets.token_bytes(enc_alg.CEK_SIZE // 8) |
| 122 | return cek |
| 123 | |
| 124 | |
| 125 | class AESGCMAlgorithm(JWEAlgorithm): |
nothing calls this directly
no test coverage detected