Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. AACS 2.0 uses different public keys than AACS 1.0. While public by
  2. definition, they are not known. Skip content certificate signature
  3. validation so that AACS 2.0 media can be played under certain
  4. conditions:
  5. - "UHD friendly" drive is used, those are AACS 1.0 drives that can
  6. read UHD media
  7. - non-revoked AACS 1.0 host certificate is available
  8. - disc VUK is available
  9.  
  10. Official UHD drives, that implement AACS 2.0 will not work. Special
  11. drive is needed because AACS 2.0 mandates bus encryption. With bus
  12. encryption, even with valid disc VUK data is still encrypted by the
  13. drive on the fly. The so called UHD friendly drives bypass that.
  14. ---
  15. src/libaacs/content_cert.c | 6 +++---
  16. 1 file changed, 3 insertions(+), 3 deletions(-)
  17.  
  18. diff --git a/src/libaacs/content_cert.c b/src/libaacs/content_cert.c
  19. index 5618ac0..ec0d46d 100644
  20. --- a/src/libaacs/content_cert.c
  21. +++ b/src/libaacs/content_cert.c
  22. @@ -40,7 +40,7 @@ CONTENT_CERT *cc_parse(const void *data, size_t len)
  23. BD_DEBUG(DBG_AACS | DBG_CRIT, "Invalid content certificate (length %zd < 87)\n", len);
  24. return NULL;
  25. }
  26. - if (p[0] != 0) {
  27. + if (p[0] != 0 && p[0] != 0x10) {
  28. BD_DEBUG(DBG_AACS | DBG_CRIT, "Invalid content certificate type 0x%02x\n", p[0]);
  29. return NULL;
  30. }
  31. @@ -58,9 +58,9 @@ CONTENT_CERT *cc_parse(const void *data, size_t len)
  32. return NULL;
  33. }
  34.  
  35. - /* check signature */
  36. + /* check signature only for AACS 1.0 content certificates */
  37.  
  38. - if (!crypto_aacs_verify_aacscc(p + cert_data_len, p, cert_data_len)) {
  39. + if (p[0] == 0 && !crypto_aacs_verify_aacscc(p + cert_data_len, p, cert_data_len)) {
  40. BD_DEBUG(DBG_AACS | DBG_CRIT, "Invalid content certificate signature\n");
  41. return NULL;
  42. }
  43. --
  44. 2.15.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement