CIA: Difference between revisions
No edit summary |
|||
Line 111: | Line 111: | ||
* (and of course the unencrypted title key you want to encrypt) (as byte array) | * (and of course the unencrypted title key you want to encrypt) (as byte array) | ||
The title | The title key encryption process starts by converting the ulong (Title ID) into a byte array using by retrieving the bytes of the Title ID using BitConverter.GetBytes(). | ||
If the converted bytes (title ID) are in Little Endian, reverse those bytes. (in C# it would be Array.Reverse(byte_array_from_bitconverter)) | If the converted bytes (title ID) are in Little Endian, reverse those bytes. (in C# it would be Array.Reverse(byte_array_from_bitconverter)) | ||
This process makes the Title Key encryption IV. | This process makes the Title Key encryption IV. |