summaryrefslogtreecommitdiffstats
path: root/patches/crda-3.13/0002-Pregenerate-keys-ssl.c.patch
blob: 4d1a958548fe211e885e955eaede36792c5c7172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
From: Jan Luebbe <jlu@pengutronix.de>
Date: Thu, 26 Jan 2012 15:33:36 +0100
Subject: [PATCH] Pregenerate keys-ssl.c

Note: The content is different for 32 and 64 bit systems so we need two
versions.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
---
 keys-ssl.c.32 | 42 ++++++++++++++++++++++++++++++++++++++++++
 keys-ssl.c.64 | 42 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 84 insertions(+)
 create mode 100644 keys-ssl.c.32
 create mode 100644 keys-ssl.c.64

diff --git a/keys-ssl.c.32 b/keys-ssl.c.32
new file mode 100644
index 000000000000..593b06da7520
--- /dev/null
+++ b/keys-ssl.c.32
@@ -0,0 +1,42 @@
+#include <stdint.h>
+#include <openssl/bn.h>
+static BN_ULONG e_0[1] = {
+	0x00010001, 
+};
+
+#include <stdint.h>
+#include <openssl/bn.h>
+static BN_ULONG n_0[64] = {
+	0x16a0d8e1, 0x63a27054, 0xc8ba757b, 0xdc9fca11, 
+	0xcbcb35e3, 0xb9c06510, 0xba941433, 0x39e3dfeb, 
+	0x6c1fce9d, 0x7bbae38a, 0xfefabba7, 0x205a5a73, 
+	0x97839a2e, 0x53ea3e5a, 0x61dc0170, 0xfec8f5b6, 
+	0xd29a1004, 0xefe311d8, 0xa5156bb8, 0x8c6a92d0, 
+	0x7a6eb5cc, 0x9067cc76, 0x0bd5b1ff, 0xd103580b, 
+	0x8f3a2daf, 0x4a563e84, 0x46b0943e, 0xacd7cadb, 
+	0xebd1e198, 0x5fabb688, 0x5916f173, 0x7e70c1d3, 
+	0x5d6ca84e, 0xaaa8acc8, 0xe20fd4dc, 0x1685c157, 
+	0xad933f64, 0xf9e9c9c7, 0xc5f59824, 0xbe6272ed, 
+	0x53447bd1, 0x585d9a7d, 0x5b3bc30d, 0x011a5b3f, 
+	0xffbbf0e9, 0xf312b966, 0x482c131b, 0x2203fb37, 
+	0x0dc38eab, 0x3e7c157d, 0xb39fcc8d, 0xb04de1d6, 
+	0x07fc0d84, 0x4d9f0137, 0xe13b5ac5, 0xb075a241, 
+	0x8e56e153, 0x0a9a9d48, 0xf97054eb, 0xf2cff393, 
+	0x376024f2, 0x2a2ead68, 0x88d35dce, 0xd6579971, 
+};
+
+
+struct pubkey {
+	struct bignum_st e, n;
+};
+
+#define KEY(data) {				\
+	.d = data,				\
+	.top = sizeof(data)/sizeof(data[0]),	\
+}
+
+#define KEYS(e,n)	{ KEY(e), KEY(n), }
+
+__attribute__((unused)) static struct pubkey keys[] = {
+	KEYS(e_0, n_0),
+};
diff --git a/keys-ssl.c.64 b/keys-ssl.c.64
new file mode 100644
index 000000000000..ca0fc2978910
--- /dev/null
+++ b/keys-ssl.c.64
@@ -0,0 +1,42 @@
+#include <stdint.h>
+#include <openssl/bn.h>
+static BN_ULONG e_0[1] = {
+	0x0000000000010001, 
+};
+
+#include <stdint.h>
+#include <openssl/bn.h>
+static BN_ULONG n_0[32] = {
+	0x63a2705416a0d8e1, 0xdc9fca11c8ba757b, 
+	0xb9c06510cbcb35e3, 0x39e3dfebba941433, 
+	0x7bbae38a6c1fce9d, 0x205a5a73fefabba7, 
+	0x53ea3e5a97839a2e, 0xfec8f5b661dc0170, 
+	0xefe311d8d29a1004, 0x8c6a92d0a5156bb8, 
+	0x9067cc767a6eb5cc, 0xd103580b0bd5b1ff, 
+	0x4a563e848f3a2daf, 0xacd7cadb46b0943e, 
+	0x5fabb688ebd1e198, 0x7e70c1d35916f173, 
+	0xaaa8acc85d6ca84e, 0x1685c157e20fd4dc, 
+	0xf9e9c9c7ad933f64, 0xbe6272edc5f59824, 
+	0x585d9a7d53447bd1, 0x011a5b3f5b3bc30d, 
+	0xf312b966ffbbf0e9, 0x2203fb37482c131b, 
+	0x3e7c157d0dc38eab, 0xb04de1d6b39fcc8d, 
+	0x4d9f013707fc0d84, 0xb075a241e13b5ac5, 
+	0x0a9a9d488e56e153, 0xf2cff393f97054eb, 
+	0x2a2ead68376024f2, 0xd657997188d35dce, 
+};
+
+
+struct pubkey {
+	struct bignum_st e, n;
+};
+
+#define KEY(data) {				\
+	.d = data,				\
+	.top = sizeof(data)/sizeof(data[0]),	\
+}
+
+#define KEYS(e,n)	{ KEY(e), KEY(n), }
+
+__attribute__((unused)) static struct pubkey keys[] = {
+	KEYS(e_0, n_0),
+};