(self, enc_alg, headers, key, preset=None)
| 107 | return {"ek": ek, "cek": cek} |
| 108 | |
| 109 | def wrap(self, enc_alg, headers, key, preset=None): |
| 110 | if preset and "cek" in preset: |
| 111 | cek = preset["cek"] |
| 112 | else: |
| 113 | cek = enc_alg.generate_cek() |
| 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") |
nothing calls this directly
no test coverage detected