himddownload-keystuff
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
himddownload-keystuff [2010/07/06 16:29] – megadiscman | himddownload-keystuff [2011/09/04 14:07] (current) – [MAC list authentication] - fixed offset of MCLIST body megadiscman | ||
---|---|---|---|
Line 65: | Line 65: | ||
$ echo $head | xxd -r -p | retailmac $headkey | xxd -p | $ echo $head | xxd -r -p | retailmac $headkey | xxd -p | ||
1d3dd1a65b26d1f2 | 1d3dd1a65b26d1f2 | ||
- | $ # the second half of the ICV is the retail MAC over the MCLIST body (bytes | + | $ # the second half of the ICV is the retail MAC over the MCLIST body (bytes |
$ # using bodykey. | $ # using bodykey. | ||
</ | </ | ||
Line 84: | Line 84: | ||
$ bodykey=`echo $maclist60 | xxd -r -p | openssl enc -d -des-ede -iv 0 -K $rootkey1_12 -nopad | xxd -p` | $ bodykey=`echo $maclist60 | xxd -r -p | openssl enc -d -des-ede -iv 0 -K $rootkey1_12 -nopad | xxd -p` | ||
$ head=$generation$padding1$ekbid$padding2$discid$padding3 | $ head=$generation$padding1$ekbid$padding2$discid$padding3 | ||
- | $ echo $head | xxd -r -p | xxd | ||
- | 0000000: 0000 0011 0000 0000 0000 0000 0000 0000 ................ | ||
- | 0000010: 0000 0000 0000 0000 0001 0012 0000 0000 ................ | ||
- | 0000020: 0200 0000 0000 0612 2102 0000 0072 2751 ........!....r' | ||
- | 0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | ||
$ # this prints the first half of the ICV | $ # this prints the first half of the ICV | ||
$ echo $head | xxd -r -p | retailmac $headkey | xxd -p | $ echo $head | xxd -r -p | retailmac $headkey | xxd -p | ||
Line 94: | Line 89: | ||
</ | </ | ||
- | ===== Track MAC ===== | + | ===== Track encryption |
- | added later. | + | The track key-encryption-key (KEK) is stored encrypted by the EKB root key |
+ | |||
+ | < | ||
+ | $ rootkey1_12=f51ecb2a808f15fd542ef5123bcdbca4 | ||
+ | $ # calculate track key-encryption-key | ||
+ | $ enctrackkey=d7c9cadc12b9ad99 | ||
+ | $ trackkey=`echo $enctrackkey | xxd -r -p | openssl enc -d -des-ede -iv 0 -K $rootkey1_12 -nopad | xxd -p` | ||
+ | $ echo $trackkey | ||
+ | 3e8ab6c3c32c35eb | ||
+ | $ # calculate MAC | ||
+ | $ contentid=010f50000004000000b792f6f9318c20fff1aad8 | ||
+ | $ trkentry=" | ||
+ | $ mackey=`echo 0000000000000000 | xxd -r -p | openssl enc -des -iv 0 -K $trackkey -nopad | xxd -p` | ||
+ | $ echo $trkentry | xxd -r -p | openssl enc -des-cbc -iv 0 -K $mackey -nopad | tail -c 8 | xxd -p | ||
+ | 8f35336c5818d22b | ||
+ | </ |
himddownload-keystuff.1278433788.txt.gz · Last modified: 2010/07/06 16:29 by megadiscman