(self, alg, expected, hex_kek, hex_wrapped)
| 52 | |
| 53 | @pytest.mark.parametrize("alg,expected,hex_kek,hex_wrapped", VECTORS) |
| 54 | def test_unwrap(self, alg, expected, hex_kek, hex_wrapped): |
| 55 | bin_kek = unhexlify(hex_kek) |
| 56 | bin_wrapped = unhexlify(hex_wrapped) |
| 57 | aes_key = CryptographyAESKey(bin_kek, alg) |
| 58 | actual = hexlify(aes_key.unwrap_key(bin_wrapped)).upper() |
| 59 | assert actual == expected |
nothing calls this directly
no test coverage detected