summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2014-10-31 16:14:58 +1000
committerDave Airlie <airlied@redhat.com>2014-10-31 16:14:58 +1000
commitc3dfe4036e5273b9afa511e39ed24962e2db1879 (patch)
tree38e46595976939b40ace303503c45db73ee482f5
parentc16a99120fef3684f3dfd29d0c0973dee450f455 (diff)
add ddc cert from hdmi v2 docs
-rw-r--r--dl3.c35
1 files changed, 32 insertions, 3 deletions
diff --git a/dl3.c b/dl3.c
index aa11336..08d601d 100644
--- a/dl3.c
+++ b/dl3.c
@@ -13,7 +13,36 @@
static int VID = 0x17e9;
static int PID = 0x4301;
-
+static unsigned char ddccert_m[] =
+{
+0xb0, 0xe9, 0xaa, 0x45, 0xf1, 0x29, 0xba, 0x0a, 0x1c, 0xbe, 0x17, 0x57, 0x28, 0xeb, 0x2b, 0x4e,
+0x8f, 0xd0, 0xc0, 0x6a, 0xad, 0x79, 0x98, 0x0f, 0x8d, 0x43, 0x8d, 0x47, 0x04, 0xb8, 0x2b, 0xf4,
+0x15, 0x21, 0x56, 0x19, 0x01, 0x40, 0x01, 0x3b, 0xd0, 0x91, 0x90, 0x62, 0x9e, 0x89, 0xc2, 0x27,
+0x8e, 0xcf, 0xb6, 0xdb, 0xce, 0x3f, 0x72, 0x10, 0x50, 0x93, 0x8c, 0x23, 0x29, 0x83, 0x7b, 0x80,
+0x64, 0xa7, 0x59, 0xe8, 0x61, 0x67, 0x4c, 0xbc, 0xd8, 0x58, 0xb8, 0xf1, 0xd4, 0xf8, 0x2c, 0x37,
+0x98, 0x16, 0x26, 0x0e, 0x4e, 0xf9, 0x4e, 0xee, 0x24, 0xde, 0xcc, 0xd1, 0x4b, 0x4b, 0xc5, 0x06,
+0x7a, 0xfb, 0x49, 0x65, 0xe6, 0xc0, 0x00, 0x83, 0x48, 0x1e, 0x8e, 0x42, 0x2a, 0x53, 0xa0, 0xf5,
+0x37, 0x29, 0x2b, 0x5a, 0xf9, 0x73, 0x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0xa2, 0x78, 0x72, 0xf0, 0xa2,
+0x27, 0xc3, 0xe0, 0x25, 0xb4, 0xa1, 0x04, 0x6a, 0x59, 0x80, 0x27, 0xb5, 0xda, 0xb4, 0xb4, 0x53,
+0x97, 0x3b, 0x28, 0x99, 0xac, 0xf4, 0x96, 0x27, 0x0f, 0x7f, 0x30, 0x0c, 0x4a, 0xaf, 0xcb, 0x9e,
+0xd8, 0x71, 0x28, 0x24, 0x3e, 0xbc, 0x35, 0x15, 0xbe, 0x13, 0xeb, 0xaf, 0x43, 0x01, 0xbd, 0x61,
+0x24, 0x54, 0x34, 0x9f, 0x73, 0x3e, 0xb5, 0x10, 0x9f, 0xc9, 0xfc, 0x80, 0xe8, 0x4d, 0xe3, 0x32,
+0x96, 0x8f, 0x88, 0x10, 0x23, 0x25, 0xf3, 0xd3, 0x3e, 0x6e, 0x6d, 0xbb, 0xdc, 0x29, 0x66, 0xeb,
+0x96, 0x8f, 0x88, 0x10, 0x23, 0x25, 0xf3, 0xd3, 0x3e, 0x6e, 0x6d, 0xbb, 0xdc, 0x29, 0x66, 0xeb,
+};
+
+static unsigned char ddccert_e[] = { 0x3, 0, 0 };
/* this is a copy of the 546 byte packet we get back from the device
that looks like a HDCP cert. - I'm currently
assuming 522 bytes from the end is the start of the HDCPv2 cert. */
@@ -115,9 +144,9 @@ static void decode_cert(const unsigned char *buf, int len)
printf("rect pub key:\n");
- m = BN_bin2bn(start + 5, 128, NULL);
+ m = BN_bin2bn(ddccert_m, 384, NULL);
- e = BN_bin2bn(start + 133, 3, NULL);
+ e = BN_bin2bn(ddccert_e, 1, NULL);
rsa->n = m;
rsa->e = e;