User Tools

Site Tools


himddownload-keystuff

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
himddownload-keystuff [2010/07/06 16:30] megadiscmanhimddownload-keystuff [2010/07/06 22:02] megadiscman
Line 89: Line 89:
 </code> </code>
  
-===== Track MAC ===== +===== Track encryption ===== 
-added later.+The track key-encryption-key (KEK) is stored encrypted by the EKB root key 
 + 
 +<code> 
 +$ 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="0001010000000000 $contentid 0000000000000000 01004400" 
 +$ 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 
 +</code> 
himddownload-keystuff.txt · Last modified: 2011/09/04 14:07 by megadiscman

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki