Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Decrypting
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 12th March 2024, 23:43   #41  |  Link
SamuriHL
Registered User
 
SamuriHL's Avatar
 
Join Date: May 2004
Posts: 5,351
Don't know. Always works for me, even when I use multiple drives.
__________________
HTPC: Windows 11, AMD 5900X, RTX 3080, Pioneer Elite VSX-LX303, LG G2 77" OLED
SamuriHL is offline   Reply With Quote
Old 13th March 2024, 00:12   #42  |  Link
coricopat
Registered User
 
Join Date: Jan 2024
Posts: 24
What I'd still find interesting is how DVDFab gets the RDK then (I mean for UHDs). Wouldn't that mean that they either need to have a UHD HC (which would then need to be in memory at some point - unless they calculate the RDK remotely on their servers and the HC never leaves that)?

On https://www.dvdfab.cn/4k-uhd-drives.htm they write:
"Normally, Friendly 4K UHD Drives refer to regular Blu-ray drives that can read BDXL media but do not implement AACS2 protection. Though unable to be used with official software, such 4K UHD drives allow any software with a regular AACS1 host certificate to read UHD disc data."

Is that what LibreDrive does? I always thought LibreDrive would modify the firmware, so that the drive simply doesn't do Bus Encryption at all.

But the above rather reads as if the drive would actually do BE, and they just use an AACS1 cert.
coricopat is offline   Reply With Quote
Old 13th March 2024, 00:20   #43  |  Link
MrPenguin
Mr Penguin
 
Join Date: Oct 2023
Posts: 23
Quote:
Originally Posted by SamuriHL View Post
Don't know. Always works for me, even when I use multiple drives.
I'd suggest you re-examine your results. I've tried with three UHD disks across two different LibreDrive-enabled drives, and the two drives only agree on each VID's first byte using this method.

Last edited by MrPenguin; 13th March 2024 at 00:39.
MrPenguin is offline   Reply With Quote
Old 13th March 2024, 01:02   #44  |  Link
SamuriHL
Registered User
 
SamuriHL's Avatar
 
Join Date: May 2004
Posts: 5,351
Quote:
Originally Posted by MrPenguin View Post
I'd suggest you re-examine your results. I've tried with three UHD disks across two different LibreDrive-enabled drives, and the two drives only agree on each VID's first byte using this method.
LOL I've examined literally dozens of results. I just did again after your post a while ago. Guess what. They match. Don't know what to tell you.
__________________
HTPC: Windows 11, AMD 5900X, RTX 3080, Pioneer Elite VSX-LX303, LG G2 77" OLED
SamuriHL is offline   Reply With Quote
Old 13th March 2024, 01:12   #45  |  Link
MrPenguin
Mr Penguin
 
Join Date: Oct 2023
Posts: 23
Quote:
Originally Posted by SamuriHL View Post
LOL I've examined literally dozens of results. I just did again after your post a while ago. Guess what. They match. Don't know what to tell you.
My drives are a Verbatim 43888 and a Pioneer XD08EMB-S. And obviously the only way to prove that a value is really the disk's VID would be to generate the VUK from it.
MrPenguin is offline   Reply With Quote
Old 13th March 2024, 01:24   #46  |  Link
SamuriHL
Registered User
 
SamuriHL's Avatar
 
Join Date: May 2004
Posts: 5,351
Quote:
Originally Posted by MrPenguin View Post
My drives are a Verbatim 43888 and a Pioneer XD08EMB-S. And obviously the only way to prove that a value is really the disk's VID would be to generate the VUK from it.
I've compared the ones mine generated against keydb entries and they match. I'm using 3 Pioneer drives and a bu40n. They all match.

(For some that have the VID in the keydb entry. Obviously not all do. I've no idea where those come from but I've been fortunate to have a few discs that match)
__________________
HTPC: Windows 11, AMD 5900X, RTX 3080, Pioneer Elite VSX-LX303, LG G2 77" OLED
SamuriHL is offline   Reply With Quote
Old 13th March 2024, 14:25   #47  |  Link
MrPenguin
Mr Penguin
 
