diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-07 00:39:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-07 00:39:15 +0100 |
| commit | 932b942a51bef4e2dd2de9f83aa5b68ad07f60f9 (patch) | |
| tree | 40f81e0b4b2e04f46bab243e9c94ff24b8bcb2ef /src/kdm.cc | |
| parent | 4313456938d34d93239194e914b82e7a5ae14c1c (diff) | |
Working decryption via KDM.
Diffstat (limited to 'src/kdm.cc')
| -rw-r--r-- | src/kdm.cc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -94,7 +94,8 @@ KDMCipher::KDMCipher (unsigned char const * raw, int len) _key_id = get_uuid (&raw, 16); _not_valid_before = get (&raw, 25); _not_valid_after = get (&raw, 25); - _key_data = get_hex (&raw, 16); + memcpy (_key_raw, raw, 16); + _key_string = get_hex (&raw, 16); break; case 138: /* SMPTE */ @@ -105,7 +106,8 @@ KDMCipher::KDMCipher (unsigned char const * raw, int len) _key_id = get_uuid (&raw, 16); _not_valid_before = get (&raw, 25); _not_valid_after = get (&raw, 25); - _key_data = get_hex (&raw, 16); + memcpy (_key_raw, raw, 16); + _key_string = get_hex (&raw, 16); break; default: assert (false); |