Join Date: Oct 2023
Posts: 23
Quote:
Originally Posted by SamuriHL View Post
I've compared the ones mine generated against keydb entries and they match. I'm using 3 Pioneer drives and a bu40n. They all match.
KEYDB.cfg doesn't contain the VIDs for any UHD disk I own, so I can only generate discatt.dat files and then extract VIDs from them. And the VIDs generated by one LibreDrive-enabled drive simply do not match the VIDs generated by my other LibreDrive-enabled drive for the exact same disks.

I am using the Linux version of MakeMKV 1.17.6 for all of this.
MrPenguin is offline   Reply With Quote
Old 13th March 2024, 15:46   #48  |  Link
SamuriHL
Registered User
 
SamuriHL's Avatar
 
Join Date: May 2004
Posts: 5,351
Yup, I heard you the first couple times you said that. I can only repeat what I've said....that I have 3 pioneer drives and a bu40n and that they all match each other and match the keydb entries for the few discs I have that have the VID. So I'm quite confident that it works just fine. I don't, however, know why it doesn't for you. I wrote my own C# code to extract the VID in one of my utilities and it works every time. I've done it from both the windows and mac version of MakeMKV. Doesn't seem to matter. It's always the same for me.
__________________
HTPC: Windows 11, AMD 5900X, RTX 3080, Pioneer Elite VSX-LX303, LG G2 77" OLED
SamuriHL is offline   Reply With Quote
Old 13th March 2024, 16:37   #49  |  Link
MrPenguin
Mr Penguin
 
Join Date: Oct 2023
Posts: 23
Quote:
Originally Posted by SamuriHL View Post
I've done it from both the windows and mac version of MakeMKV. Doesn't seem to matter. It's always the same for me.
OK, thanks. So unless you are also performing Deep Magic over your drives before "casting" MakeMKV, my only remaining option is to assume the existence of a bug in the Linux version .
MrPenguin is offline   Reply With Quote
Old 13th March 2024, 17:36   #50  |  Link
SamuriHL
Registered User
 
SamuriHL's Avatar
 
Join Date: May 2004
Posts: 5,351
Definitely no deep magic.
__________________
HTPC: Windows 11, AMD 5900X, RTX 3080, Pioneer Elite VSX-LX303, LG G2 77" OLED
SamuriHL is offline   Reply With Quote
Old 14th March 2024, 16:16   #51  |  Link
coricopat
Registered User
 
Join Date: Jan 2024
Posts: 24
Hey folks.

Eventually I've now been able to the RDK for an UHD using a BH16NS55 with downgraded firmware. And with that, I can play back the UHD via purely open source (well of course I need DVDFab/etc. but that I can run on another computer) stuff on Linux.

Now may main goal was to create a UDF image of the UHD e.g. with dd (under Linux), but I suspect I had some misunderstanding how Bus Encryption works.

My assumption was, that once I have the RDK and e.g. play back the UHD with MPV+libaacs, that would kinda "put the drive in authenticated mode", and I could just read the real data from it (which would still have normal AACS encryption, but no longer any Bus Encryption).

Yeah... guess the *bus* in bus encryption should have received more of my attention. It seems that it doesn't work like in my earlier assumption, but it's really the software (i.e. libaacs), which does then both decryption steps first bus encryption decryption, then normal AACS decryption via the VUK.
Does that sound right?

If so, that would mean that I'd probably need a libaacs-aware dd (which of course doesn't exist, and I'm too lazy to write ^^).
Any ideas how I could use the RDK to get an image? Or at least copy of the files (which then should still have normal AACS enc)?
(And yes I know, it works easily with MakeMKV and LibreDrive mode... I'm just trying to get an alternative).

Thanks,
Coricopat
coricopat is offline   Reply With Quote
Old 14th March 2024, 19:00   #52  |  Link
mick0
Registered User
 
Join Date: Dec 2017
Posts: 36
Quote:
Originally Posted by coricopat View Post
Eventually I've now been able to the RDK for an UHD using a BH16NS55 with downgraded firmware. And with that, I can play back the UHD via purely open source (well of course I need DVDFab/etc. but that I can run on another computer) stuff on Linux.
Since your drive is not an UHD official drive, you could just copy-paste the host certificate from this post into your keydb and libaacs should then be able to retrieve the RDK directly from your drive on it's own (without DVDFab).


Quote:
Originally Posted by coricopat View Post
Now may main goal was to create a UDF image of the UHD e.g. with dd (under Linux), but I suspect I had some misunderstanding how Bus Encryption works.

My assumption was, that once I have the RDK and e.g. play back the UHD with MPV+libaacs, that would kinda "put the drive in authenticated mode", and I could just read the real data from it (which would still have normal AACS encryption, but no longer any Bus Encryption).
Unfortunately it doesn't work like that. Bus encryption is something that the drive does on-the-fly every time a protected sector is being read, it is not something that can be turned off by authenticating.


Quote:
Originally Posted by coricopat View Post
Any ideas how I could use the RDK to get an image? Or at least copy of the files (which then should still have normal AACS enc)?
(And yes I know, it works easily with MakeMKV and LibreDrive mode... I'm just trying to get an alternative).
If you want to make a *protected* backup of BEE disc on linux, the easiest way to do it is to "bless" the disc first with makemkvcon and then just dd(rescue) the disc into 1:1 ISO image (or copy of the files). The resulting *protected* backup should be playable as is on every libbluray enabled player (vlc, mpv etc) as long as libaacs+libbdplus are installed and configured properly, i.e. VID+MK, VUK or unit key(s) for this particular disc is present in keydb and cached BD+ conversion table is available (for BD+ discs).

Technically bus encryption could be stripped out from protected ISO afterwards *if* cached RDK for the particular disc+drive (which the ISO was originally made with) is available, but AFAIK no tool that can do that. Besides makemkv, there are also some alternative tools available that work on linux and can make fully decrypted file/folder backups, e.g. dumphd. There are also tools that use libbluray/libaacs/libbdplus such as this one.
mick0 is offline   Reply With Quote
Old 16th March 2024, 04:14   #53  |  Link
coricopat
Registered User
 
Join Date: Jan 2024
Posts: 24
Quote:
Originally Posted by mick0 View Post
Since your drive is not an UHD official drive, you could just copy-paste the host certificate from this post into your keydb and libaacs should then be able to retrieve the RDK directly from your drive on it's own (without DVDFab).
Holy sh** ... it does indeed work, tried with the current version of the well known KEYDB.cfg and:
- PIONEER BD-RW BDR-S12U 1.03
- HL-DT-ST BD-RE BH16NS55 1.02
on an UHD BD of the move A: The Way of <melted ice>.
Works with a plain libaacs, no MakeMKV LibreDrive mode or so enabled.

But it does not work on the:
- PIONEER BD-RW BDR-XS07U 1.02
despite that being LibreDrive friendly.

Any idea why?

Do you or someone else happen to know whether whether that (i.e. defeating Bus Encryption for UHDs and non-UHDs with just plain libaacs and no LibreDrive mode) is guaranteed to work forever with the above drives and hostcerts?
Or is that something, where the hostcerts could be revoked?


Quote:
Originally Posted by mick0 View Post
Unfortunately it doesn't work like that. Bus encryption is something that the drive does on-the-fly every time a protected sector is being read, it is not something that can be turned off by authenticating.
Yeah... as said... I should have listened more to the name, which already says that it's on the >bus< and thus between drive and software. ^^

Quote:
Originally Posted by mick0 View Post
If you want to make a *protected* backup of BEE disc on linux, the easiest way to do it is to "bless" the disc first with makemkvcon and then just dd(rescue) the disc into 1:1 ISO image (or copy of the files). The resulting *protected* backup should be playable as is on every libbluray enabled player (vlc, mpv etc) as long as libaacs+libbdplus are installed and configured properly, i.e. VID+MK, VUK or unit key(s) for this particular disc is present in keydb and cached BD+ conversion table is available (for BD+ discs).
How much do you know about BD+ (I mean how it works)? I'd have in principle some questions on it, though I think it's a bit off-topic for this particular thread.

Quote:
Originally Posted by mick0 View Post
Technically bus encryption could be stripped out from protected ISO afterwards *if* cached RDK for the particular disc+drive (which the ISO was originally made with) is available, but AFAIK no tool that can do that. Besides makemkv, there are also some alternative tools available that work on linux and can make fully decrypted file/folder backups, e.g. dumphd.
Was that available with sources?

Quote:
Originally Posted by mick0 View Post
There are also tools that use libbluray/libaacs/libbdplus such as this one.
Which already sits and waits in Debian's NEW queue. :-)

Unfortunately it seems to only be able to create fully decrypted (i.e. no BEE and not normal AACS encryption) file copies of the medium (it simply uses libbluray's bd_open_file_dec(), IIRC.
Have only briefly looked at the code, but there's bd_open_stream(), which I guess might read blocks from the device (and thus the image), but AFAICS, that doesn't decrypt.


May main goal is as laid out here: https://forum.doom9.org/showthread.p...75#post1997175

(1) I.e. in principle I'd like to have an image which is as close as possible to that what's actually on the medium, and AFAIU this is the UDF image with the BDMV dir/file structure with normal AACS encryption but without Bus Encryption.
(2) The same as one, but with all encryption gone (normal AACS, BD+, BD-J). I think I'd be able to get that from (1) with bluraybackup, though not sure also when BD+ BD-J is used.
(3) The whole vid as MKV (i.e. no BDMV dir/file structure). Not really sure how well I can get that from (1) respectively (2)... I mean obviously I can mux the streams... but e.g. MakeMKV does things like A/V sync fixes and so.

Oh and I forgot to mention: belonging to the more security conscious (read: paranoid) folks, I don't want any non open code to run on my system, which I why I have some concerns about BD+/BD-J via libbdplus/libbluray-bdj (MakeMKV/DVDFab and similar, I simply run on some separate computer, where I don't mind security that much, not that I'd have any single indication that one couldn't trust those).

Cheers,
Coricopat/Jemima
coricopat is offline   Reply With Quote
Old 18th March 2024, 23:57   #54  |  Link
coricopat
Registered User
 
Join Date: Jan 2024
Posts: 24
Hey again.

I have to correct my above statement a bit:

For my PIONEER BD-RW BDR-S12U 1.03, I can indeed play back even UHDs (without having added the RDK myself)... and somehow libaccs (let's call it magic) find out the RDK and can decrypt bus encryption (of course only if the VUK or so for the normal AACS encryption is known).
Well at least I assume it does this, cause I don't think it can to LibreDrive Mode, and I wasn't using MakeMKV or so on that computer at all.


But, for the HL-DT-ST BD-RE BH16NS55 1.02:
Either it didn't work in the first place (quite likely, cause I probably still had the RDK I've had manually extracted from DVDFab for that drive+disc in the libaacs cache dir)... or it stopped working since then, cause now (with the libaacs cache cleared) I get:

Quote:
mmc.c:472: Host key / Certificate (id 0xffff80000217) has been revoked by your drive ?
aacs.c:1368: Unable to initialize bus encryption required by drive and disc
[bd] AACS error: certificate has been revoked
Any ideas why that is so?

Does that mean that the HC in my KEYDB.cfg (from the well known source) has been revoked on that device (but not the other)?

And does that further mean, that if I just insert a recent enough BD in the other drive, it will also get the HC revoked?

Is there any way to get that generally working (other than LibreDrive mode which disables bus encryption), or will one always be dependent on someone getting a recent enough AACS1 (which with the above drives apparently also works for UHDs) HC and sharing it?


Thanks,
Coricopat.
coricopat is offline   Reply With Quote
Old 24th March 2024, 13:17   #55  |  Link
MrPenguin
Mr Penguin
 
Join Date: Oct 2023
Posts: 23
Playing UHD disks directly on Linux

Quote:
Originally Posted by mick0 View Post
Since your drive is not an UHD official drive, you could just copy-paste the host certificate from this post into your keydb and libaacs should then be able to retrieve the RDK directly from your drive on it's own (without DVDFab).
Just as a data-point, I have an official UHD drive (Pioneer XD08) for which I obviously cannot obtain a RDK, but which is nonetheless LibreDrive-compatible. And I have discovered that while it cannot play a UHD disk directly using VLC, even after I have activated LibreDrive, it can still play UHD disks using mpv - albeit without support for their menus.

I am not entirely sure what is going on here, e.g. is mpv dumb enough not even to consider reversing non-existent bus encryption, or is it smart enough to realise that there is no longer any bus encryption to remove? I know my unit key is correct because mpv successfully decrypts the video, and so can only assume that VLC playback fails because it is accidentally scrambling the data with whatever random nonsense that it has decided to use as an RDK.

Last edited by MrPenguin; 24th March 2024 at 23:57.
MrPenguin is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 23:03.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.