Compare commits
1200 Commits
v5.2.0-sta
...
v5.4.0-sta
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
57aac1c50b | ||
|
|
a48129eb99 | ||
|
|
032d59b077 | ||
|
|
86662bca2f | ||
|
|
7379e377ab | ||
|
|
983b9fc5fb | ||
|
|
4892435004 | ||
|
|
66aed8193a | ||
|
|
56325143f1 | ||
|
|
720030b5a9 | ||
|
|
03a32250da | ||
|
|
3d124c093e | ||
|
|
905f71d80d | ||
|
|
f7595cc77d | ||
|
|
2d6b6d62b2 | ||
|
|
a2b75e313a | ||
|
|
48d3cf593e | ||
|
|
251642a44a | ||
|
|
58cb91602d | ||
|
|
c9e9a421e9 | ||
|
|
91438c1087 | ||
|
|
49d292ec4f | ||
|
|
b952c2f777 | ||
|
|
2bfac42d65 | ||
|
|
70b9833e98 | ||
|
|
4e1e1e922a | ||
|
|
5e453ad932 | ||
|
|
e295328436 | ||
|
|
a771baf551 | ||
|
|
738d79c5d5 | ||
|
|
2111d6b179 | ||
|
|
74baa0dafa | ||
|
|
644050a736 | ||
|
|
cb6fa921a4 | ||
|
|
8f3449ffea | ||
|
|
90c2f4ad00 | ||
|
|
9ba77300f9 | ||
|
|
992c7b3b6f | ||
|
|
82b1dc0cd0 | ||
|
|
eff4fe398b | ||
|
|
7c49449a79 | ||
|
|
6b6abfac54 | ||
|
|
19106a9510 | ||
|
|
d9bf39ffaa | ||
|
|
44a49aeefa | ||
|
|
c8f5bd3d61 | ||
|
|
b2d1bf96ed | ||
|
|
a7fa7875e4 | ||
|
|
e92034cf6f | ||
|
|
711b2bb17a | ||
|
|
a171bebba4 | ||
|
|
3abffc3a3c | ||
|
|
683adb5917 | ||
|
|
fd4836772b | ||
|
|
df7e81d187 | ||
|
|
8fe3f51ecb | ||
|
|
5d74c49ecb | ||
|
|
ec8149cd69 | ||
|
|
9b085a44be | ||
|
|
63b4c475d4 | ||
|
|
39e53c2b7c | ||
|
|
ef73409fd4 | ||
|
|
8b73feb8ef | ||
|
|
ff6edbff94 | ||
|
|
9a256ca002 | ||
|
|
4376ade9c8 | ||
|
|
08488b0fae | ||
|
|
f5a5d4ada5 | ||
|
|
eb9a9ceef8 | ||
|
|
ded3f4e9b6 | ||
|
|
1c009e8f91 | ||
|
|
394f36a0d7 | ||
|
|
4caffee590 | ||
|
|
20e5c98b2c | ||
|
|
fd7bf8d04d | ||
|
|
144f2612e4 | ||
|
|
8e84560f71 | ||
|
|
afaf41823c | ||
|
|
5179741ddb | ||
|
|
ee3636f2e7 | ||
|
|
448cde5a4b | ||
|
|
4a962b7fb2 | ||
|
|
1b64b82a6f | ||
|
|
07b8f45d35 | ||
|
|
f8c67345d6 | ||
|
|
9dc2c27e3d | ||
|
|
10c8a1668e | ||
|
|
a8adde66c8 | ||
|
|
00391a5ace | ||
|
|
7ea13bf5bf | ||
|
|
dd7073740b | ||
|
|
e605cfeccb | ||
|
|
afdd5648aa | ||
|
|
d72edd03b8 | ||
|
|
c6aa4fc526 | ||
|
|
8fb48464e3 | ||
|
|
80f3db6e1d | ||
|
|
1077829f9d | ||
|
|
7b9c214b3c | ||
|
|
b16c2a2aef | ||
|
|
5819332f89 | ||
|
|
6c7db7318e | ||
|
|
b9be5c2c24 | ||
|
|
bb68766bda | ||
|
|
90749b7f88 | ||
|
|
96aedc2f47 | ||
|
|
7a7d8d170d | ||
|
|
bd75e1d6a4 | ||
|
|
0459e83a59 | ||
|
|
2c943282f0 | ||
|
|
b9a8f18a97 | ||
|
|
7d58dc5678 | ||
|
|
b2e7f4a8eb | ||
|
|
7555cd0685 | ||
|
|
402a4dafd4 | ||
|
|
fc5f1f5eca | ||
|
|
2bdcbcc8be | ||
|
|
4f6527353b | ||
|
|
1a9388b935 | ||
|
|
28213ad198 | ||
|
|
5bd8288b37 | ||
|
|
b7ec529f61 | ||
|
|
867a1f7afa | ||
|
|
e09bbb1989 | ||
|
|
13beadbfc3 | ||
|
|
2f1e236305 | ||
|
|
ed1fdc410e | ||
|
|
ba19737627 | ||
|
|
e8e35c9a92 | ||
|
|
1ba9ea9759 | ||
|
|
9cc928cb29 | ||
|
|
8b93d4510d | ||
|
|
0159f17692 | ||
|
|
f2acaa8ee9 | ||
|
|
28d149a103 | ||
|
|
e941a729a7 | ||
|
|
2257030792 | ||
|
|
999d3b3ab7 | ||
|
|
5adf7e4eb7 | ||
|
|
90aaeb283e | ||
|
|
ce61653a9a | ||
|
|
17659ed48c | ||
|
|
d76c46a96f | ||
|
|
f51c29d3ca | ||
|
|
e56394a2ab | ||
|
|
092b37f709 | ||
|
|
28df62921a | ||
|
|
e49f07694e | ||
|
|
5ade360d9e | ||
|
|
b87b255d52 | ||
|
|
741393e84f | ||
|
|
14c65e0117 | ||
|
|
cb80ffc1b5 | ||
|
|
d4d7e2e5f2 | ||
|
|
060dfe1a69 | ||
|
|
22336d30e5 | ||
|
|
3c3a90c988 | ||
|
|
31498de7a9 | ||
|
|
9d11e9092f | ||
|
|
94e7eacc5f | ||
|
|
456e463640 | ||
|
|
b84b808b1b | ||
|
|
999fa8394e | ||
|
|
10dfd8d129 | ||
|
|
55414290df | ||
|
|
9211825121 | ||
|
|
790584113f | ||
|
|
49740c5543 | ||
|
|
9a29dfc8cb | ||
|
|
047c662af8 | ||
|
|
940d0140f9 | ||
|
|
1977a13754 | ||
|
|
8dfcc76f50 | ||
|
|
5ef507c78d | ||
|
|
ce977e8c0b | ||
|
|
00b82888bc | ||
|
|
c34c32f621 | ||
|
|
43e11ec756 | ||
|
|
4de90efbe2 | ||
|
|
a5250482ce | ||
|
|
768737d21e | ||
|
|
79ea30a957 | ||
|
|
02dde373d1 | ||
|
|
78d3284c3c | ||
|
|
e2ad62b3d1 | ||
|
|
7fb17e0584 | ||
|
|
1cdc81546d | ||
|
|
ee12c12e98 | ||
|
|
8d804f6378 | ||
|
|
fdc4cdf5ec | ||
|
|
acc9f3701a | ||
|
|
40dda7e80f | ||
|
|
deb0c3e6fa | ||
|
|
4db7732d78 | ||
|
|
7d62fd09e4 | ||
|
|
74d692d6d5 | ||
|
|
9e1ecf3fb5 | ||
|
|
7dbf1a5154 | ||
|
|
bd536d3c9d | ||
|
|
40d9473e6a | ||
|
|
b8cff49044 | ||
|
|
099afe4419 | ||
|
|
beddc777d4 | ||
|
|
f05bcb30e0 | ||
|
|
ff4eabb17f | ||
|
|
1e84d1eb67 | ||
|
|
d41745cd28 | ||
|
|
0b0518bd55 | ||
|
|
73435389ed | ||
|
|
38ac96aefb | ||
|
|
69ca1d37c0 | ||
|
|
7c827d3a82 | ||
|
|
db6c14e7f9 | ||
|
|
fab05f2527 | ||
|
|
59e19cfd6c | ||
|
|
b5cac49be9 | ||
|
|
390908bccc | ||
|
|
92fcea39db | ||
|
|
9c5821569f | ||
|
|
2f6b5a97a4 | ||
|
|
6a0682d422 | ||
|
|
66775d90d4 | ||
|
|
4fc709d2af | ||
|
|
6795e1bf21 | ||
|
|
e34dda9383 | ||
|
|
128ebf54e9 | ||
|
|
fe8169c830 | ||
|
|
2834c22ce0 | ||
|
|
f2abf1892c | ||
|
|
1322c1a0b2 | ||
|
|
911f361285 | ||
|
|
8c0157c035 | ||
|
|
8f7db87f01 | ||
|
|
5e63740c6c | ||
|
|
7560199f18 | ||
|
|
8f0da12824 | ||
|
|
6a0c6049ce | ||
|
|
621f4f14af | ||
|
|
6d2a41b9fd | ||
|
|
8145ee6cef | ||
|
|
1b29f7353a | ||
|
|
8f68e32ef1 | ||
|
|
7e1549c684 | ||
|
|
fb704774a0 | ||
|
|
9bcbd645d6 | ||
|
|
dab0d5a7b0 | ||
|
|
d9d8b7e2d8 | ||
|
|
aa8df1af78 | ||
|
|
3a9176bcc9 | ||
|
|
25cf98a417 | ||
|
|
12a3efeca8 | ||
|
|
4e112419f5 | ||
|
|
c1dc90d9b0 | ||
|
|
ca05ad2dc0 | ||
|
|
e2abdf23a7 | ||
|
|
dfc9873c0f | ||
|
|
d1924928c0 | ||
|
|
d079662765 | ||
|
|
173077b142 | ||
|
|
30fb664163 | ||
|
|
2696c3cdd3 | ||
|
|
de04973051 | ||
|
|
60834ba516 | ||
|
|
9d22e11776 | ||
|
|
7586851734 | ||
|
|
d8ac35579c | ||
|
|
d51ba35ff9 | ||
|
|
6630a83182 | ||
|
|
e073500e8e | ||
|
|
af4fff80db | ||
|
|
f1ce0cc95d | ||
|
|
9656963f61 | ||
|
|
ed5470c991 | ||
|
|
0cac6cef39 | ||
|
|
ed6c9639d6 | ||
|
|
f414e65d4b | ||
|
|
2f4864cab2 | ||
|
|
7a25b9cd85 | ||
|
|
22eee3206d | ||
|
|
a22da10956 | ||
|
|
5a8c130040 | ||
|
|
a0dd92234b | ||
|
|
fb10c90935 | ||
|
|
c52c2e5dfb | ||
|
|
ad3f7e1de2 | ||
|
|
502cbc3847 | ||
|
|
013066ca06 | ||
|
|
c0f49b57e1 | ||
|
|
af3a55a94c | ||
|
|
f401a3b53d | ||
|
|
4d4ee3b2db | ||
|
|
364bf482eb | ||
|
|
0b78961111 | ||
|
|
5018da7f9f | ||
|
|
9ee1833bd2 | ||
|
|
1de54ed8d7 | ||
|
|
8899112456 | ||
|
|
f35eb20954 | ||
|
|
d5791d5c74 | ||
|
|
cafe5646b6 | ||
|
|
afc63a3bfa | ||
|
|
d600a4b887 | ||
|
|
ba3991af5e | ||
|
|
49008b169c | ||
|
|
c59ec54713 | ||
|
|
ba20f54b5b | ||
|
|
890abfbefc | ||
|
|
df673b987e | ||
|
|
9954afa538 | ||
|
|
f479600066 | ||
|
|
df87eb5508 | ||
|
|
190476dafe | ||
|
|
2748bfc737 | ||
|
|
9fb1143eba | ||
|
|
37ee5e2540 | ||
|
|
85e18b2f06 | ||
|
|
088d378ba4 | ||
|
|
047ed8ef61 | ||
|
|
fbb6faaa2f | ||
|
|
3c634e1f59 | ||
|
|
711a900ff7 | ||
|
|
4ffa63c938 | ||
|
|
86023378f8 | ||
|
|
8e69b1fa0e | ||
|
|
07e0a6fa8e | ||
|
|
86312be79e | ||
|
|
2cd9ca0c8f | ||
|
|
927ee21752 | ||
|
|
0bcd38f7d8 | ||
|
|
7bfe6aa127 | ||
|
|
eb28d38fa8 | ||
|
|
1b9f922ec3 | ||
|
|
dbfa207344 | ||
|
|
802e3127c0 | ||
|
|
873b2169f9 | ||
|
|
2af09a7151 | ||
|
|
30d836dc90 | ||
|
|
96d5814bfe | ||
|
|
debb598499 | ||
|
|
1bb2a35164 | ||
|
|
fdaf418fe0 | ||
|
|
3bcdef1972 | ||
|
|
8fbd4d70e6 | ||
|
|
e30ae359a4 | ||
|
|
55f3b7c277 | ||
|
|
42754ce98b | ||
|
|
64eaf74e83 | ||
|
|
ee78e63b87 | ||
|
|
8307a55429 | ||
|
|
a6465c2bd0 | ||
|
|
0cda12d446 | ||
|
|
fb3c611275 | ||
|
|
2dd27c8d4a | ||
|
|
cd008aac6a | ||
|
|
56c48b31ad | ||
|
|
2e307e1cd3 | ||
|
|
3d71956b48 | ||
|
|
fb9f90b98b | ||
|
|
9f2e3a2405 | ||
|
|
5672e2a885 | ||
|
|
8b9d2ad657 | ||
|
|
9cfcdfc7aa | ||
|
|
2543970419 | ||
|
|
cced5bd700 | ||
|
|
19c51dac45 | ||
|
|
494a9fe41a | ||
|
|
b212853bce | ||
|
|
d29c656d4f | ||
|
|
11a7756527 | ||
|
|
df10e1fad2 | ||
|
|
13135e72db | ||
|
|
be743b2204 | ||
|
|
3944a8737a | ||
|
|
dd0b9fb871 | ||
|
|
81cd1e652e | ||
|
|
c74315f1ef | ||
|
|
0554b02215 | ||
|
|
da91578bc7 | ||
|
|
2ed85926d5 | ||
|
|
8aa2da532c | ||
|
|
c83120d8c8 | ||
|
|
baaff96045 | ||
|
|
6245395f34 | ||
|
|
a91a2482e7 | ||
|
|
e061bc23f4 | ||
|
|
f5bbad185f | ||
|
|
8cb4819b53 | ||
|
|
84bca63b2e | ||
|
|
50c0b3d2a2 | ||
|
|
decf9972bb | ||
|
|
8c10c3776d | ||
|
|
aca199cb05 | ||
|
|
6e6c4500d6 | ||
|
|
98ec442b37 | ||
|
|
df06db114d | ||
|
|
81ad463026 | ||
|
|
4e8c362152 | ||
|
|
733fe1a8d3 | ||
|
|
c151dcec50 | ||
|
|
f93b23b524 | ||
|
|
0b6f7c1533 | ||
|
|
ea895e99b7 | ||
|
|
2800d00bb4 | ||
|
|
cacf5aeb7e | ||
|
|
a5fa98e5f0 | ||
|
|
ad49aea17d | ||
|
|
fa80aa6505 | ||
|
|
e8d779ab78 | ||
|
|
17d7098bf6 | ||
|
|
2d8cc055f0 | ||
|
|
da1cbfda46 | ||
|
|
3cf636163b | ||
|
|
c3e4c6b6bc | ||
|
|
b664cea735 | ||
|
|
0d59d36a80 | ||
|
|
6c0b65d655 | ||
|
|
d2cb0278f6 | ||
|
|
a1fb385450 | ||
|
|
5aea58d1e8 | ||
|
|
a5225af1c7 | ||
|
|
bcb5ff5ed9 | ||
|
|
03e086a139 | ||
|
|
74cbd08ff5 | ||
|
|
321d404d6b | ||
|
|
5c14bef6a8 | ||
|
|
b66fa1680a | ||
|
|
6a26dab73a | ||
|
|
5f148c3dcc | ||
|
|
fab9e29513 | ||
|
|
350f1d6496 | ||
|
|
26a92977f0 | ||
|
|
b329a16832 | ||
|
|
465a6ceb64 | ||
|
|
6424af120c | ||
|
|
36db5ef929 | ||
|
|
cdfdefe9af | ||
|
|
9e4de4bfc8 | ||
|
|
62cb2b4ca9 | ||
|
|
b5d65b9579 | ||
|
|
9a74745246 | ||
|
|
ec39ee2cb6 | ||
|
|
d80b282fdd | ||
|
|
04ddd0abe4 | ||
|
|
2fc129e236 | ||
|
|
a6b948ae59 | ||
|
|
f19b426a3f | ||
|
|
a8024a32c5 | ||
|
|
9427ebc5be | ||
|
|
b6290f1590 | ||
|
|
bc5262a5d0 | ||
|
|
6d9fbf7ab3 | ||
|
|
efc8d36aa5 | ||
|
|
6984cf83b2 | ||
|
|
e35c1e5a61 | ||
|
|
8de3765af9 | ||
|
|
d8817266be | ||
|
|
6dc47580ce | ||
|
|
832a7a40a6 | ||
|
|
249afbbfc9 | ||
|
|
5988f35593 | ||
|
|
f2e9f5349f | ||
|
|
368854b243 | ||
|
|
cf81ae79e4 | ||
|
|
9c2903c176 | ||
|
|
4a3ff40eb3 | ||
|
|
cd41c8beaf | ||
|
|
b53484be10 | ||
|
|
628a34a43d | ||
|
|
1026c7141e | ||
|
|
be172af3cd | ||
|
|
6940a5eaae | ||
|
|
40063f7487 | ||
|
|
5de9c45161 | ||
|
|
ac3fc89df9 | ||
|
|
54a96cef06 | ||
|
|
88abc9f3c1 | ||
|
|
c1f117413f | ||
|
|
1765e2c482 | ||
|
|
04ff6afbad | ||
|
|
2f91028f2d | ||
|
|
fd535242a0 | ||
|
|
8b46c95f06 | ||
|
|
d6935ed3be | ||
|
|
c9ae021427 | ||
|
|
50cc6d0422 | ||
|
|
6df65c0162 | ||
|
|
fc12c68601 | ||
|
|
1dc5e4cee5 | ||
|
|
ec619e3f35 | ||
|
|
579a37bdf0 | ||
|
|
0ef4707859 | ||
|
|
7f8f0dcffe | ||
|
|
d996086a6d | ||
|
|
fb9b96d498 | ||
|
|
6b1e3003fb | ||
|
|
3a4feddf75 | ||
|
|
643cd78ea2 | ||
|
|
1a57e3065a | ||
|
|
7305616452 | ||
|
|
50f53f9576 | ||
|
|
630c5ef364 | ||
|
|
852d5169d4 | ||
|
|
eea537e5ea | ||
|
|
e8160f049e | ||
|
|
c3a79f50d8 | ||
|
|
e6ce735ed8 | ||
|
|
6aaee73585 | ||
|
|
d1308fcdfc | ||
|
|
52fc3844a6 | ||
|
|
988236ca70 | ||
|
|
8124368319 | ||
|
|
c4920021d8 | ||
|
|
60864f19da | ||
|
|
2cf87a8049 | ||
|
|
7316a275ae | ||
|
|
c3d4c3086e | ||
|
|
05ce8329c9 | ||
|
|
7a95be1a97 | ||
|
|
9ca1206bf3 | ||
|
|
44be4e1cc8 | ||
|
|
9914da3046 | ||
|
|
a31b76878f | ||
|
|
829e9f5277 | ||
|
|
8e3d7fc6f4 | ||
|
|
36739bca62 | ||
|
|
818ac2b8dd | ||
|
|
798d81723b | ||
|
|
f5b0d3c0b4 | ||
|
|
36575ff480 | ||
|
|
5d93a48ddf | ||
|
|
5caef7eaba | ||
|
|
9bee0281cb | ||
|
|
fd9e1e21ed | ||
|
|
eb6f9152db | ||
|
|
761ab6b17a | ||
|
|
257c55a311 | ||
|
|
27e73818c5 | ||
|
|
692a01238e | ||
|
|
dca71d36f6 | ||
|
|
d90a89898c | ||
|
|
9fbb4a923f | ||
|
|
77fa0ccb82 | ||
|
|
531120131a | ||
|
|
26673a0f28 | ||
|
|
cb6a138caf | ||
|
|
f06ac9965c | ||
|
|
db23d8a0cf | ||
|
|
445c1e6ceb | ||
|
|
0747a16893 | ||
|
|
d5f7beefd4 | ||
|
|
063e757f6b | ||
|
|
d133fa6143 | ||
|
|
0c7e9a0104 | ||
|
|
59fdf05155 | ||
|
|
d95b2e69b5 | ||
|
|
b76c70d969 | ||
|
|
75d90aaf2f | ||
|
|
421f54e60a | ||
|
|
74b3df4f6c | ||
|
|
bc877dab2a | ||
|
|
1e1a722332 | ||
|
|
576f0aa045 | ||
|
|
6be3dae6d3 | ||
|
|
ad2119b2f8 | ||
|
|
36877d78b4 | ||
|
|
b59ac022c9 | ||
|
|
ccc9b1535d | ||
|
|
99b44f15ef | ||
|
|
3e774be88c | ||
|
|
e1aefc08ac | ||
|
|
88443dea8c | ||
|
|
b6b007de3c | ||
|
|
ef89e2e637 | ||
|
|
3e1ba5d4d4 | ||
|
|
b19f70d182 | ||
|
|
7e9896d162 | ||
|
|
9ffc300641 | ||
|
|
a9c7bc9d00 | ||
|
|
853db0841f | ||
|
|
ecf449dfe0 | ||
|
|
a4eaa31b5e | ||
|
|
4d4145e6a0 | ||
|
|
19e8bb05f3 | ||
|
|
ffe5599013 | ||
|
|
6e880495dc | ||
|
|
189c9ab234 | ||
|
|
e81670a3c0 | ||
|
|
9767631ebe | ||
|
|
af8865d13e | ||
|
|
bdd6072ede | ||
|
|
f12fd6ab8b | ||
|
|
af8f18b634 | ||
|
|
fff3402ed4 | ||
|
|
e606cccb10 | ||
|
|
97f54e8e0a | ||
|
|
ca955032a0 | ||
|
|
a9d28da7ce | ||
|
|
5f539b3921 | ||
|
|
cb929e1247 | ||
|
|
e722c15be8 | ||
|
|
628a91efda | ||
|
|
6f5be32d3a | ||
|
|
94e34d7a98 | ||
|
|
29401334d3 | ||
|
|
48cb185ce9 | ||
|
|
14ff3d1f0f | ||
|
|
35f46018a5 | ||
|
|
9d7a02b28e | ||
|
|
38c01b9d9f | ||
|
|
895522aa18 | ||
|
|
ef4d484f85 | ||
|
|
ea8e9ee699 | ||
|
|
df4dd7d5b3 | ||
|
|
2ec7951de6 | ||
|
|
9970b68e45 | ||
|
|
881b9e5b07 | ||
|
|
f91936944d | ||
|
|
67838e099d | ||
|
|
8b39f863e6 | ||
|
|
3294a3f8f8 | ||
|
|
22802604c0 | ||
|
|
277d6dc5dd | ||
|
|
93e8133453 | ||
|
|
7e803f346d | ||
|
|
8bf228d346 | ||
|
|
1d64c735ce | ||
|
|
ad68bb9a7a | ||
|
|
83f4f9e5ef | ||
|
|
fbc2ccca1e | ||
|
|
11bdb8550e | ||
|
|
c0d7f3b2e6 | ||
|
|
ac48438bd0 | ||
|
|
7233732159 | ||
|
|
f86f4a8ca0 | ||
|
|
ec38048711 | ||
|
|
25e8bd6b45 | ||
|
|
67029dc4e7 | ||
|
|
321e44226a | ||
|
|
a6d019ecf9 | ||
|
|
cbc27f7de4 | ||
|
|
7436a41bc7 | ||
|
|
7e8598f75b | ||
|
|
67a3326e6d | ||
|
|
4e02d7e404 | ||
|
|
704a18d103 | ||
|
|
e6d267ef16 | ||
|
|
5e1a358dff | ||
|
|
2c5db7b64c | ||
|
|
0be79a8629 | ||
|
|
8737d46bb1 | ||
|
|
d362b6dd08 | ||
|
|
273ed1df76 | ||
|
|
20e5e654a3 | ||
|
|
1181081c38 | ||
|
|
3ab5ccd04f | ||
|
|
9bf4a94796 | ||
|
|
bfd24cfa23 | ||
|
|
85ef91ce6d | ||
|
|
34d541109d | ||
|
|
18a6a7c4a7 | ||
|
|
cd2c7e1438 | ||
|
|
4013f83e4f | ||
|
|
15a48e411d | ||
|
|
70ad19467c | ||
|
|
4ecf3545d7 | ||
|
|
e9b80e53fa | ||
|
|
74cd2fd910 | ||
|
|
ea2841fa7a | ||
|
|
84a33183a6 | ||
|
|
3755b88a02 | ||
|
|
c41b1b1b9b | ||
|
|
a6a89d3316 | ||
|
|
5a75e0f6c6 | ||
|
|
293d7e1241 | ||
|
|
8fb1bb8781 | ||
|
|
9cbf92df01 | ||
|
|
d96bd30398 | ||
|
|
b543aa0148 | ||
|
|
bf16696d8c | ||
|
|
ed58cfdc0f | ||
|
|
d5927a58dd | ||
|
|
8ea953f8c0 | ||
|
|
cb1dbb75f8 | ||
|
|
8c4887c166 | ||
|
|
6606984101 | ||
|
|
2fa1e19fe7 | ||
|
|
cfa338314d | ||
|
|
4a4b019e30 | ||
|
|
cfab451328 | ||
|
|
7964fa4195 | ||
|
|
f9acaab6fe | ||
|
|
ec76f79e9d | ||
|
|
49f510544a | ||
|
|
696c5eed25 | ||
|
|
29392ac6b3 | ||
|
|
d4e8922dfd | ||
|
|
a7cc438c9c | ||
|
|
5d0654ee56 | ||
|
|
d7085069d6 | ||
|
|
95a85d16d2 | ||
|
|
70a0983bbc | ||
|
|
52b176b6a1 | ||
|
|
710f49795f | ||
|
|
659d33fdaf | ||
|
|
9172abc969 | ||
|
|
567ae7ca55 | ||
|
|
6e70cdf3b5 | ||
|
|
e89b4cce4c | ||
|
|
8eed940e3a | ||
|
|
3ab87ba2ed | ||
|
|
35cb3c8a79 | ||
|
|
6c16b9c0b5 | ||
|
|
a70e188758 | ||
|
|
a6319fc2a9 | ||
|
|
607a24b499 | ||
|
|
096889927d | ||
|
|
2e3ebd7d8c | ||
|
|
2fbe030e5e | ||
|
|
d706e2be32 | ||
|
|
947c72937f | ||
|
|
6cd87d56d4 | ||
|
|
26b5d032b7 | ||
|
|
824b7a3f3f | ||
|
|
c5056f408f | ||
|
|
55e13d40b3 | ||
|
|
6cc91c8f9b | ||
|
|
0ef7435580 | ||
|
|
0717135e49 | ||
|
|
830db63bcf | ||
|
|
e87ded85b4 | ||
|
|
ab6dc8d669 | ||
|
|
2995c96f11 | ||
|
|
b6db087a62 | ||
|
|
0298a29a6f | ||
|
|
cd1344bbed | ||
|
|
83ad0b7010 | ||
|
|
79e2b2b4ce | ||
|
|
5d46d10933 | ||
|
|
c84c465fc6 | ||
|
|
50bc20e340 | ||
|
|
6a21a90f41 | ||
|
|
997feecd6e | ||
|
|
676fe19e2f | ||
|
|
1c570fae3b | ||
|
|
ed7e1f9770 | ||
|
|
9859492222 | ||
|
|
5ea38b059e | ||
|
|
5231dc63fa | ||
|
|
c1421b1be8 | ||
|
|
be742cabda | ||
|
|
288fdbcc3e | ||
|
|
28cefb0d1a | ||
|
|
4efd06fdc1 | ||
|
|
0083afc279 | ||
|
|
2663f5abaf | ||
|
|
161d74879a | ||
|
|
284ebacc57 | ||
|
|
80766566fc | ||
|
|
87dc197284 | ||
|
|
e9aae8b571 | ||
|
|
f6f6d91ae1 | ||
|
|
9b2d927de7 | ||
|
|
1b5af2fdd9 | ||
|
|
49e72633b8 | ||
|
|
2a0b726c15 | ||
|
|
4e8c180290 | ||
|
|
5ea9d11295 | ||
|
|
91d883d99f | ||
|
|
3d9a1647d4 | ||
|
|
25aa0af260 | ||
|
|
e9187f5f00 | ||
|
|
a338b4c933 | ||
|
|
4f5aa81031 | ||
|
|
6a3f98627e | ||
|
|
99fbd6f160 | ||
|
|
e9a238ca86 | ||
|
|
97b85552e8 | ||
|
|
eefc0f2f57 | ||
|
|
328de3ed63 | ||
|
|
e3409a40a5 | ||
|
|
b2a2a8af4a | ||
|
|
df9335ee0a | ||
|
|
8dd07bbb73 | ||
|
|
77485d987e | ||
|
|
c3a9520eb5 | ||
|
|
fc6e10ff42 | ||
|
|
68ebb051e5 | ||
|
|
f39bd5e02b | ||
|
|
829a8a4039 | ||
|
|
6513e2ce8f | ||
|
|
bb4698a9e8 | ||
|
|
9c1e2a83d1 | ||
|
|
400c7238ef | ||
|
|
ae9926cc42 | ||
|
|
9b5ad6f218 | ||
|
|
757c93c6d5 | ||
|
|
04385f8557 | ||
|
|
0d6c283f7a | ||
|
|
492704992a | ||
|
|
0fba16a394 | ||
|
|
880afe0d89 | ||
|
|
54aa211fee | ||
|
|
8e4abb0011 | ||
|
|
c522baa75e | ||
|
|
ae3996fd0e | ||
|
|
211007fb44 | ||
|
|
bd0e222fec | ||
|
|
6ec0c22a28 | ||
|
|
ded168f238 | ||
|
|
9c572efa40 | ||
|
|
e1965094ad | ||
|
|
edea6428d9 | ||
|
|
ef16ce806c | ||
|
|
6dffa8a13d | ||
|
|
4db45cea4e | ||
|
|
99af84f1e2 | ||
|
|
d3a379adac | ||
|
|
b45cd921b6 | ||
|
|
7b21cd8cf0 | ||
|
|
79444fdb56 | ||
|
|
1add8703e2 | ||
|
|
5a8fc919ef | ||
|
|
33d2f2687f | ||
|
|
01f9f7df5f | ||
|
|
0f0fdea7ff | ||
|
|
773170464e | ||
|
|
acb04bec0c | ||
|
|
61f6b5e29c | ||
|
|
064888bb2a | ||
|
|
f8007b2d8f | ||
|
|
1993851274 | ||
|
|
90fe2ab894 | ||
|
|
4b5649edc9 | ||
|
|
3f03f4e40a | ||
|
|
1de5165dcc | ||
|
|
8136c55a39 | ||
|
|
a914d782c0 | ||
|
|
c905c613e9 | ||
|
|
ea38e1aab5 | ||
|
|
366f159fbb | ||
|
|
2029bf0a0b | ||
|
|
d9df00cdfb | ||
|
|
2077690bf0 | ||
|
|
409a0acb88 | ||
|
|
d72d28ac60 | ||
|
|
1dc3808aae | ||
|
|
d287863a35 | ||
|
|
d10e72bc98 | ||
|
|
4ad2f68071 | ||
|
|
0989a14395 | ||
|
|
e9b941e16e | ||
|
|
8edf237f75 | ||
|
|
194138f0b8 | ||
|
|
9a8be82653 | ||
|
|
f50514b228 | ||
|
|
1abcd4b035 | ||
|
|
05f377011b | ||
|
|
f7f94cede0 | ||
|
|
0627437048 | ||
|
|
12349f39e6 | ||
|
|
b203726623 | ||
|
|
5b0735cdb4 | ||
|
|
52902f1d37 | ||
|
|
6dc86e7df1 | ||
|
|
be938ed197 | ||
|
|
25d5a624d2 | ||
|
|
0ee01f08bc | ||
|
|
3af3274dcd | ||
|
|
07f9ca60ac | ||
|
|
0930086fa1 | ||
|
|
008c8509c6 | ||
|
|
04e2b6c62a | ||
|
|
7eb95674ee | ||
|
|
fd66f6bcec | ||
|
|
14522f25ff | ||
|
|
feb58a8455 | ||
|
|
12776b3772 | ||
|
|
b509e174bb | ||
|
|
ceae169a34 | ||
|
|
624f1499f0 | ||
|
|
5a0d794e88 | ||
|
|
29c0c9bf48 | ||
|
|
850b8c5c3b | ||
|
|
88d5059c36 | ||
|
|
98bc8402db | ||
|
|
ae9b01c5b8 | ||
|
|
f71a85d5f9 | ||
|
|
1bc71da1df | ||
|
|
6e550c8d75 | ||
|
|
8bafa7f601 | ||
|
|
c9e3094cb0 | ||
|
|
8d695f97c9 | ||
|
|
318350f63b | ||
|
|
9f2dc408a0 | ||
|
|
1b0e5f4806 | ||
|
|
5fe6f1c875 | ||
|
|
b04954dc98 | ||
|
|
f129c32273 | ||
|
|
b6e590836d | ||
|
|
4412496adb | ||
|
|
90f53aed34 | ||
|
|
3dd2219548 | ||
|
|
d864fc9a3f | ||
|
|
cf0e4a0e3d | ||
|
|
906ea4ad03 | ||
|
|
64a309e245 | ||
|
|
ddc1899d48 | ||
|
|
94e1b87ae0 | ||
|
|
c41bef6486 | ||
|
|
aa38d99538 | ||
|
|
c377a709e1 | ||
|
|
2babac6cb5 | ||
|
|
210eb6283c | ||
|
|
851ff9e661 | ||
|
|
339e44bd87 | ||
|
|
59665a44b5 | ||
|
|
29c120356e | ||
|
|
af70edb99d | ||
|
|
4951646c91 | ||
|
|
fb3d38c3e8 | ||
|
|
c213c725d7 | ||
|
|
8bf14ba1d3 | ||
|
|
08d6474878 | ||
|
|
b90df0a6aa | ||
|
|
d7037da0b5 | ||
|
|
9763030675 | ||
|
|
8dbd8b0ad6 | ||
|
|
aa14607a6f | ||
|
|
2f52d3cd20 | ||
|
|
dcaa218ed8 | ||
|
|
7ea6b73c7b | ||
|
|
2637e5e361 | ||
|
|
c491a6c829 | ||
|
|
a79daa5ea8 | ||
|
|
582f0d82e4 | ||
|
|
bfee3dffc6 | ||
|
|
bcce015496 | ||
|
|
bb27fa4555 | ||
|
|
ef66a12a24 | ||
|
|
f117308135 | ||
|
|
b546b2a5ec | ||
|
|
f954aef973 | ||
|
|
ae25a48509 | ||
|
|
3fba5d17c3 | ||
|
|
54477d1bea | ||
|
|
40c79b1134 | ||
|
|
9bf2962852 | ||
|
|
090932b65c | ||
|
|
55b42dd85a | ||
|
|
1fd090d094 | ||
|
|
f76105a93b | ||
|
|
aa8e5a29d4 | ||
|
|
a52539c489 | ||
|
|
5b268c0852 | ||
|
|
f80faebfe5 | ||
|
|
fbfb1fee91 | ||
|
|
6e6aa5b0c1 | ||
|
|
d0e83be596 | ||
|
|
365a4de154 | ||
|
|
d531e21f34 | ||
|
|
9c29102c43 | ||
|
|
6762cd90da | ||
|
|
ce514e6fc5 | ||
|
|
ba4f3379ba | ||
|
|
a7d5e6400d | ||
|
|
2febed01a5 | ||
|
|
f7c5c9f713 | ||
|
|
7c63dd6245 | ||
|
|
062003916c | ||
|
|
343e8bccdd | ||
|
|
4ec49d2189 | ||
|
|
e3276ca683 | ||
|
|
9ed061cc96 | ||
|
|
eeb7f72a07 | ||
|
|
b3319bd952 | ||
|
|
34e491f39f | ||
|
|
821e293ed4 | ||
|
|
b3e28fab67 | ||
|
|
ea500bd1c8 | ||
|
|
07ee2bcecf | ||
|
|
2c1ecacbfc | ||
|
|
4966eb7897 | ||
|
|
cdb45b12c5 | ||
|
|
20562b3f78 | ||
|
|
a816f329cc | ||
|
|
fb0c9b2a66 | ||
|
|
dd8fb41f66 | ||
|
|
830431ccdf | ||
|
|
82ab7bf32c | ||
|
|
8cba961bac | ||
|
|
9fff321e3e | ||
|
|
82c6f58eb0 | ||
|
|
6e6108bb98 | ||
|
|
238072c84d | ||
|
|
2639c5e268 | ||
|
|
385ece92d8 | ||
|
|
fc92584bd2 | ||
|
|
64953299cf | ||
|
|
7602eef98f | ||
|
|
b2ae7f4230 | ||
|
|
c3eab0dcdd | ||
|
|
cf030de48a | ||
|
|
3ea5e56c26 | ||
|
|
570daa6a7f | ||
|
|
0eef90f951 | ||
|
|
c78bfa4db8 | ||
|
|
227804f034 | ||
|
|
170b125b39 | ||
|
|
6b7f0d4ee7 | ||
|
|
b30ada1608 | ||
|
|
47895fe78d | ||
|
|
b4df909df0 | ||
|
|
98f733767b | ||
|
|
e1da313b91 | ||
|
|
141cf822f2 | ||
|
|
bcfe8bf2e2 | ||
|
|
3a62857dbd | ||
|
|
b043225dbd | ||
|
|
d6fb454063 | ||
|
|
abfc788389 | ||
|
|
67cc8ed482 | ||
|
|
4ff82e22e6 | ||
|
|
70857f7b3c | ||
|
|
c256d8ca92 | ||
|
|
c9a7393923 | ||
|
|
a4229c6cf8 | ||
|
|
4a912f29d1 | ||
|
|
3c64731c4f | ||
|
|
031c97f835 | ||
|
|
f71be0546c | ||
|
|
31736307fd | ||
|
|
2cbe28fcf9 | ||
|
|
872ed28882 | ||
|
|
f49983b3b3 | ||
|
|
939ce713df | ||
|
|
f3f0d49fce | ||
|
|
85f85cc76a | ||
|
|
8e0f5f9289 | ||
|
|
76014260f6 | ||
|
|
9b808bde20 | ||
|
|
39d975a3c3 | ||
|
|
0231304607 | ||
|
|
0a91d42f2c | ||
|
|
a9cc1ca877 | ||
|
|
d77d9b93dc | ||
|
|
0e0ac14bbf | ||
|
|
e7041d2315 | ||
|
|
3b4ba669d4 | ||
|
|
1ca35f6cca | ||
|
|
d5989dc15e | ||
|
|
a68261cd82 | ||
|
|
7006efe97f | ||
|
|
84beb5ed7b | ||
|
|
6bc3b7fc9d | ||
|
|
a572c19268 | ||
|
|
9be0633ce3 | ||
|
|
2fc47fedee | ||
|
|
930a3d85e1 | ||
|
|
0c3b9c733f | ||
|
|
f162d7f530 | ||
|
|
719ed213d5 | ||
|
|
0a1c052c40 | ||
|
|
e6189a638c | ||
|
|
806cd4fbba | ||
|
|
3839b0e675 | ||
|
|
ce8ef8f7c6 | ||
|
|
e1829e614d | ||
|
|
a4a4bdc20f | ||
|
|
90355df4b0 | ||
|
|
e91f0f173b | ||
|
|
09e7b7150f | ||
|
|
9ec30f02a6 | ||
|
|
3ad94c63f5 | ||
|
|
7ec61dfe05 | ||
|
|
0e8066dda0 | ||
|
|
d1212f9247 | ||
|
|
2567cd5e5a | ||
|
|
3a5f78b55a | ||
|
|
949f8b5be1 | ||
|
|
63e4ba5854 | ||
|
|
85fc2bb7fa | ||
|
|
bdb7399398 | ||
|
|
c7c3ee00bb | ||
|
|
b45bbdc078 | ||
|
|
dad2332a95 | ||
|
|
56de8cd622 | ||
|
|
a54045113a | ||
|
|
5d0614c630 | ||
|
|
59970d94f5 | ||
|
|
25556dea8d | ||
|
|
d86122a5e7 | ||
|
|
deea6261e9 | ||
|
|
0053bd3af1 | ||
|
|
aa18209c99 | ||
|
|
f846aceee2 | ||
|
|
8b24be04e8 | ||
|
|
119f2d2651 | ||
|
|
d1ba82d5e5 | ||
|
|
b03233a35e | ||
|
|
c3e7ff0e61 | ||
|
|
45ff8af026 | ||
|
|
b21036947c | ||
|
|
71056f6591 | ||
|
|
a104cf887e | ||
|
|
645f385031 | ||
|
|
5aef687414 | ||
|
|
605d701113 | ||
|
|
1aff4399d1 | ||
|
|
cb95aed41b | ||
|
|
9644a04db2 | ||
|
|
ac7bd0aae8 | ||
|
|
c22282a8aa | ||
|
|
92bd5a4076 | ||
|
|
1cb7342f61 | ||
|
|
350881b1bb | ||
|
|
f3df4400d5 | ||
|
|
4f4a509e8c | ||
|
|
9bdef1577b | ||
|
|
cc2eb0ab71 | ||
|
|
870ff5b352 | ||
|
|
ce6b6951d2 | ||
|
|
ae1072afad | ||
|
|
a2381ba954 | ||
|
|
08d1e5cb60 | ||
|
|
3fdb6f0a4a | ||
|
|
27c445235c | ||
|
|
821fd3c898 | ||
|
|
1a9faa1f7e | ||
|
|
e3e1426b91 | ||
|
|
997a3aabc6 | ||
|
|
a39a1c1d87 | ||
|
|
56adf831a3 | ||
|
|
5859b90ad8 | ||
|
|
c33ae4c245 | ||
|
|
269ab86002 | ||
|
|
c2987a9ef9 | ||
|
|
6dd7a289e7 | ||
|
|
6e24e21d5a | ||
|
|
2b794f03c1 | ||
|
|
07fdca1d62 | ||
|
|
86e08525cb | ||
|
|
5fdc339e34 | ||
|
|
de81447b2d | ||
|
|
3d5b933f3c | ||
|
|
bb50777f1a | ||
|
|
b13826a3a5 | ||
|
|
25407e955b | ||
|
|
d1895e5679 | ||
|
|
51d66877f7 | ||
|
|
666cf508a2 | ||
|
|
fbc7d5a6b2 | ||
|
|
0824a64c92 | ||
|
|
b84086a482 | ||
|
|
0afc5e2cf1 | ||
|
|
8623b0c089 | ||
|
|
3a34a4cd1d | ||
|
|
2c978a96b2 | ||
|
|
fb943a2f23 | ||
|
|
d1f53055e9 | ||
|
|
617eda9d44 | ||
|
|
b402102e58 | ||
|
|
ceff401269 | ||
|
|
91b08fb691 | ||
|
|
1d712d47ba | ||
|
|
afca455cda | ||
|
|
2eb044dc60 | ||
|
|
d33b787993 | ||
|
|
b5ed5c9b99 | ||
|
|
194466c35a | ||
|
|
5b6130889e | ||
|
|
2beb27972b | ||
|
|
fef8a57eb2 | ||
|
|
e8c9a413ca | ||
|
|
b40226099d | ||
|
|
d10900e124 | ||
|
|
78f116b27f | ||
|
|
2a750acf03 | ||
|
|
250a06f759 | ||
|
|
31abc99f6f | ||
|
|
6a81cc976e | ||
|
|
38d4da56ab | ||
|
|
d834c50c85 | ||
|
|
9263e6ead3 | ||
|
|
eb9220a0b5 | ||
|
|
c5875cfc5a | ||
|
|
a5ce2a33eb | ||
|
|
15d0dd258a | ||
|
|
ea5785f6fd | ||
|
|
f0a0cd1078 | ||
|
|
445ed2f234 | ||
|
|
4e5380668c | ||
|
|
40b171124f | ||
|
|
f49b7107a0 | ||
|
|
32c80781bf | ||
|
|
7ec1e69dba | ||
|
|
6930cc0b21 | ||
|
|
5169a3cf89 | ||
|
|
50700c3c28 | ||
|
|
db6d924d4b | ||
|
|
f323964e8a |
168
CMakeLists.txt
168
CMakeLists.txt
@@ -28,11 +28,11 @@ if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
|
||||
You must delete them, or cmake will refuse to work.")
|
||||
endif()
|
||||
|
||||
project(wolfssl VERSION 5.2.0 LANGUAGES C ASM)
|
||||
project(wolfssl VERSION 5.4.0 LANGUAGES C ASM)
|
||||
|
||||
# shared library versioning
|
||||
# increment if interfaces have been added, removed or changed
|
||||
set(LIBTOOL_CURRENT 32)
|
||||
set(LIBTOOL_CURRENT 34)
|
||||
# increment if source code has changed set to zero if current is incremented
|
||||
set(LIBTOOL_REVISION 0)
|
||||
# increment if interfaces have been added set to zero if interfaces have been
|
||||
@@ -266,6 +266,26 @@ if("${FIPS_VERSION}" STREQUAL "v1")
|
||||
override_cache(WOLFSSL_TLS13 "no")
|
||||
endif()
|
||||
|
||||
# DTLS v1.3
|
||||
add_option("WOLFSSL_DTLS13"
|
||||
"Enable wolfSSL DTLS v1.3 (default: disabled)"
|
||||
"no" "yes;no")
|
||||
|
||||
if(WOLFSSL_DTLS13)
|
||||
if (NOT WOLFSSL_DTLS)
|
||||
message(FATAL_ERROR "DTLS13 requires DTLS")
|
||||
endif()
|
||||
if (NOT WOLFSSL_TLS13)
|
||||
message(FATAL_ERROR "DTLS13 requires TLS13")
|
||||
endif()
|
||||
list(APPEND WOLFSSL_DEFINITIONS "-DWOLFSSL_DTLS13")
|
||||
list(APPEND WOLFSSL_DEFINITIONS "-DWOLFSSL_W64_WRAPPER")
|
||||
|
||||
if (WOLFSSL_AES)
|
||||
list(APPEND WOLFSSL_DEFINITIONS "-DWOLFSSL_AES_DIRECT")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Post-handshake authentication
|
||||
add_option("WOLFSSL_POSTAUTH"
|
||||
"Enable wolfSSL Post-handshake Authentication (default: disabled)"
|
||||
@@ -1176,10 +1196,7 @@ if(NOT WOLFSSL_INLINE)
|
||||
list(APPEND WOLFSSL_DEFINITIONS "-DNO_INLINE")
|
||||
endif()
|
||||
|
||||
# TODO: - OCSP
|
||||
# - OCSP stapling
|
||||
# - OCSP stapling v2
|
||||
# - CRL
|
||||
# TODO:
|
||||
# - CRL monitor
|
||||
# - User crypto
|
||||
# - Whitewood netRandom client library
|
||||
@@ -1192,31 +1209,19 @@ endif()
|
||||
# - Secure renegotiation
|
||||
# - Fallback SCSV
|
||||
|
||||
add_option(WOLFSSL_OCSP "Enable OCSP (default: disabled)" "no" "yes;no")
|
||||
add_option(WOLFSSL_OCSPSTAPLING "Enable OCSP Stapling (default: disabled)" "no" "yes;no")
|
||||
add_option(WOLFSSL_OCSPSTAPLING_V2 "Enable OCSP Stapling v2 (default: disabled)" "no" "yes;no")
|
||||
add_option(WOLFSSL_CRL
|
||||
"Enable CRL (Use =io for inline CRL HTTP GET) (default: disabled)"
|
||||
"no" "yes;no;io")
|
||||
|
||||
set(WOLFSSL_SNI_HELP_STRING "Enable SNI (default: disabled)")
|
||||
add_option(WOLFSSL_SNI ${WOLFSSL_SNI_HELP_STRING} "no" "yes;no")
|
||||
|
||||
if (WOLFSSL_SNI)
|
||||
list(APPEND WOLFSSL_DEFINITIONS "-DHAVE_TLS_EXTENSIONS" "-DHAVE_SNI")
|
||||
endif()
|
||||
|
||||
|
||||
set(WOLFSSL_TLSX_HELP_STRING "Enable all TLS Extensions (default: disabled)")
|
||||
add_option(WOLFSSL_TLSX ${WOLFSSL_TLSX_HELP_STRING} "no" "yes;no")
|
||||
|
||||
if (WOLFSSL_TLSX)
|
||||
list(APPEND WOLFSSL_DEFINITIONS
|
||||
"-DHAVE_TLS_EXTENSIONS"
|
||||
"-DHAVE_SNI"
|
||||
"-DHAVE_MAX_FRAGMENT"
|
||||
"-DHAVE_TRUNCATED_HMAC"
|
||||
"-DHAVE_ALPN"
|
||||
"-DHAVE_TRUSTED_CA")
|
||||
if (WOLFSSL_ECC OR WOLFSSL_CURVE25519 OR WOLFSSL_CURVE448 OR WOLFSSL_TLS13)
|
||||
list(APPEND WOLFSSL_DEFINITIONS "-DHAVE_SUPPORTED_CURVES")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
# Supported elliptic curves extensions
|
||||
add_option("WOLFSSL_SUPPORTED_CURVES"
|
||||
"Enable Supported Elliptic Curves (default: enabled)"
|
||||
@@ -1420,24 +1425,9 @@ endif()
|
||||
# - wolfCrypt only
|
||||
|
||||
# fastmath
|
||||
set(FASTMATH_DEFAULT "no")
|
||||
|
||||
if(("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64") OR
|
||||
("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "aarch64"))
|
||||
set(FASTMATH_DEFAULT "yes")
|
||||
endif()
|
||||
|
||||
if(WOLFSSL_LINUXKM_DEFAULTS)
|
||||
set(FASTMATH_DEFAULT "no")
|
||||
endif()
|
||||
|
||||
if(WOLFSSL_SP_MATH)
|
||||
set(FASTMATH_DEFAULT "no")
|
||||
endif()
|
||||
|
||||
add_option("WOLFSSL_FAST_MATH"
|
||||
"Enable fast math ops (default: enabled on x86_64/aarch64)"
|
||||
${FASTMATH_DEFAULT} "yes;no")
|
||||
"Enable fast math ops (default: disabled)"
|
||||
"no" "yes;no")
|
||||
|
||||
if(WOLFSSL_FAST_MATH)
|
||||
# turn off fastmath if leanpsk on or asn off (w/o DH and ECC)
|
||||
@@ -1463,6 +1453,11 @@ endif()
|
||||
|
||||
# TODO: - Fast huge math
|
||||
|
||||
# SP math all
|
||||
add_option("WOLFSSL_SP_MATH_ALL"
|
||||
"Enable Single Precision math implementation for full algorithm suite (default: enabled)"
|
||||
"yes" "yes;no")
|
||||
|
||||
# Enable examples, used to disable examples
|
||||
if(WOLFSSL_LINUX_KM)
|
||||
set(EXAMPLES_DEFAULT "no")
|
||||
@@ -1646,6 +1641,44 @@ if(WOLFSSL_CRYPTOCB)
|
||||
list(APPEND WOLFSSL_DEFINITIONS "-DWOLF_CRYPTO_CB")
|
||||
endif()
|
||||
|
||||
if(WOLFSSL_OCSPSTAPLING)
|
||||
list(APPEND WOLFSSL_DEFINITIONS "-DHAVE_CERTIFICATE_STATUS_REQUEST" "-DHAVE_TLS_EXTENSIONS")
|
||||
override_cache(WOLFSSL_OCSP "yes")
|
||||
endif()
|
||||
|
||||
if(WOLFSSL_OCSPSTAPLING_V2)
|
||||
list(APPEND WOLFSSL_DEFINITIONS "-DHAVE_CERTIFICATE_STATUS_REQUEST_V2" "-DHAVE_TLS_EXTENSIONS")
|
||||
override_cache(WOLFSSL_OCSP "yes")
|
||||
endif()
|
||||
|
||||
# must be below OCSP stapling options to allow override
|
||||
if (WOLFSSL_OCSP)
|
||||
list(APPEND WOLFSSL_DEFINITIONS "-DHAVE_OCSP")
|
||||
endif()
|
||||
|
||||
if (WOLFSSL_CRL STREQUAL "yes")
|
||||
list(APPEND WOLFSSL_DEFINITIONS "-DHAVE_CRL")
|
||||
elseif(WOLFSSL_CRL STREQUAL "io")
|
||||
list(APPEND WOLFSSL_DEFINITIONS "-DHAVE_CRL" "-DHAVE_CRL_IO")
|
||||
endif()
|
||||
|
||||
if (WOLFSSL_SNI)
|
||||
list(APPEND WOLFSSL_DEFINITIONS "-DHAVE_TLS_EXTENSIONS" "-DHAVE_SNI")
|
||||
endif()
|
||||
|
||||
if (WOLFSSL_TLSX)
|
||||
list(APPEND WOLFSSL_DEFINITIONS
|
||||
"-DHAVE_TLS_EXTENSIONS"
|
||||
"-DHAVE_SNI"
|
||||
"-DHAVE_MAX_FRAGMENT"
|
||||
"-DHAVE_TRUNCATED_HMAC"
|
||||
"-DHAVE_ALPN"
|
||||
"-DHAVE_TRUSTED_CA")
|
||||
if (WOLFSSL_ECC OR WOLFSSL_CURVE25519 OR WOLFSSL_CURVE448 OR WOLFSSL_TLS13)
|
||||
list(APPEND WOLFSSL_DEFINITIONS "-DHAVE_SUPPORTED_CURVES")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
# Generates the BUILD_* flags. These control what source files are included in
|
||||
# the library. A series of AM_CONDITIONALs handle this in configure.ac.
|
||||
@@ -1683,7 +1716,22 @@ add_definitions("-DWOLFSSL_IGNORE_FILE_WARN")
|
||||
|
||||
# Generate user options header
|
||||
message("Generating user options header...")
|
||||
set(OPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/wolfssl/options.h")
|
||||
if (${CMAKE_DISABLE_SOURCE_CHANGES})
|
||||
set(WOLFSSL_BUILD_OUT_OF_TREE_DEFAULT "${CMAKE_DISABLE_SOURCE_CHANGES}")
|
||||
else()
|
||||
set(WOLFSSL_BUILD_OUT_OF_TREE_DEFAULT "no")
|
||||
endif()
|
||||
add_option("WOLFSSL_BUILD_OUT_OF_TREE"
|
||||
"Don't generate files in the source tree (default: ${WOLFSSL_BUILD_OUT_OF_TREE_DEFAULT})"
|
||||
"${WOLFSSL_BUILD_OUT_OF_TREE_DEFAULT}" "yes;no")
|
||||
if (${WOLFSSL_BUILD_OUT_OF_TREE})
|
||||
set(WOLFSSL_OUTPUT_BASE ${CMAKE_CURRENT_BINARY_DIR})
|
||||
else()
|
||||
set(WOLFSSL_OUTPUT_BASE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
endif()
|
||||
set(OPTION_FILE "${WOLFSSL_OUTPUT_BASE}/wolfssl/options.h")
|
||||
set(CYASSL_OPTION_FILE "${WOLFSSL_OUTPUT_BASE}/cyassl/options.h")
|
||||
|
||||
file(REMOVE ${OPTION_FILE})
|
||||
|
||||
file(APPEND ${OPTION_FILE} "/* wolfssl options.h\n")
|
||||
@@ -1713,7 +1761,6 @@ file(APPEND ${OPTION_FILE} "#endif\n\n\n")
|
||||
file(APPEND ${OPTION_FILE} "#endif /* WOLFSSL_OPTIONS_H */\n\n")
|
||||
|
||||
# backwards compatibility for those who have included options or version
|
||||
set(CYASSL_OPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/cyassl/options.h")
|
||||
file(REMOVE ${CYASSL_OPTION_FILE})
|
||||
file(APPEND ${CYASSL_OPTION_FILE} "/* cyassl options.h\n")
|
||||
file(APPEND ${CYASSL_OPTION_FILE} " * generated from wolfssl/options.h\n")
|
||||
@@ -1753,7 +1800,7 @@ endif()
|
||||
|
||||
target_include_directories(wolfssl
|
||||
PUBLIC
|
||||
$<INSTALL_INTERFACE:wolfssl>
|
||||
$<INSTALL_INTERFACE:include>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
|
||||
)
|
||||
@@ -1786,7 +1833,7 @@ if(WOLFSSL_EXAMPLES)
|
||||
target_link_libraries(client wolfssl)
|
||||
set_property(TARGET client
|
||||
PROPERTY RUNTIME_OUTPUT_DIRECTORY
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/examples/client)
|
||||
${WOLFSSL_OUTPUT_BASE}/examples/client)
|
||||
|
||||
# Build wolfSSL server example
|
||||
add_executable(server
|
||||
@@ -1794,7 +1841,7 @@ if(WOLFSSL_EXAMPLES)
|
||||
target_link_libraries(server wolfssl)
|
||||
set_property(TARGET server
|
||||
PROPERTY RUNTIME_OUTPUT_DIRECTORY
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/examples/server)
|
||||
${WOLFSSL_OUTPUT_BASE}/examples/server)
|
||||
|
||||
# Build echo client example
|
||||
add_executable(echoclient
|
||||
@@ -1804,7 +1851,7 @@ if(WOLFSSL_EXAMPLES)
|
||||
target_link_libraries(echoclient wolfssl)
|
||||
set_property(TARGET echoclient
|
||||
PROPERTY RUNTIME_OUTPUT_DIRECTORY
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/examples/echoclient)
|
||||
${WOLFSSL_OUTPUT_BASE}/examples/echoclient)
|
||||
|
||||
# Build echo server example
|
||||
add_executable(echoserver
|
||||
@@ -1814,7 +1861,7 @@ if(WOLFSSL_EXAMPLES)
|
||||
target_link_libraries(echoserver wolfssl)
|
||||
set_property(TARGET echoserver
|
||||
PROPERTY RUNTIME_OUTPUT_DIRECTORY
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/examples/echoserver)
|
||||
${WOLFSSL_OUTPUT_BASE}/examples/echoserver)
|
||||
|
||||
if(NOT WIN32)
|
||||
# Build TLS benchmark example
|
||||
@@ -1824,7 +1871,7 @@ if(WOLFSSL_EXAMPLES)
|
||||
target_link_libraries(tls_bench Threads::Threads)
|
||||
set_property(TARGET tls_bench
|
||||
PROPERTY RUNTIME_OUTPUT_DIRECTORY
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/examples/benchmark)
|
||||
${WOLFSSL_OUTPUT_BASE}/examples/benchmark)
|
||||
endif()
|
||||
|
||||
# Build unit tests
|
||||
@@ -1833,6 +1880,7 @@ if(WOLFSSL_EXAMPLES)
|
||||
tests/hash.c
|
||||
tests/srp.c
|
||||
tests/suites.c
|
||||
tests/w64wrapper.c
|
||||
tests/unit.c
|
||||
examples/server/server.c
|
||||
examples/client/client.c)
|
||||
@@ -1843,7 +1891,7 @@ if(WOLFSSL_EXAMPLES)
|
||||
target_link_libraries(unit_test Threads::Threads)
|
||||
set_property(TARGET unit_test
|
||||
PROPERTY RUNTIME_OUTPUT_DIRECTORY
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/tests/)
|
||||
${WOLFSSL_OUTPUT_BASE}/tests/)
|
||||
set_property(TARGET unit_test
|
||||
PROPERTY RUNTIME_OUTPUT_NAME
|
||||
unit.test)
|
||||
@@ -1876,7 +1924,7 @@ if(WOLFSSL_CRYPT_TESTS)
|
||||
target_link_libraries(wolfcrypttest wolfssl)
|
||||
set_property(TARGET wolfcrypttest
|
||||
PROPERTY RUNTIME_OUTPUT_DIRECTORY
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/wolfcrypt/test)
|
||||
${WOLFSSL_OUTPUT_BASE}/wolfcrypt/test)
|
||||
set_property(TARGET wolfcrypttest
|
||||
PROPERTY RUNTIME_OUTPUT_NAME
|
||||
testwolfcrypt)
|
||||
@@ -1889,7 +1937,7 @@ if(WOLFSSL_CRYPT_TESTS)
|
||||
target_link_libraries(wolfcryptbench wolfssl)
|
||||
set_property(TARGET wolfcryptbench
|
||||
PROPERTY RUNTIME_OUTPUT_DIRECTORY
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/wolfcrypt/benchmark)
|
||||
${WOLFSSL_OUTPUT_BASE}/wolfcrypt/benchmark)
|
||||
set_property(TARGET wolfcryptbench
|
||||
PROPERTY RUNTIME_OUTPUT_NAME
|
||||
benchmark)
|
||||
@@ -2034,10 +2082,20 @@ set(INSTALLED_EXAMPLES
|
||||
|
||||
# Install the library
|
||||
install(TARGETS wolfssl
|
||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
EXPORT wolfssl-targets
|
||||
LIBRARY)
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
RUNTIME DESTINATION bin
|
||||
)
|
||||
# Install the headers
|
||||
install(DIRECTORY ${WOLFSSL_OUTPUT_BASE}/wolfssl/
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/wolfssl
|
||||
FILES_MATCHING PATTERN "*.h"
|
||||
REGEX ${EXCLUDED_HEADERS_REGEX} EXCLUDE)
|
||||
install(DIRECTORY ${WOLFSSL_OUTPUT_BASE}/cyassl/
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/cyassl
|
||||
FILES_MATCHING PATTERN "*.h"
|
||||
REGEX ${EXCLUDED_HEADERS_REGEX} EXCLUDE)
|
||||
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/wolfssl/
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/wolfssl
|
||||
FILES_MATCHING PATTERN "*.h"
|
||||
|
||||
304
ChangeLog.md
304
ChangeLog.md
@@ -1,3 +1,307 @@
|
||||
# wolfSSL Release 5.4.0 (July 11, 2022)
|
||||
|
||||
Note:
|
||||
** Future releases of wolfSSL will turn off TLS 1.1 by default
|
||||
** Release 5.4.0 made SP math the default math implementation. To make an equivalent build as –disable-fastmath from previous versions of wolfSSL, now requires using the configure option –enable-heapmath instead.
|
||||
|
||||
Release 5.4.0 of wolfSSL embedded TLS has bug fixes and new features including:
|
||||
|
||||
## Vulnerabilities
|
||||
* [High] Potential for DTLS DoS attack. In wolfSSL versions before 5.4.0 the return-routability check is wrongly skipped in a specific edge case. The check on the return-routability is there for stopping attacks that either consume excessive resources on the server, or try to use the server as an amplifier sending an excessive amount of messages to a victim IP. If using DTLS 1.0/1.2 on the server side users should update to avoid the potential DoS attack. CVE-2022-34293
|
||||
* [Medium] Ciphertext side channel attack on ECC and DH operations. Users on systems where rogue agents can monitor memory use should update the version of wolfSSL and change private ECC keys. Thanks to Sen Deng from Southern University of Science and Technology (SUSTech) for the report.
|
||||
* [Medium] Public disclosure of a side channel vulnerability that has been fixed since wolfSSL version 5.1.0. When running on AMD there is the potential to leak private key information with ECDSA operations due to a ciphertext side channel attack. Users on AMD doing ECDSA operations with wolfSSL versions less than 5.1.0 should update their wolfSSL version used. Thanks to professor Yinqian Zhang from Southern University of Science and Technology (SUSTech), his Ph.D. student Mengyuan Li from The Ohio State University, and his M.S students Sen Deng and Yining Tang from SUStech along with other collaborators; Luca Wilke, Jan Wichelmann and Professor Thomas Eisenbarth from the University of Lubeck, Professor Shuai Wang from Hong Kong University of Science and Technology, Professor Radu Teodorescu from The Ohio State University, Huibo Wang, Kang Li and Yueqiang Cheng from Baidu Security and Shoumeng Yang from Ant Financial Services Group.
|
||||
CVE-2020-12966 https://www.amd.com/en/corporate/product-security/bulletin/amd-sb-1013 CVE-2021-46744 https://www.amd.com/en/corporate/product-security/bulletin/amd-sb-1033
|
||||
|
||||
|
||||
## New Feature Additions
|
||||
|
||||
### DTLS 1.3
|
||||
* Support for using the new DTLSv1.3 protocol was added
|
||||
* Enhancements to bundled examples for an event driven server with DTLS 1.3 was added
|
||||
### Ports
|
||||
* Update for the version of VxWorks supported, adding in support for version 6.x
|
||||
* Support for new DPP and EAP-TEAP/EAP-FAST in wpa_supplicant
|
||||
* Update for TSIP version support, adding support for version 1.15 for RX65N and RX72N
|
||||
* Improved TSIP build to handle having the options WOLFSSL_AEAD_ONLY defined or NO_AES_CBC defined
|
||||
* Added support for offloading TLS1.3 operations to Renesas RX boards with TSIP
|
||||
### Misc.
|
||||
* Constant time improvements due to development of new constant time tests
|
||||
* Initial translation of API headers to Japanese and expansion of Japanese help message support in example applications
|
||||
* Add support for some FPKI (Federal PKI) certificate cases, UUID, FASC-N, PIV extension for use with smart cards
|
||||
* Add support for parsing additional CSR attributes such as unstructured name and content type
|
||||
* Add support for Linux getrandom() when defining the macro WOLFSSL_GETRANDOM
|
||||
* Add TLS 1.2 ciphersuite ECDHE_PSK_WITH_AES_128_GCM_SHA256 from RFC 8442
|
||||
* Expand CAAM support with QNX to include i.MX8 boards and add AES-CTR support
|
||||
* Enhanced glitching protection by hardening the TLS encrypt operations
|
||||
|
||||
## Math and Performance
|
||||
|
||||
### SP Math Additions
|
||||
* Support for ARMv3, ARMv6 and ARMv7a
|
||||
- Changes and improvements to get SP building for armv7-a
|
||||
- Updated assembly for moving large immediate values on ARMv6
|
||||
- Support for architectures with no ldrd/strd and clz
|
||||
* Reworked generation using common asm ruby code for 32bit ARM
|
||||
* Enable wolfSSL SP math all by default (sp_int.c)
|
||||
* Update SP math all to not use sp_int_word when SQR_MUL_ASM is available
|
||||
### SP Math Fixes
|
||||
* Fixes for constant time with div function
|
||||
* Fix casting warnings for Windows builds and assembly changes to support XMM6-15 being non-volatile
|
||||
* Fix for div_word when not using div function
|
||||
* Fixes for user settings with SP ASM and ED/Curve25519 small
|
||||
* Additional Wycheproof tests ran and fixes
|
||||
* Fix for SP math ECC non-blocking to always check `hashLen`
|
||||
* Fix for SP math handling edge case with submod
|
||||
|
||||
## Improvements and Optimizations
|
||||
|
||||
### Compatibility Layer
|
||||
* Provide access to "Finished" messages outside of compatibility layer builds
|
||||
* Remove unneeded FIPS guard on wolfSSL_EVP_PKEY_derive
|
||||
* Fix control command issues with AES-GCM, control command EVP_CTRL_GCM_IV_GEN
|
||||
* Add support for importing private only EC key to a WOLFSSL_EVP_PKEY struct
|
||||
* Add support for more extensions to wolfSSL_X509_print_ex
|
||||
* Update for internal to DER (i2d) AIPs to move the buffer pointer when passed in and the operation is successful
|
||||
* Return subject and issuer X509_NAME object even when not set
|
||||
### Ports
|
||||
* Renesas RA6M4 example update and fixes
|
||||
* Support multi-threaded use cases with Renesas SCE protected mode and TSIP
|
||||
* Add a global variable for heap-hint for use with TSIP
|
||||
* Changes to support v5.3.0 cube pack for STM32
|
||||
* Use the correct mutex type for embOS
|
||||
* ESP-IDF build cleanup and enhancements, adding in note regarding ESP-IDF Version
|
||||
* Support for SEGGER embOS and emNET
|
||||
* Fix to handle WOLFSSL_DTLS macro in Micrium build
|
||||
### Build Options
|
||||
* Support for verify only and no-PSS builds updated
|
||||
* Add the enable options wolfssh (mapped to the existing –enable-ssh)
|
||||
* Remove WOLFSSL_ALT_NAMES restriction on notBefore/notAfter use in Cert struct
|
||||
* Move several more definitions outside the BUILDING_WOLFSSL gate with linux kernel module build
|
||||
* Modify --enable-openssh to not enable non-FIPS algos for FIPS builds
|
||||
* Remove the Python wrappers from wolfSSL source (use pip install instead of using wolfSSL with Python and our separate Python repository)
|
||||
* Add --enable-openldap option to configure.ac for building the OpenLDAP port
|
||||
* Resolve DTLS build to handle not having –enable-hrrcookie when not needed
|
||||
* Add an --enable-strongswan option to configure.ac for building the Strongswan port
|
||||
* Improve defaults for 64-bit BSDs in configure
|
||||
* Crypto only build can now be used openssl extra
|
||||
* Update ASN template build to properly handle WOLFSSL_CERT_EXT and HAVE_OID_ENCODING
|
||||
* Allow using 3DES and MD5 with FIPS 140-3, as they fall outside of the FIPS boundary
|
||||
* Add the build option --enable-dh=const which replaces setting the macro WOLFSSL_DH_CONST and now conditionally link to -lm as needed
|
||||
* Add the macro WOLFSSL_HOSTNAME_VERIFY_ALT_NAME_ONLY which is used to verify hostname/ip address using alternate name (SAN) only and does not use the common name
|
||||
* WOLFSSL_DTLS_NO_HVR_ON_RESUME macro added (off by default to favor more security). If defined, a DTLS server will not do a cookie exchange on successful client resumption: the resumption will be faster (one RTT less) and will consume less bandwidth (one ClientHello and one HelloVerifyRequest less). On the other hand, if a valid SessionID is collected, forged clientHello messages will consume resources on the server.
|
||||
* Misc.
|
||||
* Refactoring of some internal TLS functions to reduce the memory usage
|
||||
* Make old less secure TimingPadVerify implementation available
|
||||
* Add support for aligned data with clang LLVM
|
||||
* Remove subject/issuer email from the list of alt. Email names in the DecodedCerts struct
|
||||
* Zeroizing of pre-master secret buffer in TLS 1.3
|
||||
* Update to allow TLS 1.3 application server to send session ticket
|
||||
* Improve the sniffer asynchronous test case to support multiple concurrent streams
|
||||
* Clean up wolfSSL_clear() and add more logging
|
||||
* Update to not error out on bad CRL next date if using NO_VERIFY when parsing
|
||||
* Add an example C# PSK client
|
||||
* Add ESP-IDF WOLFSSL_ESP8266 setting for ESP8266 devices
|
||||
* Support longer sigalg list for post quantum use cases and inter-op with OQS's OpenSSL fork
|
||||
* Improve AES-GCM word implementation of GMULT to be constant time
|
||||
* Additional sanity check with Ed25519/Ed448, now defaults to assume public key is not trusted
|
||||
* Support PSK ciphersuites in benchmark apps
|
||||
* FIPS in core hash using SHA2-256 and SHA2-384
|
||||
* Add ability to store issuer name components when parsing a certificate
|
||||
* Make the critical extension flags in DecodedCert always available
|
||||
* Updates to the default values for basic constraint with X509’s
|
||||
* Support using RSA OAEP with no malloc and add additional sanity checks
|
||||
* Leverage async code paths to support WANT_WRITE while sending packet fragments
|
||||
* New azsphere example for continuous integration testing
|
||||
* Update RSA key generation function to handle pairwise consistency tests with static memory pools used
|
||||
* Resolve build time warning by passing in and checking output length with internal SetCurve function
|
||||
* Support DTLS bidirectional shutdown in the examples
|
||||
* Improve DTLS version negotiation and downgrade capability
|
||||
|
||||
### General Fixes
|
||||
* Fixes for STM32 Hash/PKA, add some missing mutex frees, and add an additional benchmark
|
||||
* Fix missing return checks in KSDK ED25519 code
|
||||
* Fix compilation warnings from IAR
|
||||
* Fixes for STM32U5/H7 hash/crypto support
|
||||
* Fix for using track memory feature with FreeRTOS
|
||||
* Fixup XSTR processing for MICRIUM
|
||||
* Update Zephyr fs.h path
|
||||
* DTLS fixes with WANT_WRITE simulations
|
||||
* Fixes for BER use with PKCS7 to have additional sanity checks and guards on edge cases
|
||||
* Fix to handle exceptional edge case with TFM mp_exptmod_ex
|
||||
* Fix for stack and heap measurements of a 32-bit build
|
||||
* Fix to allow enabling AES key wrap (direct) with KCAPI
|
||||
* Fix --enable-openssh FIPS detection syntax in configure.ac
|
||||
* Fix to move wolfSSL_ERR_clear_error outside gate for OPENSSL_EXTRA
|
||||
* Remove MCAPI project's dependency on zlib version
|
||||
* Only use __builtin_offset on supported GCC versions (4+)
|
||||
* Fix for c89 builds with using WOLF_C89
|
||||
* Fix 64bit postfix for constants building with powerpc
|
||||
* Fixed async Sniffer with TLS v1.3, async removal of `WC_HW_WAIT_E` and sanitize leak
|
||||
* Fix for QAT ECC to gate use of HW based on marker
|
||||
* Fix the supported version extension to always check minDowngrade
|
||||
* Fix for TLS v1.1 length sanity check for large messages
|
||||
* Fixes for loading a long DER/ASN.1 certificate chain
|
||||
* Fix to expose the RSA public DER export functions with certgen
|
||||
* Fixes for building with small version of SHA3
|
||||
* Fix configure with WOLFSSL_WPAS_SMALL
|
||||
* Fix to free PKCS7 recipient list in error cases
|
||||
* Sanity check to confirm ssl->hsHashes is not NULL before attempting to dereference it
|
||||
* Clear the leftover byte count in Aes struct when setting IV
|
||||
|
||||
# wolfSSL Release 5.3.0 (May 3rd, 2022)
|
||||
|
||||
Release 5.3.0 of wolfSSL embedded TLS has bug fixes and new features including:
|
||||
|
||||
## New Feature Additions
|
||||
|
||||
### Ports
|
||||
* Updated support for Stunnel to version 5.61
|
||||
* Add i.MX8 NXP SECO use for secure private ECC keys and expand cryptodev-linux for use with the RSA/Curve25519 with the Linux CAAM driver
|
||||
* Allow encrypt then mac with Apache port
|
||||
* Update Renesas TSIP version to 1.15 on GR-ROSE and certificate signature data for TSIP / SCE example
|
||||
* Add IAR MSP430 example, located in IDE/IAR-MSP430 directory
|
||||
* Add support for FFMPEG with the enable option `--enable-ffmpeg`, FFMPEG is used for recording and converting video and audio (https://ffmpeg.org/)
|
||||
* Update the bind port to version 9.18.0
|
||||
|
||||
### Post Quantum
|
||||
* Add Post-quantum KEM benchmark for STM32
|
||||
* Enable support for using post quantum algorithms with embedded STM32 boards and port to STM32U585
|
||||
|
||||
### Compatibility Layer Additions
|
||||
* Add port to support libspdm (https://github.com/DMTF/libspdm/blob/main/README.md), compatibility functions added for the port were:
|
||||
- ASN1_TIME_compare
|
||||
- DH_new_by_nid
|
||||
- OBJ_length, OBJ_get0_data,
|
||||
- EVP layer ChaCha20-Poly1305, HKDF
|
||||
- EC_POINT_get_affine_coordinates
|
||||
- EC_POINT_set_affine_coordinates
|
||||
* Additional functions added were:
|
||||
- EC_KEY_print_fp
|
||||
- EVP_PKEY_paramgen
|
||||
- EVP_PKEY_sign/verify functionality
|
||||
- PEM_write_RSAPublicKey
|
||||
- PEM_write_EC_PUBKEY
|
||||
- PKCS7_sign
|
||||
- PKCS7_final
|
||||
- SMIME_write_PKCS7
|
||||
- EC_KEY/DH_up_ref
|
||||
- EVP_DecodeBlock
|
||||
- EVP_EncodeBlock
|
||||
- EC_KEY_get_conv_form
|
||||
- BIO_eof
|
||||
- Add support for BIO_CTRL_SET and BIO_CTRL_GET
|
||||
* Add compile time support for the type SSL_R_NULL_SSL_METHOD_PASSED
|
||||
* Enhanced X509_NAME_print_ex() to support RFC5523 basic escape
|
||||
* More checks on OPENSSL_VERSION_NUMBER for API prototype differences
|
||||
* Add extended key usage support to wolfSSL_X509_set_ext
|
||||
* SSL_VERIFY_FAIL_IF_NO_PEER_CERT now can also connect with compatibility layer enabled and a TLS 1.3 PSK connection is used
|
||||
* Improve wolfSSL_BN_rand to handle non byte boundaries and top/bottom parameters
|
||||
* Changed X509_V_ERR codes to better match OpenSSL values used
|
||||
* Improve wolfSSL_i2d_X509_name to allow for a NULL input in order to get the expected resulting size
|
||||
* Enhance the smallstack build to reduce stack size farther when built with compatibility layer enabled
|
||||
|
||||
### Misc.
|
||||
* Sniffer asynchronous support addition, handling of DH shared secret and tested with Intel QuickAssist
|
||||
* Added in support for OCSP with IPv6
|
||||
* Enhance SP (single precision) optimizations for use with the ECC P521
|
||||
* Add new public API wc_CheckCertSigPubKey() for use to easily check the signature of a certificate given a public key buffer
|
||||
* Add CSR (Certificate Signing Request) userId support in subject name
|
||||
* Injection and parsing of custom extensions in X.509 certificates
|
||||
* Add WOLF_CRYPTO_CB_ONLY_RSA and WOLF_CRYPTO_CB_ONLY_ECC to reduce code size if using only crypto callback functions with RSA and ECC
|
||||
* Created new --enable-engine configure flag used to build wolfSSL for use with wolfEngine
|
||||
* With TLS 1.3 PSK, when WOLFSSL_PSK_MULTI_ID_PER_CS is defined multiple IDs for a cipher suite can be handled
|
||||
* Added private key id/label support with improving the PK (Public Key) callbacks
|
||||
* Support for Intel QuickAssist ECC KeyGen acceleration
|
||||
* Add the function wolfSSL_CTX_SetCertCbCtx to set user context for certificate call back
|
||||
* Add the functions wolfSSL_CTX_SetEccSignCtx(WOLFSSL_CTX* ctx, void *userCtx) and wolfSSL_CTX_GetEccSignCtx(WOLFSSL_CTX* ctx) for setting and getting a user context
|
||||
* wolfRand for AMD --enable-amdrand
|
||||
|
||||
## Fixes
|
||||
### PORT Fixes
|
||||
* KCAPI memory optimizations and page alignment fixes for ECC, AES mode fixes and reduction to memory usage
|
||||
* Add the new kdf.c file to the TI-RTOS build
|
||||
* Fix wait-until-done in RSA hardware primitive acceleration of ESP-IDF port
|
||||
* IOTSafe workarounds when reading files with ending 0’s and for ECC signatures
|
||||
|
||||
### Math Library Fixes
|
||||
* Sanity check with SP math that ECC points ordinates are not greater than modulus length
|
||||
* Additional sanity checks that _sp_add_d does not error due to overflow
|
||||
* Wycheproof fixes, testing integration, and fixes for AVX / AArch64 ASM edge case tests
|
||||
* TFM fp_div_2_ct rework to avoid potential overflow
|
||||
|
||||
### Misc.
|
||||
* Fix for PKCS#7 with Crypto Callbacks
|
||||
* Fix for larger curve sizes with deterministic ECC sign
|
||||
* Fixes for building wolfSSL alongside openssl using --enable-opensslcoexist
|
||||
* Fix for compatibility layer handling of certificates with SHA256 SKID (Subject Key ID)
|
||||
* Fix for wolfSSL_ASN1_TIME_diff erroring out on a return value of 0 from mktime
|
||||
* Remove extra padding when AES-CBC encrypted with PemToDer
|
||||
* Fixes for TLS v1.3 early data with async.
|
||||
* Fixes for async disables around the DevCopy calls
|
||||
* Fixes for Windows AES-NI with clang compiler
|
||||
* Fix for handling the detection of processing a plaintext TLS alert packet
|
||||
* Fix for potential memory leak in an error case with TLSX supported groups
|
||||
* Sanity check on `input` size in `DecodeNsCertType`
|
||||
* AES-GCM stack alignment fixes with assembly code written for AVX/AVX2
|
||||
* Fix for PK callbacks with server side and setting a public key
|
||||
|
||||
## Improvements/Optimizations
|
||||
### Build Options and Warnings
|
||||
* Added example user settings template for FIPS v5 ready
|
||||
* Automake file touch cleanup for use with Yocto devtool
|
||||
* Allow disabling forced 'make clean' at the end of ./configure by using --disable-makeclean
|
||||
* Enable TLS 1.3 early data when specifying `--enable-all` option
|
||||
* Disable PK Callbacks with JNI FIPS builds
|
||||
* Add a FIPS cert 3389 ready option, this is the fips-ready build
|
||||
* Support (no)inline with Wind River Diab compiler
|
||||
* ECDH_compute_key allow setting of globalRNG with FIPS 140-3
|
||||
* Add logic equivalent to configure.ac in settings.h for Poly1305
|
||||
* Fixes to support building opensslextra with SP math
|
||||
* CPP protection for extern references to x86_64 asm code
|
||||
* Updates and enhancements for Espressif ESP-IDF wolfSSL setup_win.bat
|
||||
* Documentation improvements with auto generation
|
||||
* Fix reproducible-build for working an updated version of libtool, version 2.4.7
|
||||
* Fixes for Diab C89 and armclang
|
||||
* Fix `mcapi_test.c` to include the settings.h before crypto.h
|
||||
* Update and handle builds with NO_WOLFSSL_SERVER and NO_WOLFSSL_CLIENT
|
||||
* Fix for some macro defines with FIPS 140-3 build so that RSA_PKCS1_PSS_PADDING can be used with RSA sign/verify functions
|
||||
|
||||
### Math Libraries
|
||||
* Add RSA/DH check for even modulus
|
||||
* Enhance TFM math to handle more alloc failure cases gracefully
|
||||
* SP ASM performance improvements mostly around AArch64
|
||||
* SP ASM improvements for additional cache attack resistance
|
||||
* Add RSA check for small difference between p and q
|
||||
* 6-8% performance increase with ECC operations using SP int by improving the Montgomery Reduction
|
||||
|
||||
### Testing and Validation
|
||||
* All shell scripts in source tree now tested for correctness using shellcheck and bash -n
|
||||
* Added build testing under gcc-12 and -std=c++17 and fixed warnings
|
||||
* TLS 1.3 script test improvement to wait for server to write file
|
||||
* Unit tests for ECC r/s zeroness handling
|
||||
* CI server was expanded with a very “quiet” machine that can support multiple ContantTime tests ensuring ongoing mitigation against side-channel timing based attacks. Algorithms being assessed on this machine are: AES-CBC, AES-GCM, CHACHA20, ECC, POLY1305, RSA, SHA256, SHA512, CURVE25519.
|
||||
* Added new multi configuration windows builds to CI testing for greater testing coverage of windows use-cases
|
||||
|
||||
### Misc.
|
||||
* Support for ECC import to check validity of key on import even if one of the coordinates (x or y) is 0
|
||||
* Modify example app to work with FreeRTOS+IoT
|
||||
* Ease of access for cert used for verifying a PKCS#7 bundle
|
||||
* Clean up Visual Studio output and intermediate directories
|
||||
* With TLS 1.3 fail immediately if a server sends empty certificate message
|
||||
* Enhance the benchmark application to support multi-threaded testing
|
||||
* Improvement for `wc_EccPublicKeyToDer` to not overestimate the buffer size required
|
||||
* Fix to check if `wc_EccPublicKeyToDer` has enough output buffer space
|
||||
* Fix year 2038 problem in wolfSSL_ASN1_TIME_diff
|
||||
* Various portability improvements (Time, DTLS epoch size, IV alloc)
|
||||
* Prefer status_request_v2 over status_request when both are present
|
||||
* Add separate "struct stat" definition XSTATSTRUCT to make overriding XSTAT easier for portability
|
||||
* With SipHash replace gcc specific ASM instruction with generic
|
||||
* Don't force a ECC CA when a custom CA is passed with `-A`
|
||||
* Add peer authentication failsafe for TLS 1.2 and below
|
||||
* Improve parsing of UID from subject and issuer name with the compatibility layer by
|
||||
* Fallback to full TLS handshake if session ticket fails
|
||||
* Internal refactoring of code to reduce ssl.c file size
|
||||
|
||||
# wolfSSL Release 5.2.0 (Feb 21, 2022)
|
||||
|
||||
## Vulnerabilities
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
# ESP-IDF port
|
||||
|
||||
NOTICE: These Espressif examples have been created and tested with the latest stable release branch of
|
||||
[ESP-IDF V4](https://docs.espressif.com/projects/esp-idf/en/v4.4.1/esp32/get-started/index.html)
|
||||
and have not yet been upgraded to the master branch V5.
|
||||
See the latest [migration guides](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/migration-guides/index.html).
|
||||
|
||||
## Overview
|
||||
ESP-IDF development framework with wolfSSL by setting *WOLFSSL_ESPIDF* definition
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ static void set_time()
|
||||
/* please update the time if seeing unknown failure when loading cert. */
|
||||
/* this could cause TLS communication failure due to time expiration */
|
||||
/* incleasing 31536000 seconds is close to spend 356 days. */
|
||||
utctime.tv_sec = 1619650800; /* dummy time: Wed April 28 23:00:00 2021 */
|
||||
utctime.tv_sec = 1645797600; /* dummy time: Fri 25 Feb 2022 02:00:00 2022 */
|
||||
utctime.tv_usec = 0;
|
||||
tz.tz_minuteswest = 0;
|
||||
tz.tz_dsttime = 0;
|
||||
|
||||
@@ -51,7 +51,7 @@ static void set_time()
|
||||
/* please update the time if seeing unknown failure when loading cert. */
|
||||
/* this could cause TLS communication failure due to time expiration */
|
||||
/* incleasing 31536000 seconds is close to spend 356 days. */
|
||||
utctime.tv_sec = 1619650800; /* dummy time: Wed April 28 23:00:00 2021 */
|
||||
utctime.tv_sec = 1645797600; /* dummy time: Fri 25 Feb 2022 02:00:00 2022 */
|
||||
utctime.tv_usec = 0;
|
||||
tz.tz_minuteswest = 0;
|
||||
tz.tz_dsttime = 0;
|
||||
|
||||
@@ -38,10 +38,14 @@ if(IS_DIRECTORY ${IDF_PATH}/components/cryptoauthlib)
|
||||
endif()
|
||||
|
||||
set(COMPONENT_SRCEXCLUDE
|
||||
"wolfcrypt/src/aes_asm.S"
|
||||
"wolfcrypt/src/evp.c"
|
||||
"wolfcrypt/src/misc.c"
|
||||
"src/bio.c"
|
||||
"./src/bio.c"
|
||||
"./src/conf.c"
|
||||
"./src/misc.c"
|
||||
"./src/pk.c"
|
||||
"./src/x509.c"
|
||||
"./src/x509_str.c"
|
||||
"./wolfcrypt/src/evp.c"
|
||||
"./wolfcrypt/src/misc.c"
|
||||
)
|
||||
|
||||
register_component()
|
||||
|
||||
@@ -23,10 +23,10 @@ WOLFSSLLIB_TRG_DIR=${IDF_PATH}/components/wolfssl
|
||||
WOLFSSLEXP_TRG_DIR=${IDF_PATH}/examples/protocols
|
||||
|
||||
if [ "$1" == "--verbose" ]; then
|
||||
WOLFSSSL_SETUP_VERBOSE=true
|
||||
WOLFSSL_SETUP_VERBOSE=true
|
||||
fi
|
||||
|
||||
if [ "${WOLFSSSL_SETUP_VERBOSE}" == "true" ]; then
|
||||
if [ "${WOLFSSL_SETUP_VERBOSE}" == "true" ]; then
|
||||
echo Verbose mode on!
|
||||
echo BASEDIR=${BASEDIR}
|
||||
echo SCRIPTDIR=${SCRIPTDIR}
|
||||
@@ -47,7 +47,7 @@ pushd $IDF_PATH > /dev/null
|
||||
echo "Copy files into $IDF_PATH"
|
||||
|
||||
# Remove/Create directories
|
||||
if [ "${WOLFSSSL_SETUP_VERBOSE}" == "true" ]; then
|
||||
if [ "${WOLFSSL_SETUP_VERBOSE}" == "true" ]; then
|
||||
echo "Remove/Create directories..."
|
||||
fi
|
||||
|
||||
@@ -67,7 +67,7 @@ pushd ${BASEDIR} > /dev/null # WOLFSSL TOP DIR
|
||||
|
||||
# copying ... files in src/ into $WOLFSSLLIB_TRG_DIR/src
|
||||
|
||||
if [ "${WOLFSSSL_SETUP_VERBOSE}" == "true" ]; then
|
||||
if [ "${WOLFSSL_SETUP_VERBOSE}" == "true" ]; then
|
||||
echo "Copying ... files in src/ into \$WOLFSSLLIB_TRG_DIR/srcs ..."
|
||||
fi
|
||||
|
||||
@@ -86,7 +86,7 @@ ${CPDCMD} -r ./wolfssl/openssl/*.h ${WOLFSSLLIB_TRG_DIR}/wolfssl/openssl/
|
||||
${CPDCMD} -r ./wolfssl/wolfcrypt ${WOLFSSLLIB_TRG_DIR}/wolfssl/
|
||||
|
||||
# user_settings.h
|
||||
if [ "${WOLFSSSL_SETUP_VERBOSE}" == "true" ]; then
|
||||
if [ "${WOLFSSL_SETUP_VERBOSE}" == "true" ]; then
|
||||
echo "Copying user_settings.h to ${WOLFSSLLIB_TRG_DIR}/include/"
|
||||
fi
|
||||
|
||||
@@ -104,7 +104,7 @@ ${CPDCMD} ./libs/component.mk ${WOLFSSLLIB_TRG_DIR}/
|
||||
pushd ${BASEDIR} > /dev/null # WOLFSSL TOP DIR
|
||||
|
||||
# Benchmark program
|
||||
if [ "${WOLFSSSL_SETUP_VERBOSE}" == "true" ]; then
|
||||
if [ "${WOLFSSL_SETUP_VERBOSE}" == "true" ]; then
|
||||
echo ""
|
||||
fi
|
||||
${RMDCMD} ${WOLFSSLEXP_TRG_DIR}/wolfssl_benchmark/
|
||||
@@ -119,7 +119,7 @@ ${CPDCMD} -r ${WOLFSSL_ESPIDFDIR}/examples/wolfssl_benchmark/* ${WOLFSSLEXP_TRG_
|
||||
${CPDCMD} -r ${WOLFSSL_ESPIDFDIR}/examples/wolfssl_benchmark/main/* ${WOLFSSLEXP_TRG_DIR}/wolfssl_benchmark/main/
|
||||
|
||||
# Crypt Test program
|
||||
if [ "${WOLFSSSL_SETUP_VERBOSE}" == "true" ]; then
|
||||
if [ "${WOLFSSL_SETUP_VERBOSE}" == "true" ]; then
|
||||
echo "Copying wolfssl_test to ${WOLFSSLEXP_TRG_DIR}/wolfssl_test/main/"
|
||||
fi
|
||||
${RMDCMD} ${WOLFSSLEXP_TRG_DIR}/wolfssl_test/
|
||||
@@ -131,7 +131,7 @@ ${CPDCMD} -r ${WOLFSSL_ESPIDFDIR}/examples/wolfssl_test/* ${WOLFSSLEXP_TRG_DIR}/
|
||||
${CPDCMD} -r ${WOLFSSL_ESPIDFDIR}/examples/wolfssl_test/main/* ${WOLFSSLEXP_TRG_DIR}/wolfssl_test/main/
|
||||
|
||||
# TLS Client program
|
||||
if [ "${WOLFSSSL_SETUP_VERBOSE}" == "true" ]; then
|
||||
if [ "${WOLFSSL_SETUP_VERBOSE}" == "true" ]; then
|
||||
echo "Copying TLS Client program to ${WOLFSSLEXP_TRG_DIR}/wolfssl_client/..."
|
||||
fi
|
||||
${RMDCMD} ${WOLFSSLEXP_TRG_DIR}/wolfssl_client/
|
||||
@@ -144,7 +144,7 @@ ${CPDCMD} -r ${WOLFSSL_ESPIDFDIR}/examples/wolfssl_client/main/* ${WOLFSSLEXP_TR
|
||||
${CPDCMD} -r ${WOLFSSL_ESPIDFDIR}/examples/wolfssl_client/main/include/* ${WOLFSSLEXP_TRG_DIR}/wolfssl_client/main/include/
|
||||
|
||||
# TLS Server program
|
||||
if [ "${WOLFSSSL_SETUP_VERBOSE}" == "true" ]; then
|
||||
if [ "${WOLFSSL_SETUP_VERBOSE}" == "true" ]; then
|
||||
echo "Copying TLS Server program to ${WOLFSSLEXP_TRG_DIR}/wolfssl_server/..."
|
||||
fi
|
||||
${RMDCMD} ${WOLFSSLEXP_TRG_DIR}/wolfssl_server/
|
||||
@@ -158,7 +158,7 @@ ${CPDCMD} -r ${WOLFSSL_ESPIDFDIR}/examples/wolfssl_server/main/include/* ${WOLFS
|
||||
|
||||
popd > /dev/null #
|
||||
|
||||
if [ "${WOLFSSSL_SETUP_VERBOSE}" == "true" ]; then
|
||||
if [ "${WOLFSSL_SETUP_VERBOSE}" == "true" ]; then
|
||||
echo "Copy complete!"
|
||||
fi
|
||||
|
||||
|
||||
@@ -1,82 +1,398 @@
|
||||
@echo off
|
||||
REM Expect the script at /path/to/wolfssl/IDE/Espressif/ESP-IDF/
|
||||
|
||||
if NOT EXIST "setup.sh" (
|
||||
echo "Please run this script at /path/to/wolfssl/IDE/Espressif/ESP-IDF/
|
||||
goto exit
|
||||
::******************************************************************************************************
|
||||
::******************************************************************************************************
|
||||
echo;
|
||||
echo wolfSSL Windows Setup. Version 1.0a
|
||||
echo;
|
||||
echo This utility will copy a static snapshot of wolfSSL files to the ESP32-IDF component directory.
|
||||
echo;
|
||||
echo If you wish to keep your component library fresh with git pull, consider hard link with mklink.
|
||||
echo;
|
||||
echo "mklink [[/d] | [/h] | [/j]] <link> <target>"
|
||||
echo;
|
||||
::******************************************************************************************************
|
||||
::******************************************************************************************************
|
||||
SET COPYERROR=false
|
||||
|
||||
:: if there's a setup.sh, we are probably starting in the right place.
|
||||
if NOT EXIST "setup.sh" (
|
||||
echo Please run this script at /path/to/wolfssl/IDE/Espressif/ESP-IDF/
|
||||
goto :ERR
|
||||
)
|
||||
|
||||
if "%IDF_PATH%" == "" (
|
||||
echo "Please launch the script from ESP-IDF command prompt."
|
||||
goto exit
|
||||
:: if there's also a default user_settings.h, we are very likely starting in the right place.
|
||||
if NOT EXIST "user_settings.h" (
|
||||
echo Please run this script at /path/to/wolfssl/IDE/Espressif/ESP-IDF/
|
||||
goto :ERR
|
||||
)
|
||||
|
||||
:: see if there was a parameter passed for a specific EDP-IDF directory
|
||||
:: this may be different than the standard ESP-IDF environment (e.g. VisualGDB)
|
||||
if not "%1" == "" (
|
||||
if not exist "%1" (
|
||||
echo "ERROR: optional directory was specified, but not found: %1"
|
||||
goto :ERR
|
||||
)
|
||||
|
||||
SET IDF_PATH=%1
|
||||
echo Using specified IDF_PATH: %IDF_PATH%
|
||||
)
|
||||
|
||||
:: if no IDF_PATH is found, we don't know what to do. Go exit with error.
|
||||
if "%IDF_PATH%" == "" (
|
||||
echo Please launch the script from ESP-IDF command prompt,
|
||||
echo or set your desired IDF_PATH environment variable,
|
||||
echo or pass a parameter to your directory, such as for VisualGDB with ESP-IDF 4.4:
|
||||
echo;
|
||||
echo .\setup_win.bat C:\SysGCC\esp32\esp-idf\v4.4
|
||||
echo;
|
||||
goto :ERR
|
||||
)
|
||||
|
||||
:: Here we go!
|
||||
:: setup some path variables
|
||||
echo;
|
||||
|
||||
set SCRIPTDIR=%CD%
|
||||
set BASEDIR=%SCRIPTDIR%\..\..\..\
|
||||
set BASEDIR=%SCRIPTDIR%\..\..\..
|
||||
set WOLFSSL_ESPIDFDIR=%BASEDIR%\IDE\Espressif\ESP-IDF
|
||||
set WOLFSSLLIB_TRG_DIR=%IDF_PATH%\components\wolfssl
|
||||
set WOLFSSLEXP_TRG_DIR=%IDF_PATH%\examples\protocols
|
||||
|
||||
echo Copy files into %IDF_PATH%
|
||||
rem Remove/Create directories
|
||||
rmdir /S/Q %WOLFSSLLIB_TRG_DIR%
|
||||
mkdir %WOLFSSLLIB_TRG_DIR%
|
||||
mkdir %WOLFSSLLIB_TRG_DIR%\src
|
||||
mkdir %WOLFSSLLIB_TRG_DIR%\wolfcrypt\src
|
||||
mkdir %WOLFSSLLIB_TRG_DIR%\wolfssl
|
||||
mkdir %WOLFSSLLIB_TRG_DIR%\wolfssl\openssl
|
||||
mkdir %WOLFSSLLIB_TRG_DIR%\test
|
||||
mkdir %WOLFSSLLIB_TRG_DIR%\include
|
||||
echo Using SCRIPTDIR = %SCRIPTDIR%
|
||||
echo Using BASEDIR = %BASEDIR%
|
||||
echo Using WOLFSSL_ESPIDFDIR = %WOLFSSL_ESPIDFDIR%
|
||||
echo Using WOLFSSLLIB_TRG_DIR = %WOLFSSLLIB_TRG_DIR%
|
||||
echo Using WOLFSSLEXP_TRG_DIR = %WOLFSSLEXP_TRG_DIR%
|
||||
|
||||
echo;
|
||||
echo Equivalalent destination path:
|
||||
dir %WOLFSSL_ESPIDFDIR%\*.xyzzy 2> nul | findstr \
|
||||
|
||||
echo;
|
||||
echo Equivalalent source directory paths:
|
||||
:: show the path of the equivalent %VALUE% (search for files that don't exist, supress error, and look for string with "\")
|
||||
dir %BASEDIR%\*.xyzzy 2> nul | findstr \
|
||||
dir %WOLFSSLLIB_TRG_DIR%\*.xyzzy 2> nul | findstr \
|
||||
dir %WOLFSSLEXP_TRG_DIR%\*.xyzzy 2> nul | findstr \
|
||||
|
||||
:: set the FileStamp variable to the current date: YYMMYY_HHMMSS
|
||||
:: the simplest method, to use existing TIME ad DATE variables:
|
||||
:: date = Thu 09/17/2015
|
||||
:: time = 11:13:15.47
|
||||
:: 012345678901234567890
|
||||
::
|
||||
:: There is no leading zero for single digit hours (e.g. 9:00am), so we need to manually include the zero
|
||||
:: here |
|
||||
if "%TIME:~0,1%" == " " set FileStamp=%DATE:~12,2%%DATE:~7,2%%DATE:~4,2%_0%TIME:~1,1%%TIME:~3,2%%TIME:~6,2%
|
||||
|
||||
:: otherwise, if a space not found before the digit, it is a 2 digit hour, so no extract zero is needed
|
||||
if NOT "%TIME:~0,1%" == " " set FileStamp=%DATE:~12,2%%DATE:~7,2%%DATE:~4,2%_%TIME:~0,2%%TIME:~3,2%%TIME:~6,2%
|
||||
|
||||
:: Backup existing user settings
|
||||
if exist %WOLFSSLLIB_TRG_DIR%\include\config.h (
|
||||
echo;
|
||||
echo Saving: %WOLFSSLLIB_TRG_DIR%\include\config.h
|
||||
echo to: %SCRIPTDIR%\config_h_%FileStamp%.bak
|
||||
copy %WOLFSSLLIB_TRG_DIR%\include\config.h %SCRIPTDIR%\config_h_%FileStamp%.bak
|
||||
echo;
|
||||
)
|
||||
|
||||
if exist %WOLFSSL_ESPIDFDIR%\user_settings.h (
|
||||
echo Saving: %WOLFSSLLIB_TRG_DIR%\include\user_settings.h
|
||||
echo to: %SCRIPTDIR%\user_settings_h_%FileStamp%.bak
|
||||
copy %WOLFSSLLIB_TRG_DIR%\include\user_settings.h %SCRIPTDIR%\user_settings_h_%FileStamp%.bak
|
||||
echo;
|
||||
)
|
||||
|
||||
|
||||
::******************************************************************************************************
|
||||
:: check if there's already an existing %WOLFSSLLIB_TRG_DIR% and confirm removal
|
||||
::******************************************************************************************************
|
||||
if exist %WOLFSSLLIB_TRG_DIR% (
|
||||
echo;
|
||||
echo WARNING: Existing files found in %WOLFSSLLIB_TRG_DIR%
|
||||
echo;
|
||||
|
||||
:: clear any prior errorlevel
|
||||
call;
|
||||
choice /c YN /m "Delete files and proceed with install in %WOLFSSLLIB_TRG_DIR% "
|
||||
if errorlevel 2 GOTO :NODELETE
|
||||
GOTO :PURGE
|
||||
|
||||
|
||||
echo;
|
||||
echo Ready to copy files into %IDF_PATH%
|
||||
|
||||
|
||||
::******************************************************************************************************
|
||||
:NODELETE
|
||||
::******************************************************************************************************
|
||||
:: clear any prior errorlevel
|
||||
echo;
|
||||
call;
|
||||
choice /c YN /m "Refresh files %WOLFSSLLIB_TRG_DIR% (there will be a prompt to keep or overwrite user_settings and config) "
|
||||
if errorlevel 2 GOTO :NOCOPY
|
||||
GOTO :REFRESH
|
||||
)
|
||||
|
||||
|
||||
::******************************************************************************************************
|
||||
:PURGE
|
||||
::******************************************************************************************************
|
||||
:: purge existing directory
|
||||
|
||||
if exist %WOLFSSLLIB_TRG_DIR% (
|
||||
echo;
|
||||
echo Removing %WOLFSSLLIB_TRG_DIR%
|
||||
rmdir %WOLFSSLLIB_TRG_DIR% /S /Q
|
||||
if exist %WOLFSSLLIB_TRG_DIR% (
|
||||
SET COPYERROR=true
|
||||
echo;
|
||||
echo WARNING: Failed to remove %WOLFSSLLIB_TRG_DIR%
|
||||
echo;
|
||||
echo Check permissions, open files, read-only attributes, etc.
|
||||
echo;
|
||||
)
|
||||
echo;
|
||||
) else (
|
||||
echo;
|
||||
echo Prior %WOLFSSLLIB_TRG_DIR% not found, installing fresh.
|
||||
echo;
|
||||
)
|
||||
|
||||
::******************************************************************************************************
|
||||
:REFRESH
|
||||
::******************************************************************************************************
|
||||
if not exist %WOLFSSLLIB_TRG_DIR% mkdir %WOLFSSLLIB_TRG_DIR%
|
||||
if not exist %WOLFSSLLIB_TRG_DIR%\src mkdir %WOLFSSLLIB_TRG_DIR%\src
|
||||
if not exist %WOLFSSLLIB_TRG_DIR%\wolfcrypt\src mkdir %WOLFSSLLIB_TRG_DIR%\wolfcrypt\src
|
||||
if not exist %WOLFSSLLIB_TRG_DIR%\wolfssl mkdir %WOLFSSLLIB_TRG_DIR%\wolfssl
|
||||
if not exist %WOLFSSLLIB_TRG_DIR%\wolfssl\openssl mkdir %WOLFSSLLIB_TRG_DIR%\wolfssl\openssl
|
||||
if not exist %WOLFSSLLIB_TRG_DIR%\test mkdir %WOLFSSLLIB_TRG_DIR%\test
|
||||
if not exist %WOLFSSLLIB_TRG_DIR%\include mkdir %WOLFSSLLIB_TRG_DIR%\include
|
||||
|
||||
|
||||
rem copying ... files in src/ into $WOLFSSLLIB_TRG_DIR%/src
|
||||
xcopy /Y/Q %BASEDIR%\src\*.c %WOLFSSLLIB_TRG_DIR%\src\
|
||||
xcopy /Y/Q %BASEDIR%\wolfcrypt\src\*.c %WOLFSSLLIB_TRG_DIR%\wolfcrypt\src
|
||||
xcopy /Y/Q %BASEDIR%\wolfcrypt\src\*.i %WOLFSSLLIB_TRG_DIR%\wolfcrypt\src
|
||||
xcopy /E/Y/Q %BASEDIR%\wolfcrypt\src\port %WOLFSSLLIB_TRG_DIR%\wolfcrypt\src\port\
|
||||
xcopy /E/Y/Q %BASEDIR%\wolfcrypt\test %WOLFSSLLIB_TRG_DIR%\wolfcrypt\test\
|
||||
rem Copy dummy test_paths.h to handle the case configure hasn't yet executed
|
||||
echo F |xcopy /E/Y %WOLFSSL_ESPIDFDIR%\dummy_test_paths.h %WOLFSSLLIB_TRG_DIR%\wolfcrypt\test\test_paths.h
|
||||
xcopy /E/Y/Q %WOLFSSL_ESPIDFDIR%\dummy_test_paths.h %WOLFSSLIB_TRG_DIR%\wolfcrypt\test\test_paths.h
|
||||
xcopy /E/Y/Q %BASEDIR%\wolfcrypt\benchmark %WOLFSSLLIB_TRG_DIR%\wolfcrypt\benchmark\
|
||||
xcopy /Y/Q %BASEDIR%\wolfssl\*.h %WOLFSSLLIB_TRG_DIR%\wolfssl\
|
||||
xcopy /Y/Q %BASEDIR%\wolfssl\openssl\*.h %WOLFSSLLIB_TRG_DIR%\wolfssl\openssl\
|
||||
xcopy /E/Y/Q %BASEDIR%\wolfssl\wolfcrypt %WOLFSSLLIB_TRG_DIR%\wolfssl\wolfcrypt\
|
||||
echo;
|
||||
echo Copying files to %WOLFSSLLIB_TRG_DIR%\src\
|
||||
xcopy %BASEDIR%\src\*.c %WOLFSSLLIB_TRG_DIR%\src\ /S /E /Q /Y
|
||||
if %errorlevel% NEQ 0 SET COPYERROR=true
|
||||
|
||||
rem user_settings.h
|
||||
xcopy /F/Q %WOLFSSL_ESPIDFDIR%\user_settings.h %WOLFSSLLIB_TRG_DIR%\include\
|
||||
echo F |xcopy /F/Q %WOLFSSL_ESPIDFDIR%\dummy_config_h %WOLFSSLLIB_TRG_DIR%\include\config.h
|
||||
echo;
|
||||
echo Copying src\*.c files to %WOLFSSLLIB_TRG_DIR%\wolfcrypt\src
|
||||
xcopy %BASEDIR%\wolfcrypt\src\*.c %WOLFSSLLIB_TRG_DIR%\wolfcrypt\src /S /E /Q /Y
|
||||
if %errorlevel% NEQ 0 SET COPYERROR=true
|
||||
|
||||
rem unit test app
|
||||
xcopy /E/Y/Q %WOLFSSL_ESPIDFDIR%\test %WOLFSSLLIB_TRG_DIR%\test\
|
||||
xcopy /F/Q %WOLFSSL_ESPIDFDIR%\libs\CMakeLists.txt %WOLFSSLLIB_TRG_DIR%\
|
||||
xcopy /F/Q %WOLFSSL_ESPIDFDIR%\libs\component.mk %WOLFSSLLIB_TRG_DIR%\
|
||||
echo;
|
||||
echo Copying src\*.i files to %WOLFSSLLIB_TRG_DIR%\wolfcrypt\src
|
||||
xcopy %BASEDIR%\wolfcrypt\src\*.i %WOLFSSLLIB_TRG_DIR%\wolfcrypt\src /S /E /Q /Y
|
||||
if %errorlevel% NEQ 0 SET COPYERROR=true
|
||||
|
||||
rem Benchmark program
|
||||
rmdir /S/Q %WOLFSSLEXP_TRG_DIR%\wolfssl_benchmark\
|
||||
mkdir %WOLFSSLEXP_TRG_DIR%\wolfssl_benchmark\main\
|
||||
echo;
|
||||
echo Copying files to %WOLFSSLLIB_TRG_DIR%\wolfcrypt\src\port\
|
||||
xcopy %BASEDIR%\wolfcrypt\src\port %WOLFSSLLIB_TRG_DIR%\wolfcrypt\src\port\ /S /E /Q /Y
|
||||
if %errorlevel% NEQ 0 SET COPYERROR=true
|
||||
|
||||
echo F |xcopy /E/Y %BASEDIR%\wolfcrypt\benchmark\benchmark.h %BASEDIR%\IDE\Espressif\ESP-IDF\examples\wolfssl_benchmark\main\benchmark.h
|
||||
echo F |xcopy /E/Y %BASEDIR%\wolfcrypt\benchmark\benchmark.c %BASEDIR%\IDE\Espressif\ESP-IDF\examples\wolfssl_benchmark\main\benchmark.c
|
||||
echo;
|
||||
echo Copying files to %WOLFSSLLIB_TRG_DIR%\wolfcrypt\test\
|
||||
xcopy %BASEDIR%\wolfcrypt\test %WOLFSSLLIB_TRG_DIR%\wolfcrypt\test\ /S /E /Q /Y
|
||||
if %errorlevel% NEQ 0 SET COPYERROR=true
|
||||
|
||||
xcopy /F/Q %BASEDIR%\wolfcrypt\benchmark\benchmark.c %WOLFSSLEXP_TRG_DIR%\wolfssl_benchmark\main\
|
||||
xcopy /E/F/Q/Y %WOLFSSL_ESPIDFDIR%\examples\wolfssl_benchmark %WOLFSSLEXP_TRG_DIR%\wolfssl_benchmark\
|
||||
:: Copy dummy test_paths.h to handle the case configure hasn't yet executed
|
||||
echo;
|
||||
echo Copying dummy_test_paths.h to %WOLFSSLLIB_TRG_DIR%\wolfcrypt\test\test_paths.h
|
||||
echo new config > %WOLFSSLLIB_TRG_DIR%\wolfcrypt\test\test_paths.h
|
||||
if %errorlevel% NEQ 0 SET COPYERROR=true
|
||||
xcopy %WOLFSSL_ESPIDFDIR%\dummy_test_paths.h %WOLFSSLLIB_TRG_DIR%\wolfcrypt\test\test_paths.h /S /E /Y
|
||||
if %errorlevel% NEQ 0 SET COPYERROR=true
|
||||
|
||||
rem Crypt Test program
|
||||
rmdir /S/Q %WOLFSSLEXP_TRG_DIR%\wolfssl_test\
|
||||
mkdir %WOLFSSLEXP_TRG_DIR%\wolfssl_test\main\
|
||||
xcopy /F/Q %BASEDIR%\wolfcrypt\test\test.c %WOLFSSLEXP_TRG_DIR%\wolfssl_test\main\
|
||||
xcopy /E/F/Q %WOLFSSL_ESPIDFDIR%\examples\wolfssl_test %WOLFSSLEXP_TRG_DIR%\wolfssl_test\
|
||||
echo;
|
||||
echo Copying files to %WOLFSSLLIB_TRG_DIR%\wolfcrypt\benchmark\
|
||||
xcopy %BASEDIR%\wolfcrypt\benchmark %WOLFSSLLIB_TRG_DIR%\wolfcrypt\benchmark\ /S /E /Q /Y
|
||||
if %errorlevel% NEQ 0 SET COPYERROR=true
|
||||
|
||||
rem TLS Client program
|
||||
rmdir /S/Q %WOLFSSLEXP_TRG_DIR%\wolfssl_client\
|
||||
mkdir %WOLFSSLEXP_TRG_DIR%\wolfssl_client\main\
|
||||
xcopy /E/F/Q %WOLFSSL_ESPIDFDIR%\examples\wolfssl_client %WOLFSSLEXP_TRG_DIR%\wolfssl_client\
|
||||
echo;
|
||||
echo Copying files to %WOLFSSLLIB_TRG_DIR%\wolfssl\
|
||||
xcopy %BASEDIR%\wolfssl\*.h %WOLFSSLLIB_TRG_DIR%\wolfssl\ /S /E /Q /Y
|
||||
if %errorlevel% NEQ 0 SET COPYERROR=true
|
||||
|
||||
rem TLS Server program
|
||||
rmdir /S/Q %WOLFSSLEXP_TRG_DIR%\wolfssl_server\
|
||||
mkdir %WOLFSSLEXP_TRG_DIR%\wolfssl_server\main\
|
||||
xcopy /E/F/Q %WOLFSSL_ESPIDFDIR%\examples\wolfssl_server %WOLFSSLEXP_TRG_DIR%\wolfssl_server\
|
||||
echo;
|
||||
echo Copying files to%WOLFSSLLIB_TRG_DIR%\wolfssl\openssl\
|
||||
xcopy %BASEDIR%\wolfssl\openssl\*.h %WOLFSSLLIB_TRG_DIR%\wolfssl\openssl\ /S /E /Q /Y
|
||||
if %errorlevel% NEQ 0 SET COPYERROR=true
|
||||
|
||||
:exit
|
||||
echo completed
|
||||
echo;
|
||||
echo Copying files to %WOLFSSLLIB_TRG_DIR%\wolfssl\wolfcrypt\
|
||||
xcopy %BASEDIR%\wolfssl\wolfcrypt %WOLFSSLLIB_TRG_DIR%\wolfssl\wolfcrypt\ /S /E /Q /Y
|
||||
if %errorlevel% NEQ 0 SET COPYERROR=true
|
||||
|
||||
|
||||
::******************************************************************************************************
|
||||
:: user_settings and config defaults
|
||||
::******************************************************************************************************
|
||||
:: user_settings.h (default, may be overwritten by prior file)
|
||||
echo;
|
||||
echo Copying default user_settings.h to %WOLFSSLLIB_TRG_DIR%\include\
|
||||
xcopy %WOLFSSL_ESPIDFDIR%\user_settings.h %WOLFSSLLIB_TRG_DIR%\include\ /F
|
||||
if %errorlevel% NEQ 0 SET COPYERROR=true
|
||||
|
||||
:: echo Creating new config file: %WOLFSSLLIB_TRG_DIR%\include\config.h (default, may be overwritten by prior file)
|
||||
echo new config > %WOLFSSLLIB_TRG_DIR%\include\config.h
|
||||
xcopy %WOLFSSL_ESPIDFDIR%\dummy_config_h. %WOLFSSLLIB_TRG_DIR%\include\config.h /F /Y
|
||||
if %errorlevel% NEQ 0 SET COPYERROR=true
|
||||
|
||||
|
||||
:: Check if operator wants to keep prior config.h
|
||||
if EXIST config_h_%FileStamp%.bak (
|
||||
echo;
|
||||
:: clear any prior errorlevel
|
||||
call;
|
||||
choice /c YN /m "Use your prior config.h "
|
||||
if errorlevel 2 GOTO :NO_CONFIG_RESTORE
|
||||
xcopy config_h_%FileStamp%.bak %WOLFSSLLIB_TRG_DIR%\include\config.h /Y
|
||||
if %errorlevel% NEQ 0 SET COPYERROR=true
|
||||
|
||||
) else (
|
||||
echo;
|
||||
echo Prior config.h not found. Using default file.
|
||||
)
|
||||
::******************************************************************************************************
|
||||
:NO_CONFIG_RESTORE
|
||||
::******************************************************************************************************
|
||||
|
||||
:: Check if operator wants to keep prior config.h
|
||||
if EXIST user_settings_h_%FileStamp%.bak (
|
||||
echo;
|
||||
:: clear any prior errorlevel
|
||||
call;
|
||||
choice /c YN /m "User your prior user_settings.h "
|
||||
if errorlevel 2 GOTO :NO_USER_SETTINGS_RESTORE
|
||||
xcopy user_settings_h_%FileStamp%.bak %WOLFSSLLIB_TRG_DIR%\include\user_settings.h /Y
|
||||
if %errorlevel% NEQ 0 SET COPYERROR=true
|
||||
|
||||
) else (
|
||||
echo;
|
||||
echo Prior user_settings.h not found. Using default file.
|
||||
)
|
||||
|
||||
::******************************************************************************************************
|
||||
:NO_USER_SETTINGS_RESTORE
|
||||
::******************************************************************************************************
|
||||
|
||||
|
||||
:: unit test app
|
||||
echo;
|
||||
echo Copying unit files to %WOLFSSLLIB_TRG_DIR%\test\
|
||||
xcopy %WOLFSSL_ESPIDFDIR%\test %WOLFSSLLIB_TRG_DIR%\test\ /S /E /Q /Y
|
||||
if %errorlevel% NEQ 0 GOTO :COPYERR
|
||||
|
||||
echo;
|
||||
echo Copying CMakeLists.txt to %WOLFSSLLIB_TRG_DIR%\
|
||||
xcopy %WOLFSSL_ESPIDFDIR%\libs\CMakeLists.txt %WOLFSSLLIB_TRG_DIR%\ /F
|
||||
if %errorlevel% NEQ 0 GOTO :COPYERR
|
||||
|
||||
echo;
|
||||
echo Copying component.mk to %WOLFSSLLIB_TRG_DIR%\
|
||||
xcopy %WOLFSSL_ESPIDFDIR%\libs\component.mk %WOLFSSLLIB_TRG_DIR%\ /F
|
||||
if %errorlevel% NEQ 0 GOTO :COPYERR
|
||||
|
||||
:: Benchmark program
|
||||
echo;
|
||||
echo Removing %WOLFSSLEXP_TRG_DIR%\wolfssl_benchmark\
|
||||
rmdir %WOLFSSLEXP_TRG_DIR%\wolfssl_benchmark\ /S /Q
|
||||
if %errorlevel% NEQ 0 GOTO :COPYERR
|
||||
|
||||
echo;
|
||||
echo Copying %WOLFSSLEXP_TRG_DIR%\wolfssl_benchmark\main\
|
||||
mkdir %WOLFSSLEXP_TRG_DIR%\wolfssl_benchmark\main\
|
||||
xcopy %BASEDIR%\wolfcrypt\benchmark\benchmark.h %BASEDIR%\IDE\Espressif\ESP-IDF\examples\wolfssl_benchmark\main\benchmark.h /F /Y
|
||||
if %errorlevel% NEQ 0 GOTO :COPYERR
|
||||
|
||||
xcopy %BASEDIR%\wolfcrypt\benchmark\benchmark.c %BASEDIR%\IDE\Espressif\ESP-IDF\examples\wolfssl_benchmark\main\benchmark.c /F /Y
|
||||
if %errorlevel% NEQ 0 GOTO :COPYERR
|
||||
|
||||
xcopy %BASEDIR%\wolfcrypt\benchmark\benchmark.c %WOLFSSLEXP_TRG_DIR%\wolfssl_benchmark\main\ /F /Y
|
||||
if %errorlevel% NEQ 0 GOTO :COPYERR
|
||||
|
||||
xcopy %WOLFSSL_ESPIDFDIR%\examples\wolfssl_benchmark %WOLFSSLEXP_TRG_DIR%\wolfssl_benchmark\ /Q /Y
|
||||
if %errorlevel% NEQ 0 GOTO :COPYERR
|
||||
|
||||
:: Crypt Test program
|
||||
echo;
|
||||
echo Copying %WOLFSSLEXP_TRG_DIR%\wolfssl_test\
|
||||
rmdir %WOLFSSLEXP_TRG_DIR%\wolfssl_test\ /S /Q
|
||||
mkdir %WOLFSSLEXP_TRG_DIR%\wolfssl_test\main\
|
||||
|
||||
xcopy %BASEDIR%\wolfcrypt\test\test.c %WOLFSSLEXP_TRG_DIR%\wolfssl_test\main\ /S /E /Q /Y
|
||||
if %errorlevel% NEQ 0 GOTO :COPYERR
|
||||
|
||||
xcopy %WOLFSSL_ESPIDFDIR%\examples\wolfssl_test %WOLFSSLEXP_TRG_DIR%\wolfssl_test\ /S /E /Q /Y
|
||||
if %errorlevel% NEQ 0 GOTO :COPYERR
|
||||
|
||||
:: TLS Client program
|
||||
echo;
|
||||
echo Copying %WOLFSSLEXP_TRG_DIR%\wolfssl_client\
|
||||
rmdir %WOLFSSLEXP_TRG_DIR%\wolfssl_client\ /S /Q
|
||||
mkdir %WOLFSSLEXP_TRG_DIR%\wolfssl_client\main\
|
||||
|
||||
xcopy %WOLFSSL_ESPIDFDIR%\examples\wolfssl_client %WOLFSSLEXP_TRG_DIR%\wolfssl_client\ /S /E /Q /Y
|
||||
if %errorlevel% NEQ 0 GOTO :COPYERR
|
||||
|
||||
:: TLS Server program
|
||||
echo;
|
||||
echo Copying %WOLFSSLEXP_TRG_DIR%\wolfssl_server\
|
||||
rmdir %WOLFSSLEXP_TRG_DIR%\wolfssl_server\ /S /Q
|
||||
mkdir %WOLFSSLEXP_TRG_DIR%\wolfssl_server\main\
|
||||
|
||||
xcopy %WOLFSSL_ESPIDFDIR%\examples\wolfssl_server %WOLFSSLEXP_TRG_DIR%\wolfssl_server\ /S /E /Q /Y
|
||||
if %errorlevel% NEQ 0 GOTO :COPYERR
|
||||
|
||||
goto :DONE
|
||||
|
||||
:: error during copy encountered
|
||||
::******************************************************************************************************
|
||||
:COPYERR
|
||||
::******************************************************************************************************
|
||||
echo;
|
||||
echo Error during copy.
|
||||
echo
|
||||
echo Please ensure none of the target files are flagged as read-only, open, etc.
|
||||
goto :ERR
|
||||
|
||||
:: abort at user request
|
||||
::******************************************************************************************************
|
||||
:NOCOPY
|
||||
::******************************************************************************************************
|
||||
echo;
|
||||
echo Setup did not copy any files.
|
||||
goto :ERR
|
||||
|
||||
:: ERROR
|
||||
::******************************************************************************************************
|
||||
:ERR
|
||||
::******************************************************************************************************
|
||||
exit /B 1
|
||||
|
||||
:: Success
|
||||
::******************************************************************************************************
|
||||
:DONE
|
||||
::******************************************************************************************************
|
||||
echo;
|
||||
echo;
|
||||
echo Edit config file in "%WOLFSSLLIB_TRG_DIR%\include\user_settings.h" before trying to compile.
|
||||
echo;
|
||||
echo See Component files for wolfSSL in %WOLFSSLLIB_TRG_DIR%
|
||||
echo;
|
||||
echo See additional examples at https://github.com/wolfSSL/wolfssl-examples
|
||||
echo;
|
||||
echo REMINDER: Ensure any wolfSSL #include definitions occur BEFORE include files in your source code.
|
||||
echo;
|
||||
if "%COPYERROR%" == "true" (
|
||||
echo;
|
||||
echo WARNING: Copy completed with errors! Check for files in use, permissions, symbolic links, etc.
|
||||
echo;
|
||||
)
|
||||
echo setup_win.bat for ESP-IDF completed.
|
||||
|
||||
@@ -20,10 +20,21 @@
|
||||
*/
|
||||
#undef WOLFSSL_ESPIDF
|
||||
#define WOLFSSL_ESPIDF
|
||||
|
||||
/*
|
||||
* choose ONE of these Espressif chips to define:
|
||||
*
|
||||
* WOLFSSL_ESPWROOM32
|
||||
* WOLFSSL_ESPWROOM32SE
|
||||
* WOLFSSL_ESP8266
|
||||
*
|
||||
* comment out the others:
|
||||
*/
|
||||
|
||||
#define WOLFSSL_ESPWROOM32
|
||||
/* Uncomment next line if using Espressif ESP32-WROOM-32SE */
|
||||
/* comment the above line #define WOLFSSL_ESPWROOM32 */
|
||||
/* #define WOLFSSL_ESPWROOM32SE */
|
||||
/* #define WOLFSSL_ESP8266 */
|
||||
|
||||
|
||||
#define BENCH_EMBEDDED
|
||||
#define USE_CERT_BUFFERS_2048
|
||||
@@ -99,3 +110,6 @@
|
||||
/* #define NO_WOLFSSL_ESP32WROOM32_CRYPT_HASH*/
|
||||
/* #define NO_WOLFSSL_ESP32WROOM32_CRYPT_AES */
|
||||
/* #define NO_WOLFSSL_ESP32WROOM32_CRYPT_RSA_PRI */
|
||||
|
||||
/* adjust wait-timeout count if you see timeout in rsa hw acceleration */
|
||||
#define ESP_RSA_TIMEOUT_CNT 0x249F00
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
if [ -z $1 ]; then
|
||||
echo "./build <Debug | Release>"
|
||||
exit -1
|
||||
exit 1
|
||||
fi
|
||||
|
||||
printf "Erasing previous hexagon_$1_dynamic_toolv83_v65 and UbuntuARM_$1_aarch64\n"
|
||||
|
||||
27
IDE/IAR-MSP430/Makefile
Normal file
27
IDE/IAR-MSP430/Makefile
Normal file
@@ -0,0 +1,27 @@
|
||||
PROGRAM = wolfcrypt
|
||||
WOLFSSL_SRC_DIR = ../..
|
||||
TI_COMPILER_PATH = /opt/ti/msp430-gcc/bin
|
||||
|
||||
WOLFSSL_CFLAGS += -I$(WOLFSSL_SRC_DIR) -I. -DWOLFSSL_USER_SETTINGS
|
||||
|
||||
SRC_FILES = $(wildcard $(WOLFSSL_SRC_DIR)/src/*.c)
|
||||
SRC_FILES += $(wildcard $(WOLFSSL_SRC_DIR)/wolfcrypt/src/*.c)
|
||||
SRC_FILES := $(filter-out %bio.c %misc.c %evp.c, $(SRC_FILES))
|
||||
|
||||
SRC = main.c \
|
||||
$(SRC_FILES)
|
||||
|
||||
CFLAGS += $(WOLFSSL_CFLAGS) -O3 -mmcu=msp430f5659 -I/opt/ti/msp430-gcc/include -L/opt/ti/msp430-gcc/include -mlarge -mcode-region=either -fdata-sections -ffunction-sections -Wl,--gc-sections
|
||||
|
||||
CC = $(TI_COMPILER_PATH)/msp430-elf-gcc
|
||||
STRIP = $(TI_COMPILER_PATH)/msp430-elf-strip
|
||||
|
||||
$(PROGRAM): $(SRC)
|
||||
$(CC) $(CFLAGS) $(SRC) $(LDFLAGS) $(LDLIBS) -o $@
|
||||
$(STRIP) $@
|
||||
|
||||
clean:
|
||||
rm -f $(PROGRAM)
|
||||
|
||||
install:
|
||||
mspdebug tilib "prog $(PROGRAM)" --allow-fw-update
|
||||
88
IDE/IAR-MSP430/README.md
Normal file
88
IDE/IAR-MSP430/README.md
Normal file
@@ -0,0 +1,88 @@
|
||||
# MSP430 Example
|
||||
|
||||
This example was designed to be used with the MSP430F5359/MSP430F5659 but can be ported to any similar MSP platform. It will take ~50KB of ROM space and a 8KB of statically allocated RAM (nearly half for constants).
|
||||
|
||||
The example runs at 8MHz and executes a benchmark of ECC key generations, shared secrets and 1KB ChaCha20/Poly1305 encryption.
|
||||
|
||||
At 8MHz the ECC steps will take 13-15 seconds each and 1000 iterations of ChaCha20/Poly1305 will take about 45 seconds.
|
||||
|
||||
## Hardware Setup
|
||||
|
||||
A basic development board / ISP combination will work fine, such as the MSP-TS430PZ100 series with the MSP-FET430 series programmer.
|
||||
|
||||
The example will output text via UART 1, on the MSP430 which is port 8 bits 2&3 (pins 60/61) on the MSP430F5359. The UART will run at 57600 baud.
|
||||
|
||||
In addition every second port 1 bit 1 will be toggled on/off (typically an LED would be here).
|
||||
|
||||
## IDE setup
|
||||
|
||||
When setting up the IDE, copy the wolfSSL source code to your project's directory and add all the .c and .h files from `wolfcrypt/src` to your project.
|
||||
|
||||
Use the `main.c` provided here and copy the `user_settings.h` file to the `wolfssl/wolfcrypt` subdirectory of wolfSSL.
|
||||
|
||||
You will need to set at least 700 bytes of stack, no heap is required. You will also need to change the "Library Configuration" to "Full DLIB" so the `printf()` functions work correctly.
|
||||
|
||||
Make sure to add the definition `WOLFSSL_USER_SETTINGS` to the preprocessor settings in your project to that `user_settings.h` is loaded in. You will also need to add the wolfSSL root directory to the "Additional include directories".
|
||||
|
||||
From here you can set any optimizer settings you need.
|
||||
|
||||
## MSP430 GCC Makefile
|
||||
|
||||
Also included is a `Makefile` for TI's GCC, when compiling with GCC the code size will be larger and the application will be ~2x slower.
|
||||
|
||||
To use this Makefile you will need [TI's MSP430 GCC](https://www.ti.com/tool/MSP430-GCC-OPENSOURCE) installed as well as `mspdebug` with the `libmsp430.so` accessible to it. You will need to edit the `Makefile` to set the `TI_COMPILER_PATH` to where you have installed this.
|
||||
|
||||
Once everything is in place you can run `make` to build it and `make install` to flash the MSP430 with it.
|
||||
|
||||
**Note**: this will not work with the much older version of MSP430 GCC that comes in Linux distribution repositories.
|
||||
|
||||
## Example Output
|
||||
|
||||
This is an example output for the demo application when compiled with IAR.
|
||||
|
||||
```
|
||||
START!
|
||||
Rand generated: 2317
|
||||
Rand generated: -31901
|
||||
Rand generated: 13538
|
||||
Rand generated: -24035
|
||||
Rand generated: 18849
|
||||
Rand generated: -1593
|
||||
Rand generated: 29653
|
||||
Rand generated: -8148
|
||||
Rand generated: -27438
|
||||
Rand generated: 618
|
||||
Rand generated: -17119
|
||||
Rand generated: 4668
|
||||
Rand generated: -26289
|
||||
Rand generated: 28126
|
||||
Rand generated: -15749
|
||||
Rand generated: 22041
|
||||
Rand generated: 8710
|
||||
Rand generated: -22039
|
||||
Rand generated: 1781
|
||||
Rand generated: -32168
|
||||
Rand generated: 6187
|
||||
Rand generated: -7650
|
||||
Rand generated: 30268
|
||||
Rand generated: -13585
|
||||
Rand generated: 24388
|
||||
Rand generated: 8520
|
||||
RNG init
|
||||
Alice init
|
||||
Bob init
|
||||
.............Alice keygen 13 seconds
|
||||
..............Bob keygen 14 seconds
|
||||
.............Bob secret 13 seconds
|
||||
..............Alice secret 14 seconds
|
||||
Successfully generated a common secret
|
||||
Alices' Secret: 85f3c7f599620c768e6dbb77dc2f8f764254cc1821aeb0a30503632dbc9bdb54
|
||||
Bobs' Secret: 85f3c7f599620c768e6dbb77dc2f8f764254cc1821aeb0a30503632dbc9bdb54
|
||||
ChaCha20/Poly1305 Encryption Start, 1000 itterations, 1024 bytes
|
||||
............................................
|
||||
End 44 seconds
|
||||
ChaCha20/Poly1305 Decryption Start, 1000 itterations
|
||||
............................................
|
||||
End 44 seconds
|
||||
end
|
||||
```
|
||||
9
IDE/IAR-MSP430/include.am
Normal file
9
IDE/IAR-MSP430/include.am
Normal file
@@ -0,0 +1,9 @@
|
||||
# vim:ft=automake
|
||||
# included from Top Level Makefile.am
|
||||
# All paths should be given relative to the root
|
||||
|
||||
EXTRA_DIST+= IDE/IAR-MSP430/Makefile
|
||||
EXTRA_DIST+= IDE/IAR-MSP430/README.md
|
||||
EXTRA_DIST+= IDE/IAR-MSP430/main.c
|
||||
EXTRA_DIST+= IDE/IAR-MSP430/user_settings.h
|
||||
|
||||
357
IDE/IAR-MSP430/main.c
Normal file
357
IDE/IAR-MSP430/main.c
Normal file
@@ -0,0 +1,357 @@
|
||||
/* MSP430 example main.c
|
||||
*
|
||||
* Copyright (C) 2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
#include <wolfssl/wolfcrypt/settings.h>
|
||||
|
||||
#include <wolfssl/wolfcrypt/wc_port.h>
|
||||
#include <wolfssl/wolfcrypt/types.h>
|
||||
#include <wolfssl/wolfcrypt/random.h>
|
||||
#include <wolfssl/wolfcrypt/ecc.h>
|
||||
#include <wolfssl/wolfcrypt/curve25519.h>
|
||||
#include <wolfssl/wolfcrypt/chacha20_poly1305.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <msp430f5659.h>
|
||||
|
||||
/* Without __root on some of the functions, IAR's "Discard Unused Publics"
|
||||
will optimze out some of the functions
|
||||
*/
|
||||
#if defined(__IAR_SYSTEMS_ICC__)
|
||||
#define IAR_KEEP __root
|
||||
#else
|
||||
#define IAR_KEEP
|
||||
#endif
|
||||
|
||||
#define ECC_256_BIT_FIELD 32 /* 256-bit curve field */
|
||||
|
||||
#define WOLF_GEN_MEM (2*1024)
|
||||
#define CHACHA_TEST_LEN 1024
|
||||
|
||||
static byte gWolfMem[WOLF_GEN_MEM];
|
||||
static byte generatedCiphertext[CHACHA_TEST_LEN];
|
||||
static byte generatedPlaintext[CHACHA_TEST_LEN];
|
||||
|
||||
#define MCLK_FREQ_MHZ 8 /* MCLK = 8MHz */
|
||||
|
||||
static const byte key[] = {
|
||||
0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
|
||||
0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
|
||||
0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
|
||||
0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f
|
||||
};
|
||||
|
||||
static const byte plaintext[] = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras lacus odio, pretium vel sagittis ac, facilisis quis diam. Vivamus condimentum velit sed dolor consequat interdum. Etiam eleifend ornare felis, eleifend egestas odio vulputate eu. Sed nec orci nunc. Etiam quis mi augue. Donec ullamcorper suscipit lorem, vel luctus augue cursus fermentum. Etiam a porta arcu, in convallis sem. Integer efficitur elementum diam, vel scelerisque felis posuere placerat. Donec vestibulum sit amet leo sit amet tincidunt. Etiam et vehicula turpis. Phasellus quis finibus sapien. Sed et tristique turpis. Nullam vitae sagittis tortor, et aliquet lorem. Cras a leo scelerisque, convallis lacus ut, fermentum urna. Mauris quis urna diam. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nam aliquam vehicula orci id pulvinar. Proin mollis, libero sollicitudin tempor ultrices, massa augue tincidunt turpis, sit amet aliquam neque nibh nec dui. Fusce finibus massa quis rutrum suscipit cras amet";
|
||||
|
||||
static const byte iv[] = {
|
||||
0x07, 0x00, 0x00, 0x00, 0x40, 0x41, 0x42, 0x43,
|
||||
0x44, 0x45, 0x46, 0x47
|
||||
};
|
||||
|
||||
static const byte aad[] = { /* additional data */
|
||||
0x50, 0x51, 0x52, 0x53, 0xc0, 0xc1, 0xc2, 0xc3,
|
||||
0xc4, 0xc5, 0xc6, 0xc7
|
||||
};
|
||||
|
||||
volatile unsigned int seconds;
|
||||
|
||||
IAR_KEEP unsigned int msp430_time(long *x)
|
||||
{
|
||||
return seconds;
|
||||
}
|
||||
|
||||
static void print_secret(char* who, byte* s, int sLen)
|
||||
{
|
||||
int i;
|
||||
printf("%ss' Secret: ", who);
|
||||
for (i = 0; i < sLen; i++) {
|
||||
printf("%02x", s[i]);
|
||||
}
|
||||
printf("\r\n");
|
||||
}
|
||||
|
||||
/* This is a very crude RNG, do not use in production */
|
||||
IAR_KEEP unsigned int msp430_rnd(void)
|
||||
{
|
||||
unsigned int result = TA0R ^ TA2R;
|
||||
printf("Rand generated: %d\r\n", result);
|
||||
return result;
|
||||
}
|
||||
|
||||
static void uart_init()
|
||||
{
|
||||
P8SEL |= BIT3 + BIT2;
|
||||
UCA1CTLW0 = UCSWRST; /* Put eUSCI in reset */
|
||||
UCA1CTLW0 |= UCSSEL__SMCLK; /* CLK = SMCLK */
|
||||
/* Baud Rate calculation
|
||||
This was calculated to produce 115200 for a 16MHz clock, so it produces
|
||||
57600 at 8MHz
|
||||
16000000/(16*115200) = 8.6805
|
||||
Fractional portion = 0.6805
|
||||
Use Table 24-5 in Family User Guide
|
||||
*/
|
||||
UCA1BR0 = 8;
|
||||
UCA1BR1 = 0x00;
|
||||
UCA1MCTL |= UCOS16 | UCBRF_11 | UCBRS_0;
|
||||
UCA1CTLW0 &= ~UCSWRST; /* Initialize eUSCI */
|
||||
UCA1IE |= UCRXIE; /* Enable USCI_A0 RX interrupt */
|
||||
}
|
||||
|
||||
#if defined(__IAR_SYSTEMS_ICC__)
|
||||
IAR_KEEP size_t __write(int fd, const unsigned char *_ptr, size_t len)
|
||||
#else
|
||||
int write(int fd, const char *_ptr, int len)
|
||||
#endif
|
||||
{
|
||||
size_t i;
|
||||
|
||||
for(i=0 ; i<len ; i++) {
|
||||
while(!(UCA1IFG&UCTXIFG));
|
||||
UCA1TXBUF = (unsigned char) _ptr[i];
|
||||
}
|
||||
|
||||
return len;
|
||||
}
|
||||
|
||||
static void SetVcoreUp (unsigned int level)
|
||||
{
|
||||
/* Change VCORE voltage level */
|
||||
PMMCTL0_H = PMMPW_H; /* Open PMM registers for write */
|
||||
SVSMHCTL = SVSHE /* Set SVS/SVM high side new level */
|
||||
+ SVSHRVL0 * level
|
||||
+ SVMHE
|
||||
+ SVSMHRRL0 * level;
|
||||
SVSMLCTL = SVSLE /* Set SVM low side to new level */
|
||||
+ SVMLE
|
||||
+ SVSMLRRL0 * level;
|
||||
while ((PMMIFG & SVSMLDLYIFG) == 0); /* Wait till SVM is settled */
|
||||
PMMIFG &= ~(SVMLVLRIFG + SVMLIFG); /* Clear already set flags */
|
||||
PMMCTL0_L = PMMCOREV0 * level; /* Set VCore to new level */
|
||||
if ((PMMIFG & SVMLIFG)) /* Wait till new level reached */
|
||||
while ((PMMIFG & SVMLVLRIFG) == 0);
|
||||
SVSMLCTL = SVSLE /* Set SVS/SVM low side to new level */
|
||||
+ SVSLRVL0 * level
|
||||
+ SVMLE
|
||||
+ SVSMLRRL0 * level;
|
||||
PMMCTL0_H = 0x00; /* Lock PMM registers for write access */
|
||||
}
|
||||
|
||||
/* Stop WDT
|
||||
We need to do this before main() because when there is ~4K of data to
|
||||
initialize the watchdog will fire before initialization completes, sending
|
||||
it into an endless loop of nothing.
|
||||
See: https://www.iar.com/knowledge/support/technical-notes/general/my-msp430-does-not-start-up/
|
||||
*/
|
||||
#if defined(__IAR_SYSTEMS_ICC__)
|
||||
int __low_level_init()
|
||||
{
|
||||
WDTCTL = WDTPW | WDTHOLD;
|
||||
return 1;
|
||||
}
|
||||
#else
|
||||
static void __attribute__((naked, used, section(".crt_0042")))
|
||||
disable_watchdog (void)
|
||||
{
|
||||
WDTCTL = WDTPW | WDTHOLD;
|
||||
}
|
||||
#endif
|
||||
|
||||
int main(void)
|
||||
{
|
||||
byte generatedAuthTag[16];
|
||||
WOLFSSL_HEAP_HINT* HEAP_HINT = NULL;
|
||||
int ret;
|
||||
int start;
|
||||
|
||||
/* NOTE: Change core voltage one level at a time.. */
|
||||
SetVcoreUp (0x01);
|
||||
SetVcoreUp (0x02);
|
||||
SetVcoreUp (0x03);
|
||||
|
||||
/* USC module configuration, Fdcoclockdiv = Fmclk = 8MHz */
|
||||
UCSCTL8 &= ~SMCLKREQEN; /* disable SMCLK clock requests */
|
||||
UCSCTL3 = (0*FLLREFDIV0) /* FLL ref divider 1 */
|
||||
+ SELREF2; /* set REFOCLK as FLL reference clock source */
|
||||
UCSCTL4 = SELA__REFOCLK /* ACLK = REFO */
|
||||
+ SELM__DCOCLKDIV /* MCLK = DCOCLKDIV */
|
||||
+ SELS__DCOCLKDIV; /* SMCLK = DCOCLKDIV */
|
||||
__bis_SR_register(SCG0); /* disable FLL operation */
|
||||
UCSCTL0 = 0x0000; /* lowest possible DCO, MOD */
|
||||
UCSCTL1 = DISMOD_L /* modulation disabled */
|
||||
+ DCORSEL_6; /* DCO range for 8MHz operation */
|
||||
|
||||
UCSCTL2 = FLLD_0 /* D=FLLD=1, so that Fdco=8MHz */
|
||||
+ 243; /* DCO multiplier for 8MHz */
|
||||
/* (N + 1) * FLLRef = Fdcodiv */
|
||||
/* (243 + 1) * 32768 = 8MHz (multiplier N = 243) */
|
||||
__bic_SR_register(SCG0); /* re-enable FLL operation */
|
||||
|
||||
/* worst-case settling time for the DCO when the DCO range bits have been
|
||||
32 x 32 x 8 MHz / 32,768 Hz = 250000 = MCLK cycles for DCO to settle
|
||||
*/
|
||||
__delay_cycles(250000);
|
||||
|
||||
TA0CCR0 = 32768-1;
|
||||
TA0CCTL0 |= CCIE;
|
||||
TA0CTL = TASSEL_1 + ID_0 + MC_1;
|
||||
TA2CTL = TASSEL_2 | MC_2;
|
||||
P1DIR = 1;
|
||||
P1OUT = 0;
|
||||
uart_init();
|
||||
#if defined(__IAR_SYSTEMS_ICC__)
|
||||
__enable_interrupt();
|
||||
#else
|
||||
_enable_interrupts();
|
||||
#endif
|
||||
printf("START!\r\n");
|
||||
#ifdef HAVE_ECC
|
||||
WC_RNG rng;
|
||||
ecc_key AliceKey, BobKey;
|
||||
|
||||
byte AliceSecret[ECC_256_BIT_FIELD] = {0};
|
||||
byte BobSecret[ECC_256_BIT_FIELD] = {0};
|
||||
word32 secretLen = 0;
|
||||
|
||||
if (wc_LoadStaticMemory(&HEAP_HINT, gWolfMem, sizeof(gWolfMem),
|
||||
WOLFMEM_GENERAL, 10) != 0) {
|
||||
printf("unable to load static memory");
|
||||
}
|
||||
|
||||
ret = wc_InitRng_ex(&rng, HEAP_HINT, INVALID_DEVID);
|
||||
if (ret != 0) {
|
||||
printf("RNG init fail: %d\r\n", ret);
|
||||
return ret;
|
||||
}
|
||||
printf("RNG init\r\n");
|
||||
|
||||
ret = wc_ecc_init(&AliceKey);
|
||||
if (ret != 0) {
|
||||
printf("Alice init fail\r\n");
|
||||
goto only_rng;
|
||||
}
|
||||
printf("Alice init\r\n");
|
||||
|
||||
ret = wc_ecc_init(&BobKey);
|
||||
if (ret != 0) {
|
||||
printf("Bob init fail\r\n");
|
||||
goto alice_and_rng;
|
||||
}
|
||||
printf("Bob init\r\n");
|
||||
|
||||
start = seconds;
|
||||
ret = wc_ecc_make_key(&rng, ECC_256_BIT_FIELD, &AliceKey);
|
||||
if (ret != 0) {
|
||||
printf("Alice keygen fail\r\n");
|
||||
goto all_three;
|
||||
}
|
||||
printf("Alice keygen %d seconds\r\n", seconds - start);
|
||||
start = seconds;
|
||||
ret = wc_ecc_make_key(&rng, ECC_256_BIT_FIELD, &BobKey);
|
||||
if (ret != 0) {
|
||||
printf("Bob keygen fail\r\n");
|
||||
goto all_three;
|
||||
}
|
||||
printf("Bob keygen %d seconds\r\n", seconds - start);
|
||||
start = seconds;
|
||||
secretLen = ECC_256_BIT_FIELD; /* explicit set */
|
||||
ret = wc_ecc_shared_secret(&AliceKey, &BobKey, AliceSecret, &secretLen);
|
||||
if (ret != 0) {
|
||||
printf("Shared secret fail\r\n");
|
||||
goto all_three;
|
||||
}
|
||||
printf("Bob secret %d seconds\r\n", seconds - start);
|
||||
start = seconds;
|
||||
secretLen = ECC_256_BIT_FIELD; /* explicit reset for best practice */
|
||||
ret = wc_ecc_shared_secret(&BobKey, &AliceKey, BobSecret, &secretLen);
|
||||
if (ret == 0) {
|
||||
if (XMEMCMP(AliceSecret, BobSecret, secretLen))
|
||||
printf("Failed to generate a common secret\n");
|
||||
} else {
|
||||
goto all_three;
|
||||
}
|
||||
printf("Alice secret %d seconds\r\n", seconds - start);
|
||||
|
||||
printf("Successfully generated a common secret\r\n");
|
||||
print_secret("Alice", AliceSecret, (int) secretLen);
|
||||
print_secret("Bob", BobSecret, (int) secretLen);
|
||||
|
||||
all_three:
|
||||
wc_ecc_free(&BobKey);
|
||||
alice_and_rng:
|
||||
wc_ecc_free(&AliceKey);
|
||||
only_rng:
|
||||
wc_FreeRng(&rng);
|
||||
|
||||
printf(
|
||||
"ChaCha20/Poly1305 Encryption Start, 1000 itterations, %d bytes\r\n",
|
||||
(int)strlen((const char*)plaintext));
|
||||
start = seconds;
|
||||
for (int i=0; i <= 1000; i++) {
|
||||
ret = wc_ChaCha20Poly1305_Encrypt(key, iv, aad, sizeof(aad), plaintext,
|
||||
strlen((const char*)plaintext), generatedCiphertext,
|
||||
generatedAuthTag);
|
||||
if (ret) {
|
||||
printf("ChaCha error: %d\r\n", ret);
|
||||
break;
|
||||
}
|
||||
}
|
||||
printf("\r\nEnd %d seconds\r\n", seconds - start);
|
||||
|
||||
start = seconds;
|
||||
printf("ChaCha20/Poly1305 Decryption Start, 1000 itterations\r\n");
|
||||
start = seconds;
|
||||
for (int i=0; i <= 1000; i++) {
|
||||
ret = wc_ChaCha20Poly1305_Decrypt(key, iv, aad, sizeof(aad),
|
||||
generatedCiphertext, strlen((const char*)plaintext),
|
||||
generatedAuthTag, generatedPlaintext);
|
||||
if (ret) {
|
||||
printf("ChaCha error: %d\r\n", ret);
|
||||
break;
|
||||
}
|
||||
}
|
||||
printf("\r\nEnd %d seconds\r\n", seconds - start);
|
||||
#else
|
||||
printf("Configure wolfSSL with --enable-ecc and try again\n");
|
||||
ret = -1;
|
||||
#endif
|
||||
printf("end\r\n");
|
||||
while(1) {
|
||||
__delay_cycles(8000000);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* Timer ISR */
|
||||
#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
|
||||
#pragma vector=TIMER0_A0_VECTOR
|
||||
__interrupt void TIMER0_A0_ISR(void)
|
||||
#elif defined(__GNUC__)
|
||||
void __attribute__ ((interrupt(TIMER0_A0_VECTOR))) TIMER0_A0_ISR (void)
|
||||
#else
|
||||
#error Compiler not supported!
|
||||
#endif
|
||||
{
|
||||
seconds++;
|
||||
P1OUT = seconds ^ 2;
|
||||
fprintf(stderr, ".");
|
||||
}
|
||||
134
IDE/IAR-MSP430/user_settings.h
Normal file
134
IDE/IAR-MSP430/user_settings.h
Normal file
@@ -0,0 +1,134 @@
|
||||
/* user_settings.h
|
||||
*
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
#ifndef WOLFSSL_USER_SETTINGS_H
|
||||
#define WOLFSSL_USER_SETTINGS_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#undef SINGLE_THREADED
|
||||
#define SINGLE_THREADED
|
||||
|
||||
#undef WOLFSSL_STATIC_MEMORY
|
||||
#define WOLFSSL_STATIC_MEMORY
|
||||
|
||||
#undef WOLFSSL_NO_MALLOC
|
||||
#define WOLFSSL_NO_MALLOC
|
||||
|
||||
#undef NO_FILESYSTEM
|
||||
#define NO_FILESYSTEM
|
||||
|
||||
/* WolfCrypt Only (no TLS) */
|
||||
#define WOLFCRYPT_ONLY
|
||||
|
||||
/* 16 bit */
|
||||
#define WC_16BIT_CPU
|
||||
|
||||
/* Endianness - defaults to little endian */
|
||||
#ifdef __BIG_ENDIAN__
|
||||
#define BIG_ENDIAN_ORDER
|
||||
#endif
|
||||
|
||||
/* Expose the math mp_ API's */
|
||||
#define WOLFSSL_PUBLIC_MP
|
||||
|
||||
/* Use single precision math only */
|
||||
#define WOLFSSL_SP_MATH
|
||||
#define WOLFSSL_SP_NO_MALLOC
|
||||
#define WOLFSSL_SP_SMALL
|
||||
#define WOLFSSL_SP_NO_DYN_STACK
|
||||
#define WOLFSSL_HAVE_SP_ECC
|
||||
#define SP_WORD_SIZE 32
|
||||
#define FP_MAX_BITS (2*256)
|
||||
|
||||
#define USE_SLOW_SHA
|
||||
#define USE_SLOW_SHA256
|
||||
#define USE_SLOW_SHA512
|
||||
|
||||
/* Enable Timing Resistance */
|
||||
#define TFM_TIMING_RESISTANT
|
||||
#define ECC_TIMING_RESISTANT
|
||||
|
||||
/* Enable ECC */
|
||||
#define HAVE_ECC
|
||||
#define ECC_USER_CURVES /* Only 256-Bit Curves */
|
||||
//#define ECC_SHAMIR
|
||||
|
||||
/* Optional Feature Disables */
|
||||
#define NO_SIG_WRAPPER
|
||||
//#define NO_ECC_KEY_EXPORT
|
||||
//#define NO_ECC_DHE
|
||||
//#define NO_ECC_SIGN
|
||||
//#define NO_ECC_VERIFY
|
||||
|
||||
/* Disable Algorithms */
|
||||
#define NO_AES
|
||||
#define NO_AES_CBC
|
||||
#define NO_DES3
|
||||
#define NO_DSA
|
||||
#define NO_RSA
|
||||
#define NO_DH
|
||||
#define NO_RC4
|
||||
#define NO_MD4
|
||||
#define NO_MD5
|
||||
#define NO_SHA
|
||||
#define NO_PWDBASED
|
||||
#define NO_PKCS12
|
||||
#define NO_PKCS8
|
||||
|
||||
#define HAVE_CHACHA
|
||||
#define HAVE_POLY1305
|
||||
#define SIZEOF_LONG_LONG 8
|
||||
|
||||
/* Disable Features */
|
||||
//#define NO_ASN
|
||||
//#define NO_CERTS
|
||||
//#define NO_WOLFSSL_MEMORY
|
||||
#define WOLFSSL_NO_PEM
|
||||
//#define NO_CODING
|
||||
#define NO_PSK
|
||||
#ifndef DEBUG_WOLFSSL
|
||||
#define DEBUG_WOLFSSL
|
||||
#define NO_ERROR_STRINGS
|
||||
#endif
|
||||
|
||||
#define CUSTOM_RAND_TYPE unsigned int
|
||||
extern unsigned int msp430_rnd(void);
|
||||
#undef CUSTOM_RAND_GENERATE
|
||||
#define CUSTOM_RAND_GENERATE msp430_rnd
|
||||
|
||||
extern unsigned int msp430_time(long *x);
|
||||
#undef XTIME
|
||||
#define XTIME msp430_time
|
||||
|
||||
#undef NO_CRYPT_TEST
|
||||
#define NO_CRYPT_TEST
|
||||
|
||||
#undef NO_CRYPT_BENCHMARK
|
||||
#define NO_CRYPT_BENCHMARK
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* WOLFSSL_USER_SETTINGS_H */
|
||||
44
IDE/MSVS-2019-AZSPHERE/README.md
Normal file
44
IDE/MSVS-2019-AZSPHERE/README.md
Normal file
@@ -0,0 +1,44 @@
|
||||
wolfSSL for Microsoft Azure Sphere Devices in MSVS 2019
|
||||
==========================================
|
||||
|
||||
## Description
|
||||
This directory contains the Visual Studio CMake Project that is targeted for
|
||||
the visual studio 2019 Azure Sphere plugin.
|
||||
|
||||
## Limitations
|
||||
The example includes a client and server executable but the main.c app
|
||||
only runs the server by default. main.c can be manually modified to run the
|
||||
client instead if desired.
|
||||
|
||||
By default the main.c app include the hardware definitions for MT3620-mini. It
|
||||
can be manually modified to include hardware definitions for MT3620, or
|
||||
avnet MT3620 instead.
|
||||
|
||||
The app relies on a wolfSSL static library project, app and library are built
|
||||
by the CMakeLists.txt located in
|
||||
IDE/MSVS-2019-AZSPHERE/wolfssl_new_azsphere/CMakeLists.txt. The library and app
|
||||
use `user_settings.h` to enable and disable features.
|
||||
|
||||
### Set Up Steps
|
||||
0. Setup your Azure Sphere device.
|
||||
[Install Azure Sphere](https://docs.microsoft.com/en-us/azure-sphere/install/install)
|
||||
[Set up an account](https://docs.microsoft.com/en-us/azure-sphere/install/azure-directory-account)
|
||||
[Claim your device](https://docs.microsoft.com/en-us/azure-sphere/install/claim-device)
|
||||
[Configure networking](https://docs.microsoft.com/en-us/azure-sphere/install/configure-wifi)
|
||||
|
||||
1. Open the local folder IDE/MSVS-2019-AZSPHERE/wolfssl_new_azsphere in MSVS 2019
|
||||
|
||||
2. From the file menu select "Build" dropdown
|
||||
+ Click: `Rebuild All` option
|
||||
|
||||
3. Connect your Azure Sphere MT3620-mini Development Board using USB.
|
||||
|
||||
4. Test the server.
|
||||
+ Run server(Azure Sphere) using: `Debug->'Start new instance'`
|
||||
+ Run the following wolfSSL example client command inside wolfssl directory.
|
||||
|
||||
```
|
||||
./examples/client/client -h "Server IP Address" -p 11111 -A ./certs/ca-cert.pem
|
||||
```
|
||||
|
||||
For other information please refer to the README in IDE/VS-AZURE-SPHERE
|
||||
138
IDE/MSVS-2019-AZSPHERE/client/client.c
Normal file
138
IDE/MSVS-2019-AZSPHERE/client/client.c
Normal file
@@ -0,0 +1,138 @@
|
||||
/* client.c
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
#include "client.h"
|
||||
/* the usual suspects */
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
/* socket includes */
|
||||
#include <sys/socket.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netinet/in.h>
|
||||
#include <unistd.h>
|
||||
|
||||
/* utility functions shared between client and server */
|
||||
#include <shared/util.h>
|
||||
|
||||
/* wolfSSL */
|
||||
#include <wolfssl/wolfcrypt/settings.h>
|
||||
#include <wolfssl/ssl.h>
|
||||
#include <wolfssl/certs_test.h>
|
||||
|
||||
/* Azure Sphere */
|
||||
#include <applibs/networking.h>
|
||||
|
||||
|
||||
#ifndef NO_MAIN_DRIVER
|
||||
int main(int argc, char** argv)
|
||||
#else
|
||||
int azsphere_client_app(int argc, char** argv)
|
||||
#endif
|
||||
{
|
||||
bool isNetworkingReady = false;
|
||||
SOCKET_T sockfd = 0;
|
||||
char buff[256];
|
||||
size_t len;
|
||||
int ret;
|
||||
|
||||
/* declare wolfSSL objects */
|
||||
WOLFSSL_CTX* ctx = NULL;
|
||||
WOLFSSL* ssl = NULL;
|
||||
|
||||
util_PrintIfAddr();
|
||||
|
||||
/* Check if the Azure Sphere Dev Board has network connectivity. */
|
||||
if ((Networking_IsNetworkingReady(&isNetworkingReady) < 0) || !isNetworkingReady) {
|
||||
fprintf(stderr, "ERROR: network is not up.\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
ret = wolfIO_TcpConnect(&sockfd, SERVER_IP, DEFAULT_PORT, 0);
|
||||
if ((ret != 0) || ((int)sockfd < 0)) {
|
||||
fprintf(stderr, "ERROR: failed to create socket.");
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Initialize wolfSSL */
|
||||
wolfSSL_Init();
|
||||
|
||||
/* Create and initialize WOLFSSL_CTX */
|
||||
ctx = wolfSSL_CTX_new(wolfTLSv1_2_client_method());
|
||||
if (ctx == NULL) {
|
||||
fprintf(stderr, "ERROR: failed to create WOLFSSL_CTX\n");
|
||||
util_Cleanup(sockfd,ctx,ssl);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Load client certificates into WOLFSSL_CTX */
|
||||
ret = wolfSSL_CTX_load_verify_buffer(ctx, CERT, SIZEOF_CERT, WOLFSSL_FILETYPE_ASN1);
|
||||
if (ret != SSL_SUCCESS) {
|
||||
fprintf(stderr, "ERROR: failed to load client certificate, "
|
||||
"please check the buffer.\n");
|
||||
util_Cleanup(sockfd,ctx,ssl);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Create a WOLFSSL object */
|
||||
if ((ssl = wolfSSL_new(ctx)) == NULL) {
|
||||
fprintf(stderr, "ERROR: failed to create WOLFSSL object\n");
|
||||
util_Cleanup(sockfd,ctx,ssl);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Attach wolfSSL to the socket */
|
||||
wolfSSL_set_fd(ssl, sockfd);
|
||||
|
||||
/* Connect to wolfSSL on the server side */
|
||||
if (wolfSSL_connect(ssl) != SSL_SUCCESS) {
|
||||
fprintf(stderr, "ERROR: failed to connect to wolfSSL\n");
|
||||
util_Cleanup(sockfd,ctx,ssl);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Get length of message for server. */
|
||||
printf("\nMessage for server: %s\n",msg);
|
||||
len = strnlen(msg, sizeof(msg));
|
||||
|
||||
/* Send the message to the server */
|
||||
if (wolfSSL_write(ssl, msg, (int)len) != len) {
|
||||
fprintf(stderr, "ERROR: failed to write\n");
|
||||
util_Cleanup(sockfd,ctx,ssl);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Read the server data into our buff array */
|
||||
memset(buff, 0, sizeof(buff));
|
||||
if (wolfSSL_read(ssl, buff, sizeof(buff) - 1) == -1) {
|
||||
fprintf(stderr, "ERROR: failed to read\n");
|
||||
util_Cleanup(sockfd,ctx,ssl);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Print to stdout any data the server sends */
|
||||
printf("Server Reply: %s\n", buff);
|
||||
|
||||
/* Cleanup and return */
|
||||
util_Cleanup(sockfd,ctx,ssl);
|
||||
return 0; /* Return reporting a success */
|
||||
}
|
||||
125
IDE/MSVS-2019-AZSPHERE/client/client.h
Normal file
125
IDE/MSVS-2019-AZSPHERE/client/client.h
Normal file
@@ -0,0 +1,125 @@
|
||||
/* client.h
|
||||
*
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
|
||||
#ifndef WOLFSSL_CLIENT_H
|
||||
#define WOLFSSL_CLIENT_H
|
||||
|
||||
#include <wolfssl/wolfcrypt/settings.h>
|
||||
#ifdef NO_MAIN_DRIVER
|
||||
int azsphere_client_app(int argc, char** argv);
|
||||
#endif
|
||||
|
||||
static const unsigned char wolfssl_website_root_ca[] =
|
||||
{
|
||||
0x30, 0x82, 0x03, 0x75, 0x30, 0x82, 0x02, 0x5D, 0xA0, 0x03,
|
||||
0x02, 0x01, 0x02, 0x02, 0x0B, 0x04, 0x00, 0x00, 0x00, 0x00,
|
||||
0x01, 0x15, 0x4B, 0x5A, 0xC3, 0x94, 0x30, 0x0D, 0x06, 0x09,
|
||||
0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x05, 0x05,
|
||||
0x00, 0x30, 0x57, 0x31, 0x0B, 0x30, 0x09, 0x06, 0x03, 0x55,
|
||||
0x04, 0x06, 0x13, 0x02, 0x42, 0x45, 0x31, 0x19, 0x30, 0x17,
|
||||
0x06, 0x03, 0x55, 0x04, 0x0A, 0x13, 0x10, 0x47, 0x6C, 0x6F,
|
||||
0x62, 0x61, 0x6C, 0x53, 0x69, 0x67, 0x6E, 0x20, 0x6E, 0x76,
|
||||
0x2D, 0x73, 0x61, 0x31, 0x10, 0x30, 0x0E, 0x06, 0x03, 0x55,
|
||||
0x04, 0x0B, 0x13, 0x07, 0x52, 0x6F, 0x6F, 0x74, 0x20, 0x43,
|
||||
0x41, 0x31, 0x1B, 0x30, 0x19, 0x06, 0x03, 0x55, 0x04, 0x03,
|
||||
0x13, 0x12, 0x47, 0x6C, 0x6F, 0x62, 0x61, 0x6C, 0x53, 0x69,
|
||||
0x67, 0x6E, 0x20, 0x52, 0x6F, 0x6F, 0x74, 0x20, 0x43, 0x41,
|
||||
0x30, 0x1E, 0x17, 0x0D, 0x39, 0x38, 0x30, 0x39, 0x30, 0x31,
|
||||
0x31, 0x32, 0x30, 0x30, 0x30, 0x30, 0x5A, 0x17, 0x0D, 0x32,
|
||||
0x38, 0x30, 0x31, 0x32, 0x38, 0x31, 0x32, 0x30, 0x30, 0x30,
|
||||
0x30, 0x5A, 0x30, 0x57, 0x31, 0x0B, 0x30, 0x09, 0x06, 0x03,
|
||||
0x55, 0x04, 0x06, 0x13, 0x02, 0x42, 0x45, 0x31, 0x19, 0x30,
|
||||
0x17, 0x06, 0x03, 0x55, 0x04, 0x0A, 0x13, 0x10, 0x47, 0x6C,
|
||||
0x6F, 0x62, 0x61, 0x6C, 0x53, 0x69, 0x67, 0x6E, 0x20, 0x6E,
|
||||
0x76, 0x2D, 0x73, 0x61, 0x31, 0x10, 0x30, 0x0E, 0x06, 0x03,
|
||||
0x55, 0x04, 0x0B, 0x13, 0x07, 0x52, 0x6F, 0x6F, 0x74, 0x20,
|
||||
0x43, 0x41, 0x31, 0x1B, 0x30, 0x19, 0x06, 0x03, 0x55, 0x04,
|
||||
0x03, 0x13, 0x12, 0x47, 0x6C, 0x6F, 0x62, 0x61, 0x6C, 0x53,
|
||||
0x69, 0x67, 0x6E, 0x20, 0x52, 0x6F, 0x6F, 0x74, 0x20, 0x43,
|
||||
0x41, 0x30, 0x82, 0x01, 0x22, 0x30, 0x0D, 0x06, 0x09, 0x2A,
|
||||
0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x01, 0x05, 0x00,
|
||||
0x03, 0x82, 0x01, 0x0F, 0x00, 0x30, 0x82, 0x01, 0x0A, 0x02,
|
||||
0x82, 0x01, 0x01, 0x00, 0xDA, 0x0E, 0xE6, 0x99, 0x8D, 0xCE,
|
||||
0xA3, 0xE3, 0x4F, 0x8A, 0x7E, 0xFB, 0xF1, 0x8B, 0x83, 0x25,
|
||||
0x6B, 0xEA, 0x48, 0x1F, 0xF1, 0x2A, 0xB0, 0xB9, 0x95, 0x11,
|
||||
0x04, 0xBD, 0xF0, 0x63, 0xD1, 0xE2, 0x67, 0x66, 0xCF, 0x1C,
|
||||
0xDD, 0xCF, 0x1B, 0x48, 0x2B, 0xEE, 0x8D, 0x89, 0x8E, 0x9A,
|
||||
0xAF, 0x29, 0x80, 0x65, 0xAB, 0xE9, 0xC7, 0x2D, 0x12, 0xCB,
|
||||
0xAB, 0x1C, 0x4C, 0x70, 0x07, 0xA1, 0x3D, 0x0A, 0x30, 0xCD,
|
||||
0x15, 0x8D, 0x4F, 0xF8, 0xDD, 0xD4, 0x8C, 0x50, 0x15, 0x1C,
|
||||
0xEF, 0x50, 0xEE, 0xC4, 0x2E, 0xF7, 0xFC, 0xE9, 0x52, 0xF2,
|
||||
0x91, 0x7D, 0xE0, 0x6D, 0xD5, 0x35, 0x30, 0x8E, 0x5E, 0x43,
|
||||
0x73, 0xF2, 0x41, 0xE9, 0xD5, 0x6A, 0xE3, 0xB2, 0x89, 0x3A,
|
||||
0x56, 0x39, 0x38, 0x6F, 0x06, 0x3C, 0x88, 0x69, 0x5B, 0x2A,
|
||||
0x4D, 0xC5, 0xA7, 0x54, 0xB8, 0x6C, 0x89, 0xCC, 0x9B, 0xF9,
|
||||
0x3C, 0xCA, 0xE5, 0xFD, 0x89, 0xF5, 0x12, 0x3C, 0x92, 0x78,
|
||||
0x96, 0xD6, 0xDC, 0x74, 0x6E, 0x93, 0x44, 0x61, 0xD1, 0x8D,
|
||||
0xC7, 0x46, 0xB2, 0x75, 0x0E, 0x86, 0xE8, 0x19, 0x8A, 0xD5,
|
||||
0x6D, 0x6C, 0xD5, 0x78, 0x16, 0x95, 0xA2, 0xE9, 0xC8, 0x0A,
|
||||
0x38, 0xEB, 0xF2, 0x24, 0x13, 0x4F, 0x73, 0x54, 0x93, 0x13,
|
||||
0x85, 0x3A, 0x1B, 0xBC, 0x1E, 0x34, 0xB5, 0x8B, 0x05, 0x8C,
|
||||
0xB9, 0x77, 0x8B, 0xB1, 0xDB, 0x1F, 0x20, 0x91, 0xAB, 0x09,
|
||||
0x53, 0x6E, 0x90, 0xCE, 0x7B, 0x37, 0x74, 0xB9, 0x70, 0x47,
|
||||
0x91, 0x22, 0x51, 0x63, 0x16, 0x79, 0xAE, 0xB1, 0xAE, 0x41,
|
||||
0x26, 0x08, 0xC8, 0x19, 0x2B, 0xD1, 0x46, 0xAA, 0x48, 0xD6,
|
||||
0x64, 0x2A, 0xD7, 0x83, 0x34, 0xFF, 0x2C, 0x2A, 0xC1, 0x6C,
|
||||
0x19, 0x43, 0x4A, 0x07, 0x85, 0xE7, 0xD3, 0x7C, 0xF6, 0x21,
|
||||
0x68, 0xEF, 0xEA, 0xF2, 0x52, 0x9F, 0x7F, 0x93, 0x90, 0xCF,
|
||||
0x02, 0x03, 0x01, 0x00, 0x01, 0xA3, 0x42, 0x30, 0x40, 0x30,
|
||||
0x0E, 0x06, 0x03, 0x55, 0x1D, 0x0F, 0x01, 0x01, 0xFF, 0x04,
|
||||
0x04, 0x03, 0x02, 0x01, 0x06, 0x30, 0x0F, 0x06, 0x03, 0x55,
|
||||
0x1D, 0x13, 0x01, 0x01, 0xFF, 0x04, 0x05, 0x30, 0x03, 0x01,
|
||||
0x01, 0xFF, 0x30, 0x1D, 0x06, 0x03, 0x55, 0x1D, 0x0E, 0x04,
|
||||
0x16, 0x04, 0x14, 0x60, 0x7B, 0x66, 0x1A, 0x45, 0x0D, 0x97,
|
||||
0xCA, 0x89, 0x50, 0x2F, 0x7D, 0x04, 0xCD, 0x34, 0xA8, 0xFF,
|
||||
0xFC, 0xFD, 0x4B, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48,
|
||||
0x86, 0xF7, 0x0D, 0x01, 0x01, 0x05, 0x05, 0x00, 0x03, 0x82,
|
||||
0x01, 0x01, 0x00, 0xD6, 0x73, 0xE7, 0x7C, 0x4F, 0x76, 0xD0,
|
||||
0x8D, 0xBF, 0xEC, 0xBA, 0xA2, 0xBE, 0x34, 0xC5, 0x28, 0x32,
|
||||
0xB5, 0x7C, 0xFC, 0x6C, 0x9C, 0x2C, 0x2B, 0xBD, 0x09, 0x9E,
|
||||
0x53, 0xBF, 0x6B, 0x5E, 0xAA, 0x11, 0x48, 0xB6, 0xE5, 0x08,
|
||||
0xA3, 0xB3, 0xCA, 0x3D, 0x61, 0x4D, 0xD3, 0x46, 0x09, 0xB3,
|
||||
0x3E, 0xC3, 0xA0, 0xE3, 0x63, 0x55, 0x1B, 0xF2, 0xBA, 0xEF,
|
||||
0xAD, 0x39, 0xE1, 0x43, 0xB9, 0x38, 0xA3, 0xE6, 0x2F, 0x8A,
|
||||
0x26, 0x3B, 0xEF, 0xA0, 0x50, 0x56, 0xF9, 0xC6, 0x0A, 0xFD,
|
||||
0x38, 0xCD, 0xC4, 0x0B, 0x70, 0x51, 0x94, 0x97, 0x98, 0x04,
|
||||
0xDF, 0xC3, 0x5F, 0x94, 0xD5, 0x15, 0xC9, 0x14, 0x41, 0x9C,
|
||||
0xC4, 0x5D, 0x75, 0x64, 0x15, 0x0D, 0xFF, 0x55, 0x30, 0xEC,
|
||||
0x86, 0x8F, 0xFF, 0x0D, 0xEF, 0x2C, 0xB9, 0x63, 0x46, 0xF6,
|
||||
0xAA, 0xFC, 0xDF, 0xBC, 0x69, 0xFD, 0x2E, 0x12, 0x48, 0x64,
|
||||
0x9A, 0xE0, 0x95, 0xF0, 0xA6, 0xEF, 0x29, 0x8F, 0x01, 0xB1,
|
||||
0x15, 0xB5, 0x0C, 0x1D, 0xA5, 0xFE, 0x69, 0x2C, 0x69, 0x24,
|
||||
0x78, 0x1E, 0xB3, 0xA7, 0x1C, 0x71, 0x62, 0xEE, 0xCA, 0xC8,
|
||||
0x97, 0xAC, 0x17, 0x5D, 0x8A, 0xC2, 0xF8, 0x47, 0x86, 0x6E,
|
||||
0x2A, 0xC4, 0x56, 0x31, 0x95, 0xD0, 0x67, 0x89, 0x85, 0x2B,
|
||||
0xF9, 0x6C, 0xA6, 0x5D, 0x46, 0x9D, 0x0C, 0xAA, 0x82, 0xE4,
|
||||
0x99, 0x51, 0xDD, 0x70, 0xB7, 0xDB, 0x56, 0x3D, 0x61, 0xE4,
|
||||
0x6A, 0xE1, 0x5C, 0xD6, 0xF6, 0xFE, 0x3D, 0xDE, 0x41, 0xCC,
|
||||
0x07, 0xAE, 0x63, 0x52, 0xBF, 0x53, 0x53, 0xF4, 0x2B, 0xE9,
|
||||
0xC7, 0xFD, 0xB6, 0xF7, 0x82, 0x5F, 0x85, 0xD2, 0x41, 0x18,
|
||||
0xDB, 0x81, 0xB3, 0x04, 0x1C, 0xC5, 0x1F, 0xA4, 0x80, 0x6F,
|
||||
0x15, 0x20, 0xC9, 0xDE, 0x0C, 0x88, 0x0A, 0x1D, 0xD6, 0x66,
|
||||
0x55, 0xE2, 0xFC, 0x48, 0xC9, 0x29, 0x26, 0x69, 0xE0
|
||||
};
|
||||
static const int sizeof_wolfssl_website_root_ca = sizeof(wolfssl_website_root_ca);
|
||||
|
||||
#endif /* WOLFSSL_CLIENT_H */
|
||||
25
IDE/MSVS-2019-AZSPHERE/include.am
Normal file
25
IDE/MSVS-2019-AZSPHERE/include.am
Normal file
@@ -0,0 +1,25 @@
|
||||
# vim:ft=automake
|
||||
# included from Top Level Makefile.am
|
||||
# All paths should be given relative to the root
|
||||
|
||||
EXTRA_DIST+= IDE/MSVS-2019-AZSPHERE/client/client.c
|
||||
EXTRA_DIST+= IDE/MSVS-2019-AZSPHERE/client/client.h
|
||||
EXTRA_DIST+= IDE/MSVS-2019-AZSPHERE/server/server.c
|
||||
EXTRA_DIST+= IDE/MSVS-2019-AZSPHERE/server/server.h
|
||||
EXTRA_DIST+= IDE/MSVS-2019-AZSPHERE/shared/util.h
|
||||
EXTRA_DIST+= IDE/MSVS-2019-AZSPHERE/user_settings.h
|
||||
EXTRA_DIST+= IDE/MSVS-2019-AZSPHERE/wolfssl_new_azsphere/.gitignore
|
||||
EXTRA_DIST+= IDE/MSVS-2019-AZSPHERE/wolfssl_new_azsphere/CMakeLists.txt
|
||||
EXTRA_DIST+= IDE/MSVS-2019-AZSPHERE/wolfssl_new_azsphere/CMakeSettings.json
|
||||
EXTRA_DIST+= IDE/MSVS-2019-AZSPHERE/wolfssl_new_azsphere/HardwareDefinitions/avnet_mt3620_sk/inc/hw/template_appliance.h
|
||||
EXTRA_DIST+= IDE/MSVS-2019-AZSPHERE/wolfssl_new_azsphere/HardwareDefinitions/avnet_mt3620_sk/template_appliance.json
|
||||
EXTRA_DIST+= IDE/MSVS-2019-AZSPHERE/wolfssl_new_azsphere/HardwareDefinitions/mt3620_rdb/inc/hw/template_appliance.h
|
||||
EXTRA_DIST+= IDE/MSVS-2019-AZSPHERE/wolfssl_new_azsphere/HardwareDefinitions/mt3620_rdb/template_appliance.json
|
||||
EXTRA_DIST+= IDE/MSVS-2019-AZSPHERE/wolfssl_new_azsphere/HardwareDefinitions/seeed_mt3620_mdb/inc/hw/template_appliance.h
|
||||
EXTRA_DIST+= IDE/MSVS-2019-AZSPHERE/wolfssl_new_azsphere/HardwareDefinitions/seeed_mt3620_mdb/template_appliance.json
|
||||
EXTRA_DIST+= IDE/MSVS-2019-AZSPHERE/wolfssl_new_azsphere/app_manifest.json
|
||||
EXTRA_DIST+= IDE/MSVS-2019-AZSPHERE/wolfssl_new_azsphere/applibs_versions.h
|
||||
EXTRA_DIST+= IDE/MSVS-2019-AZSPHERE/wolfssl_new_azsphere/launch.vs.json
|
||||
EXTRA_DIST+= IDE/MSVS-2019-AZSPHERE/wolfssl_new_azsphere/main.c
|
||||
EXTRA_DIST+= IDE/MSVS-2019-AZSPHERE/README.md
|
||||
|
||||
213
IDE/MSVS-2019-AZSPHERE/server/server.c
Normal file
213
IDE/MSVS-2019-AZSPHERE/server/server.c
Normal file
@@ -0,0 +1,213 @@
|
||||
/* server.c
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
#include "server.h"
|
||||
/* the usual suspects */
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
/* socket includes */
|
||||
#include <sys/socket.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netinet/in.h>
|
||||
#include <unistd.h>
|
||||
|
||||
/* <shared/util.h> includes */
|
||||
#include <shared/util.h>
|
||||
|
||||
/* wolfSSL */
|
||||
#include <wolfssl/wolfcrypt/settings.h>
|
||||
#include <wolfssl/ssl.h>
|
||||
#include <wolfssl/certs_test.h>
|
||||
|
||||
/* Azure Sphere */
|
||||
#include <applibs/log.h>
|
||||
#include <applibs/networking.h>
|
||||
|
||||
#define BIND_PORT 11111
|
||||
#define CERT_BUF server_cert_der_2048
|
||||
#define SIZEOF_CERT_BUF sizeof_server_cert_der_2048
|
||||
#define KEY_BUF server_key_der_2048
|
||||
#define SIZEOF_KEY_BUF sizeof_server_key_der_2048
|
||||
|
||||
#ifndef NO_MAIN_DRIVER
|
||||
int main(void)
|
||||
#else
|
||||
int azsphere_server_app(void)
|
||||
#endif
|
||||
{
|
||||
bool isNetworkingReady = false;
|
||||
int sockfd;
|
||||
int connd;
|
||||
struct sockaddr_in servAddr;
|
||||
struct sockaddr_in clientAddr;
|
||||
socklen_t size = sizeof(clientAddr);
|
||||
char buff[256];
|
||||
size_t len;
|
||||
int shutdown = 0;
|
||||
int ret;
|
||||
const char* reply = "I hear ya fa shizzle!\n";
|
||||
|
||||
/* declare wolfSSL objects */
|
||||
WOLFSSL_CTX* ctx = NULL;
|
||||
WOLFSSL* ssl = NULL;
|
||||
|
||||
util_PrintIfAddr();
|
||||
|
||||
/* Check if the Azure Sphere Dev Board has network connectivity. */
|
||||
if ((Networking_IsNetworkingReady(&isNetworkingReady) < 0) || !isNetworkingReady) {
|
||||
fprintf(stderr,"Error: Network is not up.\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Initialize wolfSSL */
|
||||
wolfSSL_Init();
|
||||
|
||||
/* Create a socket that uses an internet IPv4 address,
|
||||
* Sets the socket to be stream based (TCP),
|
||||
* 0 means choose the default protocol. */
|
||||
if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) {
|
||||
fprintf(stderr, "ERROR: failed to create the socket\n");
|
||||
util_Cleanup(sockfd, ctx, ssl);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Create and initialize WOLFSSL_CTX */
|
||||
if ((ctx = wolfSSL_CTX_new(wolfTLSv1_2_server_method())) == NULL) {
|
||||
fprintf(stderr, "ERROR: failed to create WOLFSSL_CTX\n");
|
||||
util_Cleanup(sockfd, ctx, ssl);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Load server certificates into WOLFSSL_CTX */
|
||||
if (wolfSSL_CTX_use_certificate_buffer(ctx, CERT_BUF, SIZEOF_CERT_BUF, SSL_FILETYPE_ASN1)
|
||||
!= SSL_SUCCESS) {
|
||||
fprintf(stderr, "ERROR: failed to load %s, please check the file.\n",
|
||||
CERT_BUF);
|
||||
util_Cleanup(sockfd, ctx, ssl);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Load server key into WOLFSSL_CTX */
|
||||
if (wolfSSL_CTX_use_PrivateKey_buffer(ctx, KEY_BUF, SIZEOF_KEY_BUF, SSL_FILETYPE_ASN1)
|
||||
!= SSL_SUCCESS) {
|
||||
fprintf(stderr, "ERROR: failed to load %s, please check the file.\n",
|
||||
KEY_BUF);
|
||||
util_Cleanup(sockfd, ctx, ssl);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Initialize the server address struct with zeros */
|
||||
memset(&servAddr, 0, sizeof(servAddr));
|
||||
|
||||
/* Fill in the server address */
|
||||
servAddr.sin_family = AF_INET; /* using IPv4 */
|
||||
servAddr.sin_port = htons(BIND_PORT); /* on BIND_PORT */
|
||||
servAddr.sin_addr.s_addr = INADDR_ANY; /* from anywhere */
|
||||
|
||||
/* Bind the server socket to our port */
|
||||
if (bind(sockfd, (struct sockaddr*)&servAddr, sizeof(servAddr)) == -1) {
|
||||
fprintf(stderr, "ERROR: failed to bind\n");
|
||||
util_Cleanup(sockfd, ctx, ssl);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Listen for a new connection, allow 5 pending connections */
|
||||
if (listen(sockfd, 5) == -1) {
|
||||
fprintf(stderr, "ERROR: failed to listen\n");
|
||||
util_Cleanup(sockfd, ctx, ssl);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Continue to accept clients until shutdown is issued */
|
||||
while (!shutdown) {
|
||||
printf("Waiting for a connection...\n");
|
||||
|
||||
/* Accept client connections */
|
||||
if ((connd = accept(sockfd, (struct sockaddr*)&clientAddr, &size))
|
||||
== -1) {
|
||||
fprintf(stderr, "ERROR: failed to accept the connection\n\n");
|
||||
util_Cleanup(sockfd, ctx, ssl);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Create a WOLFSSL object */
|
||||
if ((ssl = wolfSSL_new(ctx)) == NULL) {
|
||||
fprintf(stderr, "ERROR: failed to create WOLFSSL object\n");
|
||||
util_Cleanup(sockfd, ctx, ssl);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Attach wolfSSL to the socket */
|
||||
wolfSSL_set_fd(ssl, connd);
|
||||
|
||||
/* Establish TLS connection */
|
||||
ret = wolfSSL_accept(ssl);
|
||||
if (ret != SSL_SUCCESS) {
|
||||
fprintf(stderr, "wolfSSL_accept error = %d\n",
|
||||
wolfSSL_get_error(ssl, ret));
|
||||
util_Cleanup(sockfd, ctx, ssl);
|
||||
return -1;
|
||||
}
|
||||
|
||||
printf("Client connected successfully\n");
|
||||
|
||||
/* Read the client data into our buff array */
|
||||
memset(buff, 0, sizeof(buff));
|
||||
if (wolfSSL_read(ssl, buff, sizeof(buff)-1) == -1) {
|
||||
fprintf(stderr, "ERROR: failed to read\n");
|
||||
util_Cleanup(sockfd, ctx, ssl);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Print to stdout any data the client sends */
|
||||
printf("Client: %s\n", buff);
|
||||
|
||||
/* Check for server shutdown command */
|
||||
if (strncmp(buff, "shutdown", 8) == 0) {
|
||||
printf("Shutdown command issued!\n");
|
||||
shutdown = 1;
|
||||
}
|
||||
|
||||
/* Write our reply into buff */
|
||||
memset(buff, 0, sizeof(buff));
|
||||
memcpy(buff, reply, strlen(reply));
|
||||
len = strnlen(buff, sizeof(buff));
|
||||
|
||||
/* Reply back to the client */
|
||||
if (wolfSSL_write(ssl, buff, (int)len) != len) {
|
||||
fprintf(stderr, "ERROR: failed to write\n");
|
||||
util_Cleanup(sockfd, ctx, ssl);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Cleanup after this connection */
|
||||
wolfSSL_free(ssl); /* Free the wolfSSL object */
|
||||
close(connd); /* Close the connection to the client */
|
||||
}
|
||||
|
||||
printf("Shutdown complete\n");
|
||||
|
||||
/* Cleanup and return */
|
||||
util_Cleanup(sockfd, ctx, ssl);
|
||||
return 0; /* Return reporting a success */
|
||||
}
|
||||
@@ -1,22 +1,33 @@
|
||||
/* strings.h
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
/* server.h
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
int strncasecmp(const char *s1, const char * s2, unsigned int sz);
|
||||
|
||||
|
||||
#ifndef WOLFSSL_SERVER_H
|
||||
#define WOLFSSL_SERVER_H
|
||||
|
||||
#include <wolfssl/wolfcrypt/settings.h>
|
||||
#ifdef NO_MAIN_DRIVER
|
||||
int azsphere_server_app(void);
|
||||
#endif
|
||||
|
||||
#endif /* WOLFSSL_SERVER_H */
|
||||
|
||||
82
IDE/MSVS-2019-AZSPHERE/shared/util.h
Normal file
82
IDE/MSVS-2019-AZSPHERE/shared/util.h
Normal file
@@ -0,0 +1,82 @@
|
||||
/* util.h
|
||||
*
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
#ifndef _UTIL_H_
|
||||
#define _UTIL_H_
|
||||
|
||||
#include <stdio.h>
|
||||
#include <wolfssl/ssl.h>
|
||||
#include <ifaddrs.h>
|
||||
#include <applibs/log.h>
|
||||
|
||||
#define _GNU_SOURCE /* defines NI_NUMERICHOST */
|
||||
#ifndef NI_MAXHOST
|
||||
#define NI_MAXHOST 256
|
||||
#endif
|
||||
|
||||
static void util_Cleanup(int sockfd, WOLFSSL_CTX* ctx, WOLFSSL* ssl)
|
||||
{
|
||||
wolfSSL_free(ssl); /* Free the wolfSSL object */
|
||||
wolfSSL_CTX_free(ctx); /* Free the wolfSSL context object */
|
||||
wolfSSL_Cleanup(); /* Cleanup the wolfSSL environment */
|
||||
close(sockfd); /* Close the connection to the server */
|
||||
}
|
||||
|
||||
/* Displays each AF_INET interface and it's IP Address
|
||||
* Return: WOLFSSL_SUCCESS if print is successful else WOLFSSL_FAILURE
|
||||
*/
|
||||
static int util_PrintIfAddr(void)
|
||||
{
|
||||
char host[NI_MAXHOST];
|
||||
struct ifaddrs* ifaddr, * nxt;
|
||||
int family, info, n;
|
||||
|
||||
/* Get a linked list of 'struct ifaddrs*' */
|
||||
if (getifaddrs(&ifaddr) != 0) {
|
||||
fprintf(stderr, "ERROR: Getting network interface and IP address");
|
||||
return WOLFSSL_FAILURE;
|
||||
}
|
||||
printf("\nInterface IP Address\n");
|
||||
/* Traverse ifaddr linked list using nxt */
|
||||
for (nxt = ifaddr; nxt != NULL; nxt = nxt->ifa_next) {
|
||||
if (nxt->ifa_addr == NULL)
|
||||
continue;
|
||||
family = nxt->ifa_addr->sa_family;
|
||||
/* Display the address of each AF_INET* interface */
|
||||
if (family == AF_INET) {
|
||||
info = getnameinfo(nxt->ifa_addr, sizeof(struct sockaddr_in),
|
||||
host, NI_MAXHOST, NULL, 0, NI_NUMERICHOST);
|
||||
if (info != 0) {
|
||||
fprintf(stderr, "Failed to getnameinfo");
|
||||
freeifaddrs(ifaddr);
|
||||
return WOLFSSL_FAILURE;
|
||||
}
|
||||
/* Determine amount of space, n, to justify IP Address */
|
||||
n = (int)strlen("Interface ") - (int)strlen(nxt->ifa_name);
|
||||
n = (n > 0) ? n : 1; /* Set space to 1 if n is negative */
|
||||
printf("%s %*c%s>\n", nxt->ifa_name, n, '<', host);
|
||||
}
|
||||
}
|
||||
printf("\n");
|
||||
freeifaddrs(ifaddr);
|
||||
return WOLFSSL_SUCCESS;
|
||||
}
|
||||
#endif
|
||||
96
IDE/MSVS-2019-AZSPHERE/user_settings.h
Normal file
96
IDE/MSVS-2019-AZSPHERE/user_settings.h
Normal file
@@ -0,0 +1,96 @@
|
||||
/* user_settings.h
|
||||
*
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
#ifndef _USER_SETTINGS_H_
|
||||
#define _USER_SETTINGS_H_
|
||||
|
||||
#define SERVER_IP "192.168.1.123"
|
||||
#define CUSTOM_SERVER_CONNECTION
|
||||
|
||||
#define WOLFSSL_AZSPHERE
|
||||
/* Client connects to the server with these details. */
|
||||
#ifdef CUSTOM_SERVER_CONNECTION
|
||||
#ifndef SERVER_IP
|
||||
#define SERVER_IP "192.168.1.200" /* Local Test Server IP */
|
||||
#endif
|
||||
#ifndef DEFAULT_PORT
|
||||
#define DEFAULT_PORT 11111
|
||||
#endif
|
||||
#define CERT ca_cert_der_2048
|
||||
#define SIZEOF_CERT sizeof_ca_cert_der_2048
|
||||
static const char msg[] = "Are you listening wolfSSL Server?";
|
||||
#else
|
||||
#ifndef SERVER_IP
|
||||
#define SERVER_IP "www.wolfssl.com"
|
||||
#endif
|
||||
#ifndef DEFAULT_PORT
|
||||
#define DEFAULT_PORT 443
|
||||
#endif
|
||||
#define CERT wolfssl_website_root_ca
|
||||
#define SIZEOF_CERT sizeof_wolfssl_website_root_ca
|
||||
static const char msg[] = "GET /index.html HTTP/1.1\r\n\r\n";
|
||||
#endif
|
||||
|
||||
/* Math: Normal (!USE_FAST_MATH) */
|
||||
#define SIZEOF_LONG_LONG 8
|
||||
#define WC_RSA_BLINDING
|
||||
#define ECC_TIMING_RESISTANT
|
||||
|
||||
/* Enable options */
|
||||
#define HAVE_CHACHA
|
||||
#define HAVE_POLY1305
|
||||
#define HAVE_ECC
|
||||
#define HAVE_SUPPORTED_CURVES
|
||||
#define HAVE_TLS_EXTENSIONS
|
||||
#define HAVE_ONE_TIME_AUTH
|
||||
#define HAVE_TRUNCATED_HMAC
|
||||
#define HAVE_EXTENDED_MASTER
|
||||
#define HAVE_ALPN
|
||||
#define HAVE_SNI
|
||||
#define HAVE_OCSP
|
||||
#define HAVE_AESGCM
|
||||
|
||||
/* Disable options */
|
||||
#define NO_PWDBASED
|
||||
#define NO_DSA
|
||||
#define NO_DES3
|
||||
#define NO_RC4
|
||||
#define NO_MD4
|
||||
|
||||
/* Benchmark / Testing */
|
||||
#define BENCH_EMBEDDED
|
||||
#define USE_CERT_BUFFERS_2048
|
||||
#define USE_CERT_BUFFERS_256
|
||||
|
||||
/* OS */
|
||||
#define SINGLE_THREADED
|
||||
|
||||
/* Filesystem */
|
||||
#define NO_FILESYSTEM
|
||||
|
||||
/* Debug */
|
||||
#include <applibs/log.h>
|
||||
#define printf Log_Debug
|
||||
#define WOLFIO_DEBUG
|
||||
|
||||
#define NO_MAIN_DRIVER
|
||||
|
||||
#endif /* _USER_SETTINGS_H_ */
|
||||
3
IDE/MSVS-2019-AZSPHERE/wolfssl_new_azsphere/.gitignore
vendored
Normal file
3
IDE/MSVS-2019-AZSPHERE/wolfssl_new_azsphere/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
# Ignore output directories
|
||||
/out/
|
||||
/install/
|
||||
58
IDE/MSVS-2019-AZSPHERE/wolfssl_new_azsphere/CMakeLists.txt
Normal file
58
IDE/MSVS-2019-AZSPHERE/wolfssl_new_azsphere/CMakeLists.txt
Normal file
@@ -0,0 +1,58 @@
|
||||
# CMakeList.txt
|
||||
#
|
||||
# Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
#
|
||||
# This file is part of wolfSSL. (formerly known as CyaSSL)
|
||||
#
|
||||
# Usage:
|
||||
# In MSVS 2019 with Azure Sphere plugin installed choose option
|
||||
# "Open Local Folder" and browse to wolfssl-root/IDE/MSVS-2019-AZSPHERE"
|
||||
# highlight wolfssl_new_azsphere and select "Open"
|
||||
#
|
||||
# To build:
|
||||
# go to MSVS menu option "Build" and select "Build All"
|
||||
#
|
||||
# See https://docs.microsoft.com/en-us/azure-sphere/install/overview for how
|
||||
# to get started with an Azure sphere device. Once you have completed the step
|
||||
# to build/flash and run the Blinky example you will be ready to build/flash
|
||||
# and run this example!
|
||||
|
||||
cmake_minimum_required (VERSION 3.4.1)
|
||||
|
||||
project (wolfssl_new_azsphere C)
|
||||
|
||||
azsphere_configure_tools(TOOLS_REVISION "22.02")
|
||||
azsphere_configure_api(TARGET_API_SET "12")
|
||||
|
||||
# add wolfSSL preprocessor directives
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWOLFSSL_USER_SETTINGS -Wno-conversion -Wno-sign-conversion")
|
||||
|
||||
# add a shared object for SSL/TLS and CRYPTO
|
||||
set( SSL_SRC_DIR "../../../src" )
|
||||
set( CRYPTO_SRC_DIR "../../../wolfcrypt/src" )
|
||||
set( INCLUDE_DIR "../../.." )
|
||||
aux_source_directory( ${SSL_SRC_DIR} SSL_SOURCES )
|
||||
list( REMOVE_ITEM SSL_SOURCES ../../../src/bio.c )
|
||||
list( REMOVE_ITEM SSL_SOURCES ../../../src/conf.c )
|
||||
list( REMOVE_ITEM SSL_SOURCES ../../../src/x509.c )
|
||||
list( REMOVE_ITEM SSL_SOURCES ../../../src/x509_str.c )
|
||||
list( REMOVE_ITEM SSL_SOURCES ../../../src/pk.c )
|
||||
aux_source_directory( ${CRYPTO_SRC_DIR} CRYPTO_SOURCES )
|
||||
list( REMOVE_ITEM CRYPTO_SOURCES ../../../wolfcrypt/src/evp.c )
|
||||
list( REMOVE_ITEM CRYPTO_SOURCES ../../../wolfcrypt/src/misc.c )
|
||||
add_library( wolfssl STATIC ${SSL_SOURCES} ${CRYPTO_SOURCES} )
|
||||
|
||||
# Create executable that uses library
|
||||
set( SERVER_APP_DIR "../server" )
|
||||
set( CLIENT_APP_DIR "../client" )
|
||||
set( USER_SETTINGS_DIR ".." )
|
||||
set( APP_INCLUDE_DIRS ${SERVER_APP_DIR} ${CLIENT_APP_DIR} ${USER_SETTINGS_DIR} )
|
||||
|
||||
add_executable (${PROJECT_NAME} main.c ${SERVER_APP_DIR}/server.c ${CLIENT_APP_DIR}/client.c )
|
||||
target_link_libraries (${PROJECT_NAME} applibs pthread gcc_s c wolfssl)
|
||||
include_directories( ${INCLUDE_DIR} ${APP_INCLUDE_DIRS})
|
||||
|
||||
# azsphere_target_hardware_definition(${PROJECT_NAME} TARGET_DIRECTORY "HardwareDefinitions/mt3620_rdb" TARGET_DEFINITION "template_appliance.json")
|
||||
azsphere_target_hardware_definition(${PROJECT_NAME} TARGET_DIRECTORY "HardwareDefinitions/seeed_mt3620_mdb" TARGET_DEFINITION "template_appliance.json")
|
||||
|
||||
azsphere_target_add_image_package(${PROJECT_NAME})
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"environments": [
|
||||
{
|
||||
"environment": "AzureSphere"
|
||||
}
|
||||
],
|
||||
"configurations": [
|
||||
{
|
||||
"name": "ARM-Debug",
|
||||
"generator": "Ninja",
|
||||
"configurationType": "Debug",
|
||||
"inheritEnvironments": [
|
||||
"AzureSphere"
|
||||
],
|
||||
"buildRoot": "${projectDir}\\out\\${name}",
|
||||
"installRoot": "${projectDir}\\out\\${name}",
|
||||
"cmakeToolchain": "${env.AzureSphereDefaultSDKDir}CMakeFiles\\AzureSphereToolchain.cmake",
|
||||
"buildCommandArgs": "-v",
|
||||
"ctestCommandArgs": "",
|
||||
"variables": [
|
||||
{
|
||||
"name": "AZURE_SPHERE_TARGET_API_SET",
|
||||
"value": "latest-lts"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ARM-Release",
|
||||
"generator": "Ninja",
|
||||
"configurationType": "Release",
|
||||
"inheritEnvironments": [
|
||||
"AzureSphere"
|
||||
],
|
||||
"buildRoot": "${projectDir}\\out\\${name}",
|
||||
"installRoot": "${projectDir}\\out\\${name}",
|
||||
"cmakeToolchain": "${env.AzureSphereDefaultSDKDir}CMakeFiles\\AzureSphereToolchain.cmake",
|
||||
"buildCommandArgs": "-v",
|
||||
"ctestCommandArgs": "",
|
||||
"variables": [
|
||||
{
|
||||
"name": "AZURE_SPHERE_TARGET_API_SET",
|
||||
"value": "latest-lts"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
/* template_appliance.h
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
/* This file maps the Avnet MT3620 Starter Kit (SK)
|
||||
* to the 'template appliance' abstraction used by the templates.
|
||||
* Some peripherals are on-board, while other peripherals must be
|
||||
* attached externally (conditionally).
|
||||
* See https://aka.ms/AzureSphereHardwareDefinitions for more
|
||||
* information on how to use hardware abstractions .
|
||||
*/
|
||||
|
||||
|
||||
#pragma once
|
||||
#include "avnet_mt3620_sk.h"
|
||||
|
||||
/* MT3620 SK: wolfssl azsphere CI app */
|
||||
#define WOLF_AZSPHERE AVNET_MT3620_SK_USER_LED_RED
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"Metadata": {
|
||||
"Type": "Azure Sphere Hardware Definition",
|
||||
"Version": 1
|
||||
},
|
||||
"Description":
|
||||
{
|
||||
"Name": "Template hardware abstraction for Avnet MT3620 SK",
|
||||
"MainCoreHeaderFileTopContent": [
|
||||
"/* Copyright (C) 2006-2022 wolfSSL Inc.",
|
||||
" * This file is part of wolfSSL.",
|
||||
" *",
|
||||
" * wolfSSL is free software; you can redistribute it and/or modify",
|
||||
" * it under the terms of the GNU General Public License as published by",
|
||||
" * the Free Software Foundation; either version 2 of the License, or",
|
||||
" * (at your option) any later version.",
|
||||
" *",
|
||||
" * wolfSSL is distributed in the hope that it will be useful,",
|
||||
" * but WITHOUT ANY WARRANTY; without even the implied warranty of",
|
||||
" * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the",
|
||||
" * GNU General Public License for more details.",
|
||||
" *",
|
||||
" * You should have received a copy of the GNU General Public License",
|
||||
" * along with this program; if not, write to the Free Software",
|
||||
" * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA",
|
||||
" */",
|
||||
|
||||
"/* This file maps the Avnet MT3620 Starter Kit (SK)",
|
||||
" * to the 'template appliance' abstraction used by the templates.",
|
||||
" * Some peripherals are on-board, while other peripherals must be",
|
||||
" * attached externally (conditionally).",
|
||||
" * See https://aka.ms/AzureSphereHardwareDefinitions for more",
|
||||
" * information on how to use hardware abstractions .",
|
||||
" */"
|
||||
]
|
||||
},
|
||||
"Imports" : [ {"Path": "avnet_mt3620_sk.json"} ],
|
||||
"Peripherals": [
|
||||
{"Name": "WOLF_AZSPHERE", "Type": "Gpio", "Mapping": "AVNET_MT3620_SK_USER_LED_RED", "Comment": "MT3620 SK: User LED."}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
/* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
/* This file maps the MT3620 reference development board (RDB)
|
||||
* to the 'template appliance' abstraction used by the templates.
|
||||
* Some peripherals are on-board, while other peripherals must be
|
||||
* attached externally (conditionally).
|
||||
* See https://aka.ms/AzureSphereHardwareDefinitions for more
|
||||
* information on how to use hardware abstractions .
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "mt3620_rdb.h"
|
||||
|
||||
/* MT3620 SK: wolfssl azsphere CI app */
|
||||
#define WOLF_AZSPHERE MT3620_RDB_LED1_RED
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"Metadata": {
|
||||
"Type": "Azure Sphere Hardware Definition",
|
||||
"Version": 1
|
||||
},
|
||||
"Description":
|
||||
{
|
||||
"Name": "Template hardware abstraction for MT3620 RDB",
|
||||
"MainCoreHeaderFileTopContent": [
|
||||
"/* Copyright (C) 2006-2022 wolfSSL Inc.",
|
||||
" * This file is part of wolfSSL.",
|
||||
" *",
|
||||
" * wolfSSL is free software; you can redistribute it and/or modify",
|
||||
" * it under the terms of the GNU General Public License as published by",
|
||||
" * the Free Software Foundation; either version 2 of the License, or",
|
||||
" * (at your option) any later version.",
|
||||
" *",
|
||||
" * wolfSSL is distributed in the hope that it will be useful,",
|
||||
" * but WITHOUT ANY WARRANTY; without even the implied warranty of",
|
||||
" * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the",
|
||||
" * GNU General Public License for more details.",
|
||||
" *",
|
||||
" * You should have received a copy of the GNU General Public License",
|
||||
" * along with this program; if not, write to the Free Software",
|
||||
" * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA",
|
||||
" */",
|
||||
|
||||
"/* This file maps the MT3620 reference development board (RDB)",
|
||||
" * to the 'template appliance' abstraction used by the templates.",
|
||||
" * Some peripherals are on-board, while other peripherals must be",
|
||||
" * attached externally (conditionally).",
|
||||
" * See https://aka.ms/AzureSphereHardwareDefinitions for more",
|
||||
" * information on how to use hardware abstractions .",
|
||||
" */"
|
||||
]
|
||||
},
|
||||
"Imports" : [ {"Path": "mt3620_rdb.json"} ],
|
||||
"Peripherals": [
|
||||
{"Name": "WOLF_AZSPHERE", "Type": "Gpio", "Mapping": "MT3620_RDB_LED1_RED", "Comment": "MT3620 RDB: LED 1 (red channel)"}
|
||||
]
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
/* wolfssl_demo.h
|
||||
/* template_appliance.h
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
*
|
||||
@@ -19,30 +19,17 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
#ifndef WOLFSSL_DEMO_H_
|
||||
#define WOLFSSL_DEMO_H_
|
||||
/* This file maps the Seeed MT3620 Mini Development Board (MDB)
|
||||
* to the 'template appliance' abstraction used by the templates.
|
||||
* Some peripherals are on-board, while other peripherals must be
|
||||
* attached externally (conditionally).
|
||||
* See https://aka.ms/AzureSphereHardwareDefinitions for more
|
||||
* information on how to use hardware abstractions .
|
||||
*/
|
||||
|
||||
#define FREQ 10000 /* Hz */
|
||||
#pragma once
|
||||
#include "seeed_mt3620_mdb.h"
|
||||
|
||||
/* Enable wolfcrypt test */
|
||||
/* can be enabled with benchmark test */
|
||||
/*#define CRYPT_TEST*/
|
||||
/* MT3620 SK: wolfssl azsphere CI app */
|
||||
#define WOLF_AZSPHERE SEEED_MT3620_MDB_USER_LED
|
||||
|
||||
/* Enable benchmark */
|
||||
/* can be enabled with cyrpt test */
|
||||
/*#define BENCHMARK*/
|
||||
|
||||
/* Enable TLS client */
|
||||
/* cannot enable with other definition */
|
||||
#define TLS_CLIENT
|
||||
|
||||
/* Enable TLS server */
|
||||
/* cannot enable with other definition */
|
||||
/* #define TLS_SERVER */
|
||||
|
||||
void wolfSSL_TLS_client_init();
|
||||
void wolfSSL_TLS_client();
|
||||
void wolfSSL_TLS_server_init(byte);
|
||||
void wolfSSL_TLS_server();
|
||||
|
||||
#endif /* WOLFSSL_DEMO_H_ */
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"Metadata": {
|
||||
"Type": "Azure Sphere Hardware Definition",
|
||||
"Version": 1
|
||||
},
|
||||
"Description":
|
||||
{
|
||||
"Name": "Template hardware abstraction for Seeed MT3620 MDB",
|
||||
"MainCoreHeaderFileTopContent": [
|
||||
"/* Copyright (C) 2006-2022 wolfSSL Inc.",
|
||||
" * This file is part of wolfSSL.",
|
||||
" *",
|
||||
" * wolfSSL is free software; you can redistribute it and/or modify",
|
||||
" * it under the terms of the GNU General Public License as published by",
|
||||
" * the Free Software Foundation; either version 2 of the License, or",
|
||||
" * (at your option) any later version.",
|
||||
" *",
|
||||
" * wolfSSL is distributed in the hope that it will be useful,",
|
||||
" * but WITHOUT ANY WARRANTY; without even the implied warranty of",
|
||||
" * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the",
|
||||
" * GNU General Public License for more details.",
|
||||
" *",
|
||||
" * You should have received a copy of the GNU General Public License",
|
||||
" * along with this program; if not, write to the Free Software",
|
||||
" * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA",
|
||||
" */",
|
||||
|
||||
"/* This file maps the Seeed MT3620 Mini Development Board (MDB)",
|
||||
" * to the 'template appliance' abstraction used by the templates.",
|
||||
" * Some peripherals are on-board, while other peripherals must be",
|
||||
" * attached externally (conditionally).",
|
||||
" * See https://aka.ms/AzureSphereHardwareDefinitions for more",
|
||||
" * information on how to use hardware abstractions .",
|
||||
" */"
|
||||
]
|
||||
},
|
||||
"Imports" : [ {"Path": "seeed_mt3620_mdb.json"} ],
|
||||
"Peripherals": [
|
||||
{"Name": "WOLF_AZSPHERE", "Type": "Gpio", "Mapping": "SEEED_MT3620_MDB_USER_LED", "Comment": "MT3620 MDB: User LED."}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"SchemaVersion": 1,
|
||||
"Name": "wolfssl_new_azsphere",
|
||||
"ComponentId": "959b4478-a9a3-440a-b1e7-9bb0b1f1d357",
|
||||
"EntryPoint": "/bin/app",
|
||||
"CmdArgs": [],
|
||||
"Capabilities": {
|
||||
"Gpio": [ "$WOLF_AZSPHERE" ],
|
||||
"AllowedApplicationConnections": []
|
||||
},
|
||||
"ApplicationType": "Default"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
/// <summary>
|
||||
/// This identifier should be defined before including any of the networking-related header files.
|
||||
/// It indicates which version of the Wi-Fi data structures the application uses.
|
||||
/// </summary>
|
||||
#define NETWORKING_STRUCTS_VERSION 1
|
||||
|
||||
/// <summary>
|
||||
/// This identifier must be defined before including any of the Wi-Fi related header files.
|
||||
/// It indicates which version of the Wi-Fi data structures the application uses.
|
||||
/// </summary>
|
||||
#define WIFICONFIG_STRUCTS_VERSION 1
|
||||
|
||||
/// <summary>
|
||||
/// This identifier must be defined before including any of the UART-related header files.
|
||||
/// It indicates which version of the UART data structures the application uses.
|
||||
/// </summary>
|
||||
#define UART_STRUCTS_VERSION 1
|
||||
|
||||
/// <summary>
|
||||
/// This identifier must be defined before including any of the SPI-related header files.
|
||||
/// It indicates which version of the SPI data structures the application uses.
|
||||
/// </summary>
|
||||
#define SPI_STRUCTS_VERSION 1
|
||||
14
IDE/MSVS-2019-AZSPHERE/wolfssl_new_azsphere/launch.vs.json
Normal file
14
IDE/MSVS-2019-AZSPHERE/wolfssl_new_azsphere/launch.vs.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"version": "0.2.1",
|
||||
"configurations": [
|
||||
{
|
||||
"type": "azurespheredbg",
|
||||
"name": "wolfssl_new_azsphere (HLCore)",
|
||||
"project": "CMakeLists.txt",
|
||||
"workingDirectory": "${workspaceRoot}",
|
||||
"applicationPath": "${debugInfo.target}",
|
||||
"imagePath": "${debugInfo.targetImage}",
|
||||
"partnerComponents": []
|
||||
}
|
||||
]
|
||||
}
|
||||
92
IDE/MSVS-2019-AZSPHERE/wolfssl_new_azsphere/main.c
Normal file
92
IDE/MSVS-2019-AZSPHERE/wolfssl_new_azsphere/main.c
Normal file
@@ -0,0 +1,92 @@
|
||||
/* main.c
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <applibs/log.h>
|
||||
#include <applibs/gpio.h>
|
||||
#include <wolfssl/wolfcrypt/settings.h>
|
||||
#ifndef WOLFSSL_USER_SETTINGS
|
||||
#error "user_settings.h not included"
|
||||
#endif
|
||||
#include <server.h>
|
||||
#include <client.h>
|
||||
|
||||
/*
|
||||
* The following #include imports a "template appliance" definition. This app
|
||||
* comes with multiple implementations of the template appliance, each in a
|
||||
* separate directory, which allow the code to run unchanged on different
|
||||
* hardware.
|
||||
*
|
||||
* By default, this app targets hardware that follows the MT3620-mini Reference
|
||||
* Development Board (MDB) specification, such as the MT3620-mini Dev Kit from
|
||||
* Seeed Studio.
|
||||
*
|
||||
* To target different hardware, you'll need to update CMakeLists.txt.
|
||||
* For example, to target the Avnet MT3620 Starter Kit, make this update:
|
||||
* azsphere_target_hardware_definition(${PROJECT_NAME}
|
||||
* TARGET_DIRECTORY "HardwareDefinitions/avnet_mt3620_sk"
|
||||
* TARGET_DEFINITION "template_appliance.json")
|
||||
*
|
||||
* See https://aka.ms/AzureSphereHardwareDefinitions for more details.
|
||||
*/
|
||||
#include <hw/template_appliance.h>
|
||||
|
||||
typedef enum {
|
||||
ExitCode_Success = 0,
|
||||
|
||||
ExitCode_Main_Led = 1
|
||||
} ExitCode;
|
||||
|
||||
int main(void)
|
||||
{
|
||||
Log_Debug(
|
||||
"\nVisit https://github.com/Azure/azure-sphere-samples for other"
|
||||
" examples.\n");
|
||||
int ret;
|
||||
|
||||
int fd = GPIO_OpenAsOutput(WOLF_AZSPHERE, GPIO_OutputMode_PushPull, GPIO_Value_High);
|
||||
if (fd < 0) {
|
||||
Log_Debug(
|
||||
"Error opening GPIO: %s (%d). Check that app_manifest.json includes"
|
||||
" the GPIO used.\n",
|
||||
strerror(errno), errno);
|
||||
return ExitCode_Main_Led;
|
||||
}
|
||||
|
||||
const struct timespec sleepTime = {.tv_sec = 1, .tv_nsec = 0};
|
||||
|
||||
printf("Launching the server...\n");
|
||||
ret = azsphere_server_app();
|
||||
printf("ret azsphere_server_app = %d\n", ret);
|
||||
|
||||
/* if server exists continually blink the red LED indicating server needs
|
||||
* to be rebooted */
|
||||
while (true) {
|
||||
GPIO_SetValue(fd, GPIO_Value_Low);
|
||||
nanosleep(&sleepTime, NULL);
|
||||
GPIO_SetValue(fd, GPIO_Value_High);
|
||||
nanosleep(&sleepTime, NULL);
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Place CMakeList in needed directories
|
||||
|
||||
cp CMakeLists_wolfSSL.txt ../../CMakeLists.txt
|
||||
|
||||
@@ -12,6 +12,9 @@ LD = $(CC)
|
||||
INCLUDES += -I../../../ -I../../../wolfssl/wolfcrypt/port/caam/
|
||||
CCFLAGS += -O2 -Wall
|
||||
|
||||
# For debugging print outs build with WOLFSSL_CAAM_PRINT defined
|
||||
#CCFLAGS += -DWOLFSSL_CAAM_PRINT -O2 -Wall
|
||||
|
||||
SRCS = \
|
||||
../../../wolfcrypt/src/port/caam/caam_driver.c \
|
||||
../../../wolfcrypt/src/port/caam/caam_error.c \
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <wolfssl/wolfcrypt/wc_port.h>
|
||||
#include <wolfcrypt/benchmark/benchmark.h>
|
||||
#include <stdio.h>
|
||||
#include "hw.h" /* Needed for 'delay_us' prototype */
|
||||
|
||||
typedef struct func_args {
|
||||
int argc;
|
||||
|
||||
@@ -76,7 +76,7 @@ The wolfssl Project Summary is listed below and is relevant for every project.
|
||||
|Common General Use Mutexes|Enabled|
|
||||
|Common General Enable Backward Compatibility|Enabled|
|
||||
|Common Memory Allocation Support Dynamic Allocation|Enabled|
|
||||
|Common Memory Allocation Total Heap Size|increase depending on your environment<br> e.g. 0x20000|
|
||||
|Common Memory Allocation Total Heap Size|increase depending on your environment<br> e.g. 0x20000, <br> e.g. 0x30000 when using multi thread example|
|
||||
|
||||
+ Add `Heap 4` stack to sce_tst_thread from `New Stack` -> `RTOS` -> `FreeRTOS Heap 4`
|
||||
+ Add `FreeRTOS + TCP` stack to sce_tst_thread from `New Stack` -> `Networking` -> `FreeRTOS+TCP` and set properties
|
||||
@@ -158,48 +158,162 @@ static const byte ucIPAddress[4] = { 192, 168, 11, 241 };
|
||||
$ autogen.sh
|
||||
$ ./configure --enable-extended-master=no CFLAGS="-DWOLFSSL_STATIC_RSA -DHAVE_AES_CBC"
|
||||
```
|
||||
|
||||
Run peer wolfSSL server
|
||||
|
||||
RSA sign and verify use, launch server with the following option
|
||||
```
|
||||
$./example/server/server -b -d -i
|
||||
```
|
||||
|
||||
You will see the following message on J-LinK RTT Viewer
|
||||
```
|
||||
cipher : AES128-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : AES256-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : ECDHE-RSA-AES128-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : ECDHE-RSA-AES128-GCM-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
$./examples/server/server -b -d -i
|
||||
```
|
||||
|
||||
ECDSA sign and verify use, launch server with the following option
|
||||
```
|
||||
$./examples/server/server -b -d -c ./certs/server-ecc.pem -k ./certs/ecc-key.pem
|
||||
```
|
||||
|
||||
You will see the following message on J-LinK RTT Viewer
|
||||
```
|
||||
cipher : ECDHE-ECDSA-AES128-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : ECDHE-ECDSA-AES128-GCM-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
$./examples/server/server -b -d -c -i ./certs/server-ecc.pem -k ./certs/ecc-key.pem
|
||||
```
|
||||
|
||||
5.) Run the example Client
|
||||
|
||||
You will see the following message on J-LinK RTT Viewer when using RSA sign and verify.
|
||||
```
|
||||
Start Client Example,
|
||||
Connecting to 192.168.11.xx
|
||||
|
||||
[wolfSSL_TLS_client_do(00)][00] Start to connect to the server.
|
||||
[wolfSSL_TLS_client_do(00)][00] Cipher : NULL
|
||||
[wolfSSL_TLS_client_do(00)][00] Received: I hear you fa shizzle!
|
||||
|
||||
[wolfSSL_TLS_client_do(01)][01] Start to connect to the server.
|
||||
[wolfSSL_TLS_client_do(01)][01] Cipher : ECDHE-RSA-AES128-GCM-SHA256
|
||||
[wolfSSL_TLS_client_do(01)][01] Received: I hear you fa shizzle!
|
||||
|
||||
[wolfSSL_TLS_client_do(02)][02] Start to connect to the server.
|
||||
[wolfSSL_TLS_client_do(02)][02] Cipher : ECDHE-RSA-AES256-SHA
|
||||
[wolfSSL_TLS_client_do(02)][02] Received: I hear you fa shizzle!
|
||||
|
||||
[wolfSSL_TLS_client_do(03)][03] Start to connect to the server.
|
||||
[wolfSSL_TLS_client_do(03)][03] Cipher : ECDHE-RSA-AES128-SHA256
|
||||
[wolfSSL_TLS_client_do(03)][03] Received: I hear you fa shizzle!
|
||||
|
||||
[wolfSSL_TLS_client_do(04)][04] Start to connect to the server.
|
||||
[wolfSSL_TLS_client_do(04)][04] Cipher : AES128-SHA256
|
||||
[wolfSSL_TLS_client_do(04)][04] Received: I hear you fa shizzle!
|
||||
|
||||
|
||||
End of Client Example
|
||||
```
|
||||
|
||||
You will see the following message on J-LinK RTT Viewer when using ECDSA sign and verify.
|
||||
```
|
||||
Start Client Example,
|
||||
Connecting to 192.168.11.xx
|
||||
|
||||
[wolfSSL_TLS_client_do(00)][00] Start to connect to the server.
|
||||
[wolfSSL_TLS_client_do(00)][00] Cipher : NULL
|
||||
[wolfSSL_TLS_client_do(00)][00] Received: I hear you fa shizzle!
|
||||
|
||||
[wolfSSL_TLS_client_do(01)][01] Start to connect to the server.
|
||||
[wolfSSL_TLS_client_do(01)][01] Cipher : ECDHE-ECDSA-AES128-GCM-SHA256
|
||||
[wolfSSL_TLS_client_do(01)][01] Received: I hear you fa shizzle!
|
||||
|
||||
[wolfSSL_TLS_client_do(02)][02] Start to connect to the server.
|
||||
[wolfSSL_TLS_client_do(02)][02] Cipher : ECDHE-ECDSA-AES256-SHA
|
||||
[wolfSSL_TLS_client_do(02)][02] Received: I hear you fa shizzle!
|
||||
|
||||
[wolfSSL_TLS_client_do(03)][03] Start to connect to the server.
|
||||
[wolfSSL_TLS_client_do(03)][03] Cipher : ECDHE-ECDSA-AES128-SHA256
|
||||
[wolfSSL_TLS_client_do(03)][03] Received: I hear you fa shizzle!
|
||||
|
||||
|
||||
End of Client Exampl
|
||||
```
|
||||
|
||||
**Note**\
|
||||
To run "RSA verify" client, enable "#define USE_CERT_BUFFERS_2048" in wolfssl_demo.h\
|
||||
To run "ECDSA verify" client, enable "#define USE_CERT_BUFFERS_256" in wolfssl_demo.h
|
||||
|
||||
|
||||
### Run Multi Client Session example
|
||||
1.) Enable TLS_CLIENT and TLS_MULTITHREAD_TEST definition in wolfssl_demo.h of test_RA6M4 projet
|
||||
|
||||
2.) Follow [Run Client](#run-client) instruction
|
||||
|
||||
3.) Prepare peer wolfssl server
|
||||
|
||||
RSA sign and verify use, launch server with the following option
|
||||
```
|
||||
$./examples/server/server -b -d -i -p 11111
|
||||
|
||||
Open another terminal and launch another server example
|
||||
$./examples/server/server -b -d -i -p 11112
|
||||
```
|
||||
|
||||
ECDSA sign and verify use, launch server with the following option
|
||||
```
|
||||
$./examples/server/server -b -d -c -i ./certs/server-ecc.pem -k ./certs/ecc-key.pem -p 11111
|
||||
|
||||
Open another terminal and launch another server example
|
||||
$./examples/server/server -b -d -c -i ./certs/server-ecc.pem -k ./certs/ecc-key.pem -p 11112
|
||||
```
|
||||
|
||||
4.) Run Multi Client Session Example
|
||||
You will see similar following message on J-LinK RTT Viewer when using ECDSA sign and verify.
|
||||
```
|
||||
Start Client Example,
|
||||
Connecting to 192.168.11.xx
|
||||
|
||||
clt_thd_taskA connecting to 11111 port
|
||||
clt_thd_taskB connecting to 11112 port
|
||||
[clt_thd_taskA][00] Ready to connect.
|
||||
[clt_thd_taskA][00] Start to connect to the server.
|
||||
[clt_thd_taskA][00] Cipher : ECDHE-RSA-AES128-GCM-SHA256
|
||||
[clt_thd_taskB][00] Ready to connect.
|
||||
[clt_thd_taskB][00] Start to connect to the server.
|
||||
[clt_thd_taskB][00] Cipher : ECDHE-RSA-AES128-SHA256
|
||||
[clt_thd_taskB][00] Received: I hear you fa shizzle!
|
||||
|
||||
[clt_thd_taskA][00] Received: I hear you fa shizzle!
|
||||
|
||||
clt_thd_taskA connecting to 11111 port
|
||||
clt_thd_taskB connecting to 11112 port
|
||||
[clt_thd_taskA][00] Ready to connect.
|
||||
[clt_thd_taskA][00] Start to connect to the server.
|
||||
[clt_thd_taskA][00] Cipher : AES128-SHA256
|
||||
[clt_thd_taskB][00] Ready to connect.
|
||||
[clt_thd_taskB][00] Start to connect to the server.
|
||||
[clt_thd_taskB][00] Cipher : AES256-SHA256
|
||||
[clt_thd_taskA][00] Received: I hear you fa shizzle!
|
||||
|
||||
[clt_thd_taskB][00] Received: I hear you fa shizzle!
|
||||
|
||||
|
||||
End of Client Example
|
||||
```
|
||||
|
||||
You will see similar following message on J-LinK RTT Viewer when using ECDSA sign and verify.
|
||||
```
|
||||
Start Client Example,
|
||||
Connecting to 192.168.11.xx
|
||||
|
||||
clt_thd_taskA connecting to 11111 port
|
||||
clt_thd_taskB connecting to 11112 port
|
||||
[clt_thd_taskA][00] Ready to connect.
|
||||
[clt_thd_taskA][00] Start to connect to the server.
|
||||
[clt_thd_taskA][00] Cipher : ECDHE-ECDSA-AES128-GCM-SHA256
|
||||
[clt_thd_taskB][00] Ready to connect.
|
||||
[clt_thd_taskB][00] Start to connect to the server.
|
||||
[clt_thd_taskB][00] Cipher : ECDHE-ECDSA-AES128-SHA256
|
||||
[clt_thd_taskB][00] Received: I hear you fa shizzle!
|
||||
|
||||
[clt_thd_taskA][00] Received: I hear you fa shizzle!
|
||||
|
||||
|
||||
End of Client Example
|
||||
```
|
||||
|
||||
**Note**\
|
||||
Multi Client session use case is only able to run threads that all use either SCE cipher suite or SW cipher suite.
|
||||
The example program runs two threads that use SCE cipher suite.
|
||||
|
||||
## Run Crypt test and Benchmark
|
||||
|
||||
1.) Enable CRYPT_TEST and/or BENCHMARK definition in wolfssl_demo.h
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* wolfssl_demo.h
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
@@ -35,6 +35,10 @@
|
||||
#define DIRECT_KEY_ADDRESS_256 FLASH_HP_DF_BLOCK_1
|
||||
#define DIRECT_KEY_ADDRESS_128 FLASH_HP_DF_BLOCK_2
|
||||
|
||||
/* Client connects to the server with these details. */
|
||||
#define SERVER_IP "192.168.11.49"
|
||||
#define DEFAULT_PORT 11111
|
||||
|
||||
/* Enable wolfcrypt test */
|
||||
/* can be enabled with benchmark test */
|
||||
/*#define CRYPT_TEST*/
|
||||
@@ -46,11 +50,12 @@
|
||||
/* Enable TLS client */
|
||||
/* cannot enable with CRYPT_TEST or BENCHMARK */
|
||||
#define TLS_CLIENT
|
||||
/* Specify cipher suites that are supported by SCE
|
||||
* ClientHello specifies the cipher suite to communicate peer Server
|
||||
* so that TLS handshake uses SCE protect mode
|
||||
*/
|
||||
#define TEST_CIPHER_SPECIFIED
|
||||
|
||||
/* use multi-thread example */
|
||||
/*#define TLS_MULTITHREAD_TEST*/
|
||||
#if defined(TLS_MULTITHREAD_TEST)
|
||||
#define THREAD_STACK_SIZE (5 * 1024)
|
||||
#endif
|
||||
|
||||
/* Use RSA certificates */
|
||||
#define USE_CERT_BUFFERS_2048
|
||||
@@ -61,8 +66,29 @@
|
||||
#error please set either macro USE_CERT_BUFFERS_2048 or USE_CERT_BUFFERS_256
|
||||
#endif
|
||||
|
||||
typedef struct tagTestInfo
|
||||
{
|
||||
int id;
|
||||
int port;
|
||||
char name[32];
|
||||
const char* cipher;
|
||||
WOLFSSL_CTX* ctx;
|
||||
wolfSSL_Logging_cb log_f;
|
||||
#if defined(TLS_MULTITHREAD_TEST)
|
||||
SemaphoreHandle_t xBinarySemaphore;
|
||||
#endif
|
||||
} TestInfo;
|
||||
|
||||
void sce_test();
|
||||
void TCPInit();
|
||||
void wolfSSL_TLS_client_init();
|
||||
void wolfSSL_TLS_client();
|
||||
void wolfSSL_TLS_client_do(void *pvParam);
|
||||
void wolfSSL_TLS_cleanup();
|
||||
extern WOLFSSL_CTX *client_ctx;
|
||||
|
||||
#ifdef TLS_MULTITHREAD_TEST
|
||||
extern xSemaphoreHandle exit_semaph;
|
||||
#endif
|
||||
|
||||
static void util_Cleanup(xSocket_t xSock, WOLFSSL_CTX *ctx, WOLFSSL *ssl) {
|
||||
printf("Cleaning up socket and wolfSSL objects.\n");
|
||||
|
||||
@@ -10,9 +10,10 @@ EXTRA_DIST+= IDE/Renesas/e2studio/RA6M4/test/.project
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RA6M4/test/test_RA6M4Debug.launch
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RA6M4/test/src/test_main.c
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RA6M4/test/src/wolf_client.c
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RA6M4/test/src/wolfssl_sce_unit_test.c
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RA6M4/test/src/SEGGER_RTT/myprint.c
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RA6M4/test/src/common/.gitignore
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RA6M4/test/key_data/key_data_sce.c
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RA6M4/test/key_data/key_data.h
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RA6M4/common/wolfssl_demo.h
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RA6M4/common/user_settings.h
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RA6M4/common/user_settings.h
|
||||
@@ -72,32 +72,32 @@ const st_user_key_block_data_t g_key_block_data =
|
||||
* This is used for Root Certificate verify by SCE */
|
||||
const unsigned char ca_cert_der_sign[] =
|
||||
{
|
||||
0x7C, 0xD5, 0x00, 0x40, 0x1A, 0x97, 0xAE, 0x31, 0xC0, 0x6B,
|
||||
0x5E, 0x65, 0x9B, 0x95, 0xB8, 0xC0, 0xC9, 0xC9, 0xF7, 0xC9,
|
||||
0xA2, 0x28, 0x39, 0xE7, 0x02, 0xF0, 0x4C, 0x3C, 0xE7, 0x8C,
|
||||
0x8E, 0x9C, 0xFC, 0x96, 0x74, 0xCD, 0xDE, 0xE8, 0x08, 0x9A,
|
||||
0x40, 0xD6, 0xE0, 0xC5, 0x20, 0x5B, 0xD8, 0xA6, 0x03, 0xA3,
|
||||
0x60, 0x37, 0xD8, 0x8B, 0x17, 0x6D, 0x47, 0x7E, 0x5D, 0x1C,
|
||||
0x75, 0x02, 0x08, 0x97, 0x14, 0x1E, 0x96, 0x3C, 0xEF, 0x76,
|
||||
0x63, 0x40, 0x99, 0x47, 0xFD, 0xDC, 0xF4, 0xB2, 0xA2, 0xDA,
|
||||
0x40, 0x75, 0x3C, 0x2C, 0x6A, 0xAC, 0x11, 0xE3, 0xE8, 0xDC,
|
||||
0x8F, 0xCB, 0xD1, 0xC5, 0x35, 0x57, 0x8C, 0x4A, 0x4C, 0xFB,
|
||||
0xAE, 0xF4, 0x5F, 0x32, 0xCE, 0xD2, 0x67, 0x69, 0x9D, 0x08,
|
||||
0x0A, 0x1A, 0x34, 0xB7, 0x27, 0x7D, 0xFB, 0xED, 0xE4, 0x84,
|
||||
0x18, 0xAD, 0xCA, 0xBA, 0xE1, 0x45, 0xAA, 0x15, 0xC8, 0x08,
|
||||
0x2B, 0x2F, 0x64, 0x83, 0x3A, 0xC3, 0x5B, 0x6F, 0xA6, 0xEB,
|
||||
0x07, 0x14, 0xCA, 0x0B, 0x5B, 0x64, 0x6F, 0x75, 0xE5, 0xDF,
|
||||
0x53, 0x33, 0xFD, 0xC3, 0xC2, 0x75, 0xA9, 0xA4, 0x3B, 0x4E,
|
||||
0x8E, 0xFC, 0x43, 0xB9, 0x03, 0x56, 0xBB, 0x12, 0xD3, 0x64,
|
||||
0x65, 0x1E, 0x79, 0x18, 0xC8, 0x29, 0x3C, 0xB2, 0x9F, 0x5B,
|
||||
0x3B, 0x0B, 0x7A, 0x59, 0x43, 0xBB, 0x2A, 0xEF, 0xF0, 0x2C,
|
||||
0x50, 0xCD, 0x0C, 0xC5, 0x0E, 0x08, 0x5C, 0xB0, 0x31, 0xD4,
|
||||
0x9C, 0xF4, 0xE2, 0x45, 0xC3, 0x4C, 0xBB, 0x29, 0x44, 0x13,
|
||||
0x89, 0xE2, 0x7F, 0xD7, 0xE5, 0x7C, 0x2D, 0x89, 0xCA, 0xD4,
|
||||
0xB0, 0x2E, 0xAF, 0x2C, 0x8D, 0x84, 0x87, 0x30, 0x40, 0x4D,
|
||||
0xC5, 0x42, 0x6A, 0x1C, 0xF3, 0x6A, 0x24, 0xE5, 0x48, 0xA5,
|
||||
0x53, 0x74, 0x87, 0xA0, 0xE5, 0x69, 0xF1, 0xD1, 0x7A, 0x85,
|
||||
0x5E, 0x14, 0xD1, 0x00, 0x8A, 0xD2
|
||||
0x0E, 0x7F, 0xB2, 0x0B, 0x4E, 0x8C, 0x11, 0x5E, 0xAC, 0xD7,
|
||||
0x77, 0x3D, 0x9E, 0xA0, 0x4B, 0xA5, 0xE2, 0x9F, 0x97, 0xEB,
|
||||
0xD0, 0x1B, 0x65, 0x08, 0x7D, 0x39, 0x2E, 0xD0, 0x97, 0x19,
|
||||
0xB6, 0x47, 0xF4, 0xCC, 0xA0, 0x24, 0xFA, 0xA6, 0x08, 0x11,
|
||||
0xF4, 0xDC, 0x82, 0xCC, 0xB6, 0x14, 0xF1, 0x4A, 0x63, 0x67,
|
||||
0xF2, 0x87, 0x0C, 0xA9, 0x31, 0x03, 0xAF, 0xD5, 0x4B, 0x1B,
|
||||
0xD9, 0x99, 0x6E, 0xB4, 0xBD, 0xAB, 0x7F, 0x64, 0xB8, 0x8B,
|
||||
0xFF, 0x45, 0xFC, 0xE5, 0x86, 0xE8, 0x95, 0x4E, 0xBD, 0x7F,
|
||||
0x21, 0xB5, 0xCD, 0x25, 0x85, 0x16, 0x32, 0x6C, 0x8A, 0xC5,
|
||||
0xE7, 0xEB, 0x58, 0xA8, 0xCC, 0xD2, 0x33, 0xFC, 0xBB, 0x88,
|
||||
0xBC, 0x15, 0xDB, 0xDD, 0x6B, 0x15, 0xE3, 0x43, 0x31, 0xA9,
|
||||
0xA2, 0x2E, 0x9C, 0x8C, 0x44, 0x69, 0x1A, 0x72, 0x49, 0xAD,
|
||||
0x94, 0x8B, 0xD9, 0xA7, 0x47, 0x91, 0xA1, 0xF0, 0xAA, 0xA4,
|
||||
0xAB, 0x5B, 0xC9, 0x8F, 0x48, 0xFE, 0x6B, 0x06, 0x7A, 0xF0,
|
||||
0xC0, 0x39, 0xEF, 0xF1, 0x38, 0x96, 0x03, 0xC8, 0xDC, 0xBE,
|
||||
0xF7, 0xDB, 0xBA, 0x09, 0xA4, 0x62, 0xD1, 0x39, 0xAD, 0x1D,
|
||||
0xEB, 0x28, 0x85, 0x53, 0x76, 0xF2, 0x52, 0x3B, 0x26, 0xF2,
|
||||
0x16, 0x01, 0xB0, 0xEF, 0x2B, 0x09, 0x2F, 0x30, 0x17, 0x6F,
|
||||
0x04, 0x5C, 0x75, 0xE5, 0x7D, 0xD0, 0xCB, 0x84, 0xDE, 0xEB,
|
||||
0x24, 0x45, 0x3D, 0x3A, 0x56, 0xC4, 0x64, 0x63, 0xD9, 0x00,
|
||||
0x23, 0x5F, 0xEE, 0xD9, 0x2E, 0xA9, 0xDC, 0x94, 0xA7, 0x8D,
|
||||
0xB6, 0xD9, 0xDF, 0x96, 0x8F, 0x8B, 0x81, 0x83, 0x8A, 0x8E,
|
||||
0x36, 0x45, 0xC7, 0xB7, 0x59, 0xA0, 0x9D, 0xE8, 0xFE, 0x62,
|
||||
0x5C, 0x7A, 0xF2, 0x9E, 0xF9, 0xB6, 0x75, 0x46, 0x44, 0x6D,
|
||||
0x96, 0xFC, 0x3E, 0xE2, 0x17, 0x52, 0x0D, 0x70, 0x37, 0xD9,
|
||||
0xAE, 0x1D, 0x25, 0x30, 0xF7, 0xD9
|
||||
};
|
||||
|
||||
const int sizeof_ca_cert_der_sign = sizeof(ca_cert_der_sign);
|
||||
@@ -108,32 +108,32 @@ const int sizeof_ca_cert_der_sign = sizeof(ca_cert_der_sign);
|
||||
*/
|
||||
const unsigned char ca_ecc_cert_der_sign[] =
|
||||
{
|
||||
0x6B, 0x56, 0xCA, 0x33, 0x2A, 0x87, 0xEC, 0x82, 0x64, 0x8A,
|
||||
0xFF, 0x64, 0x5B, 0xAF, 0x10, 0xEB, 0x0A, 0xC1, 0x6F, 0xDF,
|
||||
0x22, 0xC7, 0x90, 0xE5, 0xAB, 0x13, 0xB4, 0xC5, 0xA4, 0x95,
|
||||
0x48, 0x52, 0x58, 0xE3, 0xF9, 0x00, 0xD6, 0x0E, 0xCC, 0xB2,
|
||||
0xAB, 0xCC, 0x3A, 0x0D, 0x75, 0x27, 0x1F, 0xBB, 0x33, 0xC2,
|
||||
0x04, 0xB3, 0x0D, 0x4D, 0xAF, 0x53, 0x2D, 0xF9, 0x1F, 0x3A,
|
||||
0x4D, 0xBC, 0x68, 0x91, 0xF9, 0x50, 0x73, 0xE2, 0x67, 0x65,
|
||||
0xF0, 0xB0, 0xCF, 0xF9, 0xDB, 0xA8, 0x6B, 0x97, 0x31, 0x86,
|
||||
0x36, 0x67, 0x25, 0xF4, 0x59, 0xA2, 0x87, 0xF7, 0x86, 0x09,
|
||||
0x13, 0x0C, 0x8B, 0x3F, 0x3C, 0x10, 0xCE, 0x37, 0x26, 0x6C,
|
||||
0xED, 0x1F, 0x8B, 0x23, 0x9B, 0x07, 0x5A, 0x56, 0xA9, 0xDB,
|
||||
0xB1, 0x81, 0xA2, 0xDC, 0x82, 0xE6, 0xC7, 0x8F, 0x97, 0xDF,
|
||||
0x3E, 0x11, 0x4C, 0x74, 0x2C, 0xC3, 0xF9, 0x83, 0x58, 0x5C,
|
||||
0x37, 0xCD, 0xEB, 0x63, 0xD6, 0x9A, 0xFD, 0x6D, 0x68, 0xC3,
|
||||
0x73, 0x39, 0x08, 0x9C, 0x9A, 0x3C, 0x4E, 0x33, 0x88, 0xFF,
|
||||
0x80, 0x00, 0xBA, 0xB2, 0x76, 0xE1, 0x55, 0x7A, 0xB1, 0x52,
|
||||
0xF1, 0x6F, 0x33, 0x79, 0x5A, 0xBD, 0x33, 0x95, 0xA1, 0x02,
|
||||
0x51, 0x1C, 0x48, 0x9D, 0x09, 0x96, 0x34, 0xF6, 0x4A, 0x10,
|
||||
0x7F, 0xEF, 0x5C, 0xF0, 0x61, 0xFE, 0xA4, 0xE4, 0x39, 0xAA,
|
||||
0xE8, 0x30, 0x11, 0x9E, 0x1D, 0x08, 0x5D, 0x05, 0x78, 0x27,
|
||||
0x82, 0x5E, 0xAC, 0x73, 0x0F, 0xE9, 0xC3, 0xDA, 0x57, 0x41,
|
||||
0x26, 0x02, 0x7B, 0xBA, 0x10, 0x97, 0x5D, 0x6F, 0x3E, 0xFA,
|
||||
0xEE, 0x9C, 0x34, 0x7C, 0x09, 0x32, 0xB7, 0x49, 0xC9, 0x75,
|
||||
0xA1, 0x2E, 0x94, 0x4A, 0x4F, 0xC4, 0xAF, 0xDE, 0x6C, 0x07,
|
||||
0xFE, 0x2B, 0x1D, 0x59, 0xD1, 0x7E, 0x20, 0xDF, 0x4E, 0x6D,
|
||||
0x3D, 0x2C, 0xDA, 0xFB, 0xF3, 0x88
|
||||
0x41, 0xFC, 0x2C, 0xFD, 0x21, 0xFB, 0xF2, 0x98, 0xF3, 0x25,
|
||||
0x06, 0x8C, 0x2C, 0x4A, 0x12, 0xDB, 0xDD, 0x38, 0x39, 0x83,
|
||||
0xD5, 0x80, 0xB4, 0x52, 0xA5, 0x35, 0xA6, 0x5C, 0x38, 0x41,
|
||||
0xDA, 0xBE, 0x64, 0x84, 0x7C, 0x63, 0x7D, 0x2A, 0xBB, 0xB9,
|
||||
0x93, 0xED, 0x27, 0xE3, 0x2B, 0xAB, 0xC4, 0xBC, 0x08, 0xBE,
|
||||
0xA6, 0xF7, 0x40, 0xA3, 0x1E, 0xB1, 0x8C, 0xF8, 0x4B, 0x78,
|
||||
0x9F, 0xFE, 0xAA, 0x86, 0x15, 0xF5, 0xDD, 0xB3, 0xCD, 0xF5,
|
||||
0x3A, 0x81, 0x26, 0x3E, 0x04, 0x05, 0x65, 0xF9, 0x53, 0x8E,
|
||||
0x10, 0x1F, 0xE8, 0xD9, 0x3F, 0xA1, 0x6E, 0x8C, 0xAD, 0xFA,
|
||||
0x50, 0x36, 0xFE, 0x89, 0x4E, 0xAC, 0x27, 0xDB, 0x59, 0x80,
|
||||
0xE3, 0x77, 0x20, 0x4F, 0xC1, 0x03, 0xA4, 0x1D, 0xE5, 0x34,
|
||||
0xCB, 0x8F, 0x88, 0xD6, 0x38, 0x2A, 0x31, 0xE0, 0xC2, 0xAA,
|
||||
0x78, 0x34, 0x9C, 0xFE, 0x8F, 0x8D, 0x76, 0xDB, 0x24, 0x38,
|
||||
0xE1, 0xAB, 0xAE, 0xBA, 0xD0, 0xA9, 0x1C, 0x59, 0x01, 0xE3,
|
||||
0x49, 0x9B, 0x13, 0x7D, 0x25, 0x7C, 0x8D, 0x12, 0x36, 0xA1,
|
||||
0xEF, 0x7B, 0xD4, 0x16, 0x58, 0x3A, 0x0E, 0xE7, 0x5A, 0x36,
|
||||
0xDD, 0xD4, 0x31, 0x23, 0xBF, 0xC9, 0x49, 0x62, 0xA4, 0x01,
|
||||
0xA3, 0xAC, 0x62, 0xAB, 0xA0, 0x48, 0xE3, 0xDA, 0x72, 0xD3,
|
||||
0x6D, 0xF3, 0x57, 0x61, 0x9E, 0xEA, 0x31, 0xA7, 0x82, 0xDD,
|
||||
0x79, 0x3C, 0x8E, 0x01, 0xE9, 0xE5, 0xB2, 0x49, 0x2F, 0x3F,
|
||||
0x3F, 0x16, 0x2C, 0xCC, 0x3D, 0x78, 0x6E, 0xB6, 0x6D, 0x34,
|
||||
0x38, 0x46, 0xCC, 0xFF, 0xEF, 0x26, 0x74, 0xD8, 0x68, 0x90,
|
||||
0xF1, 0x2A, 0xAA, 0xF3, 0xF3, 0x5A, 0xFC, 0x75, 0x00, 0xE6,
|
||||
0x11, 0xE7, 0x21, 0x05, 0x6B, 0xAA, 0x53, 0x25, 0x59, 0x33,
|
||||
0xB0, 0xC0, 0x66, 0x14, 0x2F, 0x00, 0x59, 0xF3, 0xFF, 0x5E,
|
||||
0xCC, 0x10, 0x84, 0x0E, 0xE6, 0x17
|
||||
};
|
||||
static const int sizeof_ca_ecc_cert_der_sign = sizeof(ca_ecc_cert_der_sign);
|
||||
#endif /* USE_CERT_BUFFERS_256 */
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* myprintf.c
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
@@ -22,6 +22,8 @@
|
||||
|
||||
#define SEGGER_INDEX (0)
|
||||
|
||||
int myprintf(const char * sFormat, ...);
|
||||
|
||||
int myprintf(const char * sFormat, ...)
|
||||
{
|
||||
int r;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* test_main.c
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
@@ -19,15 +19,20 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
|
||||
#include "stdio.h"
|
||||
#include "stdint.h"
|
||||
#include "wolfssl_demo.h"
|
||||
#include <wolfssl/wolfcrypt/settings.h>
|
||||
#include <wolfssl/wolfcrypt/types.h>
|
||||
|
||||
#if defined(WOLFSSL_RENESAS_SCEPROTECT)
|
||||
#include <wolfssl/wolfcrypt/port/Renesas/renesas-sce-crypt.h>
|
||||
User_SCEPKCbInfo guser_PKCbInfo;
|
||||
#if defined(TLS_MULTITHREAD_TEST)
|
||||
User_SCEPKCbInfo guser_PKCbInfo_taskA;
|
||||
User_SCEPKCbInfo guser_PKCbInfo_taskB;
|
||||
#else
|
||||
User_SCEPKCbInfo guser_PKCbInfo;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <wolfssl_demo.h>
|
||||
@@ -40,6 +45,17 @@ void abort(void);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(SCE_CRYPT_UNIT_TEST)
|
||||
int sce_crypt_test();
|
||||
int sce_crypt_sha256_multitest();
|
||||
int sce_crypt_AesCbc_multitest();
|
||||
int sce_crypt_AesGcm_multitest();
|
||||
int sce_crypt_Sha_AesCbcGcm_multitest();
|
||||
void tskSha256_Test1(void *pvParam);
|
||||
#endif
|
||||
|
||||
void R_BSP_WarmStart(bsp_warm_start_event_t event);
|
||||
|
||||
/* the function is called just before main() to set up pins */
|
||||
/* this needs to be called to setup IO Port */
|
||||
void R_BSP_WarmStart (bsp_warm_start_event_t event)
|
||||
@@ -52,7 +68,7 @@ void R_BSP_WarmStart (bsp_warm_start_event_t event)
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(TLS_CLIENT) || defined(TLS_SERVER) || defined(EXTRA_SCE_TSIP_TEST)
|
||||
#if defined(TLS_CLIENT)
|
||||
|
||||
extern const st_user_key_block_data_t g_key_block_data;
|
||||
|
||||
@@ -63,7 +79,7 @@ static int SetScetlsKey()
|
||||
{
|
||||
#if defined(WOLFSSL_RENESAS_SCEPROTECT)
|
||||
|
||||
#if defined(TLS_CLIENT) || defined(EXTRA_SCE_TSIP_TEST)
|
||||
#if defined(TLS_CLIENT)
|
||||
|
||||
#if defined(USE_CERT_BUFFERS_256)
|
||||
wc_sce_inform_cert_sign((const byte *)ca_ecc_cert_der_sign);
|
||||
@@ -76,9 +92,6 @@ static int SetScetlsKey()
|
||||
(byte*)&g_key_block_data.iv,
|
||||
(byte*)&g_key_block_data.encrypted_user_rsa2048_ne_key,
|
||||
encrypted_user_key_type);
|
||||
#if defined(WOLFSSL_RENESAS_SCEPROTECT_ECC)
|
||||
guser_PKCbInfo.user_key_id = 0; /* not use user key id */
|
||||
#endif
|
||||
|
||||
#elif defined(TLS_SERVER)
|
||||
|
||||
@@ -106,12 +119,57 @@ typedef struct func_args {
|
||||
void wolfcrypt_test(func_args args);
|
||||
int benchmark_test(void *args);
|
||||
|
||||
#ifdef TLS_MULTITHREAD_TEST
|
||||
static void my_Logging_cb(const int logLevel, const char *const logMessage)
|
||||
{
|
||||
(void)logLevel;
|
||||
printf("custom-log: %s\n", logMessage);
|
||||
}
|
||||
#endif
|
||||
|
||||
void sce_test(void)
|
||||
{
|
||||
|
||||
#if defined(CRYPT_TEST) || defined(BENCHMARK)
|
||||
#if defined(CRYPT_TEST)
|
||||
#if defined(SCE_CRYPT_UNIT_TEST) && defined(WOLFSSL_RENESAS_SCEPROTECT)
|
||||
int ret = 0;
|
||||
BaseType_t xRet;
|
||||
|
||||
if ((ret = wolfCrypt_Init()) != 0) {
|
||||
printf("wolfCrypt_Init failed %d\n", ret);
|
||||
}
|
||||
printf("Start wolf sce crypt Test\n");
|
||||
|
||||
printf(" \n");
|
||||
printf(" simple crypt test by using SCE\n");
|
||||
sce_crypt_test();
|
||||
|
||||
printf(" \n");
|
||||
printf(" multi sha thread test\n");
|
||||
|
||||
sce_crypt_sha256_multitest();
|
||||
|
||||
printf(" \n");
|
||||
printf(" multi aes cbc thread test\n");
|
||||
|
||||
sce_crypt_AesCbc_multitest();
|
||||
|
||||
printf(" \n");
|
||||
printf(" multi aes gcm thread test\n");
|
||||
|
||||
sce_crypt_AesGcm_multitest();
|
||||
|
||||
printf(" \n");
|
||||
printf(" multi sha aescbc aesgcm thread test\n");
|
||||
sce_crypt_Sha_AesCbcGcm_multitest();
|
||||
|
||||
printf(" \n");
|
||||
printf("End wolf sce crypt Test\n");
|
||||
|
||||
if ((ret = wolfCrypt_Cleanup()) != 0) {
|
||||
printf("wolfCrypt_Cleanup failed %d\n", ret);
|
||||
}
|
||||
|
||||
#elif defined(CRYPT_TEST)
|
||||
int ret;
|
||||
func_args args = { 0 };
|
||||
|
||||
@@ -126,79 +184,167 @@ void sce_test(void)
|
||||
if ((ret = wolfCrypt_Cleanup()) != 0) {
|
||||
printf("wolfCrypt_Cleanup failed %d\n", ret);
|
||||
}
|
||||
#endif
|
||||
#if defined(BENCHMARK)
|
||||
|
||||
#elif defined(BENCHMARK)
|
||||
#include "hal_data.h"
|
||||
#include "r_sce.h"
|
||||
|
||||
printf("Prepare Installed key\n");
|
||||
#if defined(WOLFSSL_RENESAS_SCEPROTECT) && defined(SCEKEY_INSTALLED)
|
||||
/* aes 256 */
|
||||
memcpy(guser_PKCbInfo.sce_wrapped_key_aes256.value,
|
||||
(uint32_t *)DIRECT_KEY_ADDRESS_256, HW_SCE_AES256_KEY_INDEX_WORD_SIZE*4);
|
||||
guser_PKCbInfo.sce_wrapped_key_aes256.type = SCE_KEY_INDEX_TYPE_AES256;
|
||||
guser_PKCbInfo.aes256_installedkey_set = 1;
|
||||
/* aes 128 */
|
||||
memcpy(guser_PKCbInfo.sce_wrapped_key_aes128.value,
|
||||
(uint32_t *)DIRECT_KEY_ADDRESS_128, HW_SCE_AES128_KEY_INDEX_WORD_SIZE*4);
|
||||
|
||||
#if defined(WOLFSSL_RENESAS_SCEPROTECT) && defined(SCEKEY_INSTALLED)
|
||||
|
||||
/* aes 256 */
|
||||
memcpy(guser_PKCbInfo.sce_wrapped_key_aes256.value,
|
||||
(uint32_t *)DIRECT_KEY_ADDRESS_256,
|
||||
HW_SCE_AES256_KEY_INDEX_WORD_SIZE*4);
|
||||
guser_PKCbInfo.sce_wrapped_key_aes256.type = SCE_KEY_INDEX_TYPE_AES256;
|
||||
guser_PKCbInfo.aes256_installedkey_set = 1;
|
||||
|
||||
/* aes 128 */
|
||||
memcpy(guser_PKCbInfo.sce_wrapped_key_aes128.value,
|
||||
(uint32_t *)DIRECT_KEY_ADDRESS_128,
|
||||
HW_SCE_AES128_KEY_INDEX_WORD_SIZE*4);
|
||||
|
||||
guser_PKCbInfo.sce_wrapped_key_aes128.type = SCE_KEY_INDEX_TYPE_AES128;
|
||||
guser_PKCbInfo.aes128_installedkey_set = 1;
|
||||
#endif
|
||||
guser_PKCbInfo.aes128_installedkey_set = 1;
|
||||
|
||||
#endif
|
||||
printf("Start wolfCrypt Benchmark\n");
|
||||
benchmark_test(NULL);
|
||||
printf("End wolfCrypt Benchmark\n");
|
||||
#endif
|
||||
|
||||
#elif defined(TLS_CLIENT)
|
||||
#include "hal_data.h"
|
||||
#include "r_sce.h"
|
||||
|
||||
#if defined(USE_CERT_BUFFERS_256)
|
||||
#if defined(TEST_CIPHER_SPECIFIED)
|
||||
const char* cipherlist[] = {
|
||||
"ECDHE-ECDSA-AES128-SHA256",
|
||||
"ECDHE-ECDSA-AES128-GCM-SHA256"
|
||||
};
|
||||
const int cipherlist_sz = 2;
|
||||
#else
|
||||
const char* cipherlist[] = {
|
||||
NULL
|
||||
};
|
||||
const int cipherlist_sz = 1;
|
||||
#endif /* TEST_CIPHER_SPECIFIED */
|
||||
|
||||
#else
|
||||
#if defined(TEST_CIPHER_SPECIFIED)
|
||||
const char* cipherlist[] = {
|
||||
"AES128-SHA256",
|
||||
"AES256-SHA256",
|
||||
"ECDHE-RSA-AES128-SHA256",
|
||||
"ECDHE-RSA-AES128-GCM-SHA256"
|
||||
};
|
||||
const int cipherlist_sz = 4;
|
||||
#else
|
||||
const char* cipherlist[] = {
|
||||
NULL
|
||||
};
|
||||
const int cipherlist_sz = 1;
|
||||
#endif /* TEST_CIPHER_SPECIFIED */
|
||||
#endif
|
||||
#if defined(USE_CERT_BUFFERS_256)
|
||||
#if !defined(TLS_MULTITHREAD_TEST)
|
||||
const char* cipherlist[] = {
|
||||
NULL,
|
||||
"ECDHE-ECDSA-AES128-GCM-SHA256",
|
||||
"ECDHE-ECDSA-AES256-SHA", /* sw only */
|
||||
"ECDHE-ECDSA-AES128-SHA256"
|
||||
};
|
||||
const int cipherlist_sz = 3;
|
||||
TestInfo info[cipherlist_sz];
|
||||
#else
|
||||
const char* cipherlist[] = {
|
||||
"ECDHE-ECDSA-AES128-GCM-SHA256",
|
||||
"ECDHE-ECDSA-AES128-SHA256"
|
||||
};
|
||||
const int cipherlist_sz = 2;
|
||||
TestInfo info[cipherlist_sz];
|
||||
#endif
|
||||
#else
|
||||
#if !defined(TLS_MULTITHREAD_TEST)
|
||||
const char* cipherlist[] = {
|
||||
NULL,
|
||||
"ECDHE-RSA-AES128-GCM-SHA256",
|
||||
"ECDHE-RSA-AES256-SHA", /* sw only */
|
||||
"ECDHE-RSA-AES128-SHA256",
|
||||
"AES128-SHA256",
|
||||
"AES256-SHA256",
|
||||
};
|
||||
const int cipherlist_sz = 6;
|
||||
TestInfo info[cipherlist_sz];
|
||||
#else
|
||||
const char* cipherlist[] = {
|
||||
"ECDHE-RSA-AES128-GCM-SHA256",
|
||||
"ECDHE-RSA-AES128-SHA256",
|
||||
"AES128-SHA256",
|
||||
"AES256-SHA256",
|
||||
};
|
||||
const int cipherlist_sz = 4;
|
||||
TestInfo info[cipherlist_sz];
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef TLS_MULTITHREAD_TEST
|
||||
BaseType_t xReturned;
|
||||
BaseType_t xHigherPriorityTaskWoken;
|
||||
xHigherPriorityTaskWoken = pdFALSE;
|
||||
int j = 0;
|
||||
#endif
|
||||
int i = 0;
|
||||
|
||||
printf("\n Start Client Example, ");
|
||||
printf("\n Connecting to %s\n\n", SERVER_IP);
|
||||
|
||||
SetScetlsKey();
|
||||
|
||||
|
||||
TCPInit();
|
||||
|
||||
do {
|
||||
if(cipherlist_sz > 0 && cipherlist[i] != NULL )
|
||||
printf("cipher : %s\n", cipherlist[i]);
|
||||
#ifdef TLS_MULTITHREAD_TEST
|
||||
|
||||
wolfSSL_TLS_client_init(cipherlist[i]);
|
||||
wolfSSL_TLS_client();
|
||||
wolfSSL_TLS_client_init();
|
||||
|
||||
exit_semaph = xSemaphoreCreateCounting(cipherlist_sz, 0);
|
||||
|
||||
do {
|
||||
|
||||
for(j = i; j < (i+2); j++) {
|
||||
info[j].port = DEFAULT_PORT + (j%2);
|
||||
info[j].cipher = cipherlist[j];
|
||||
info[j].ctx = client_ctx;
|
||||
info[j].xBinarySemaphore = xSemaphoreCreateBinary();
|
||||
info[j].log_f = my_Logging_cb;
|
||||
|
||||
memset(info[j].name, 0, sizeof(info[j].name));
|
||||
sprintf(info[j].name, "clt_thd_%s", ((j%2) == 0) ?
|
||||
"taskA" : "taskB");
|
||||
|
||||
printf(" %s connecting to %d port\n", info[j].name, info[j].port);
|
||||
|
||||
xReturned = xTaskCreate(wolfSSL_TLS_client_do, info[j].name,
|
||||
THREAD_STACK_SIZE, &info[j], 2, NULL);
|
||||
if (xReturned != pdPASS) {
|
||||
printf("Failed to create task\n");
|
||||
}
|
||||
}
|
||||
|
||||
for(j = i; j < (i+2); j++) {
|
||||
xSemaphoreGiveFromISR(info[j].xBinarySemaphore,
|
||||
&xHigherPriorityTaskWoken);
|
||||
}
|
||||
|
||||
/* check if all tasks are completed */
|
||||
for(j = i; j < (i+2); j++) {
|
||||
if(!xSemaphoreTake(exit_semaph, portMAX_DELAY)) {
|
||||
printf("exit semaphore not released by test task");
|
||||
}
|
||||
}
|
||||
|
||||
i+=2;
|
||||
|
||||
} while (i < cipherlist_sz);
|
||||
|
||||
vSemaphoreDelete(exit_semaph);
|
||||
|
||||
#else
|
||||
|
||||
wolfSSL_TLS_client_init();
|
||||
|
||||
do {
|
||||
|
||||
info[i].port = DEFAULT_PORT;
|
||||
info[i].cipher = cipherlist[i];
|
||||
info[i].ctx = client_ctx;
|
||||
info[i].id = i;
|
||||
|
||||
memset(info[i].name, 0, sizeof(info[i].name));
|
||||
sprintf(info[i].name, "wolfSSL_TLS_client_do(%02d)", i);
|
||||
|
||||
wolfSSL_TLS_client_do(&info[i]);
|
||||
|
||||
i++;
|
||||
} while (i < cipherlist_sz);
|
||||
|
||||
#endif /* SCE_MULTITHREAD_TEST */
|
||||
|
||||
printf("\n End of Client Example");
|
||||
|
||||
wolfSSL_TLS_cleanup();
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* wolf_client.c
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
@@ -29,22 +29,42 @@
|
||||
#include "wolfssl/certs_test.h"
|
||||
|
||||
uint32_t g_encrypted_root_public_key[140];
|
||||
static WOLFSSL_CTX *client_ctx;
|
||||
WOLFSSL_CTX *client_ctx = NULL;
|
||||
|
||||
extern uint8_t g_ether0_mac_address[6];
|
||||
typedef struct user_EccPKCbInfo;
|
||||
extern struct user_PKCbInfo guser_PKCbInfo;
|
||||
static const byte ucIPAddress[4] = { 192, 168, 11, 241 };
|
||||
static const byte ucNetMask[4] = { 255, 255, 255, 0 };
|
||||
static const byte ucGatewayAddress[4] = { 192, 168, 11, 1 };
|
||||
static const byte ucDNSServerAddress[4] = { 192, 168, 11, 1 };
|
||||
|
||||
/* Client connects to the server with these details. */
|
||||
#define SERVER_IP "192.168.11.40"
|
||||
#define DEFAULT_PORT 11111
|
||||
|
||||
#define FR_SOCKET_SUCCESS 0
|
||||
|
||||
#ifdef TLS_MULTITHREAD_TEST
|
||||
xSemaphoreHandle exit_semaph;
|
||||
extern User_SCEPKCbInfo guser_PKCbInfo_taskA;
|
||||
extern User_SCEPKCbInfo guser_PKCbInfo_taskB;
|
||||
#else
|
||||
extern User_SCEPKCbInfo guser_PKCbInfo;
|
||||
#endif
|
||||
|
||||
int SEGGER_RTT_vprintf(unsigned BufferIndex, const char * sFormat, va_list * pParamList);
|
||||
|
||||
static int msg(const char* pname, int l,
|
||||
const char * sFormat, ...)
|
||||
{
|
||||
int r = 0;
|
||||
va_list ParamList;
|
||||
|
||||
va_start(ParamList, sFormat);
|
||||
|
||||
printf("[%s][%02d] ", pname, l);
|
||||
r = SEGGER_RTT_vprintf(0, sFormat, &ParamList);
|
||||
|
||||
va_end(ParamList);
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
void TCPInit( )
|
||||
{
|
||||
BaseType_t fr_status;
|
||||
@@ -60,9 +80,8 @@ void TCPInit( )
|
||||
}
|
||||
}
|
||||
|
||||
void wolfSSL_TLS_client_init(const char* cipherlist)
|
||||
void wolfSSL_TLS_client_init()
|
||||
{
|
||||
|
||||
#ifndef NO_FILESYSTEM
|
||||
#ifdef USE_ECC_CERT
|
||||
char *cert = "./certs/ca-ecc-cert.pem";
|
||||
@@ -80,18 +99,16 @@ void wolfSSL_TLS_client_init(const char* cipherlist)
|
||||
#endif
|
||||
|
||||
wolfSSL_Init();
|
||||
#ifdef DEBUG_WOLFSSL
|
||||
wolfSSL_Debugging_ON();
|
||||
#endif
|
||||
|
||||
/* Create and initialize WOLFSSL_CTX */
|
||||
if ((client_ctx = wolfSSL_CTX_new(wolfSSLv23_client_method_ex((void *)NULL))) == NULL) {
|
||||
if ((client_ctx = wolfSSL_CTX_new(
|
||||
wolfSSLv23_client_method_ex((void *)NULL))) == NULL) {
|
||||
printf("ERROR: failed to create WOLFSSL_CTX\n");
|
||||
return;
|
||||
}
|
||||
#if defined(WOLFSSL_RENESAS_SCEPROTECT)
|
||||
/* set callback functions for ECC */
|
||||
wc_sce_set_callbacks(client_ctx);
|
||||
/* set callback functions for ECC */
|
||||
wc_sce_set_callbacks(client_ctx);
|
||||
#endif
|
||||
|
||||
#if !defined(NO_FILESYSTEM)
|
||||
@@ -100,90 +117,168 @@ void wolfSSL_TLS_client_init(const char* cipherlist)
|
||||
return NULL;
|
||||
}
|
||||
#else
|
||||
if (wolfSSL_CTX_load_verify_buffer(client_ctx, cert, SIZEOF_CERT, SSL_FILETYPE_ASN1) != SSL_SUCCESS){
|
||||
if (wolfSSL_CTX_load_verify_buffer(client_ctx, cert, SIZEOF_CERT,
|
||||
SSL_FILETYPE_ASN1) != SSL_SUCCESS){
|
||||
printf("ERROR: can't load certificate data\n");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* use specific cipher */
|
||||
if (cipherlist != NULL && wolfSSL_CTX_set_cipher_list(client_ctx, cipherlist) != WOLFSSL_SUCCESS) {
|
||||
wolfSSL_CTX_free(client_ctx); client_ctx = NULL;
|
||||
printf("client can't set cipher list 1");
|
||||
}
|
||||
}
|
||||
|
||||
void wolfSSL_TLS_client( )
|
||||
void wolfSSL_TLS_client_do(void *pvParam)
|
||||
{
|
||||
|
||||
int ret;
|
||||
int i = 0;
|
||||
#if defined(TLS_MULTITHREAD_TEST)
|
||||
BaseType_t xStatus;
|
||||
#endif
|
||||
TestInfo* p = (TestInfo*)pvParam;
|
||||
/* FreeRTOS+TCP Objects */
|
||||
socklen_t xSize = sizeof(struct freertos_sockaddr);
|
||||
xSocket_t xClientSocket = NULL;
|
||||
struct freertos_sockaddr xRemoteAddress;
|
||||
|
||||
WOLFSSL_CTX *ctx = (WOLFSSL_CTX *)client_ctx;
|
||||
WOLFSSL *ssl;
|
||||
WOLFSSL_CTX *ctx = (WOLFSSL_CTX *)p->ctx;
|
||||
WOLFSSL *ssl = NULL;
|
||||
const char* pcName = p->name;
|
||||
|
||||
#define BUFF_SIZE 256
|
||||
static const char sendBuff[]= "Hello Server\n" ;
|
||||
|
||||
char rcvBuff[BUFF_SIZE] = {0};
|
||||
|
||||
i = p->id;
|
||||
/* Client Socket Setup */
|
||||
xRemoteAddress.sin_port = FreeRTOS_htons(DEFAULT_PORT);
|
||||
xRemoteAddress.sin_port = FreeRTOS_htons(p->port);
|
||||
xRemoteAddress.sin_addr = FreeRTOS_inet_addr(SERVER_IP);
|
||||
|
||||
/* Create a FreeRTOS TCP Socket and connect */
|
||||
xClientSocket = FreeRTOS_socket(FREERTOS_AF_INET,
|
||||
FREERTOS_SOCK_STREAM,
|
||||
FREERTOS_IPPROTO_TCP);
|
||||
configASSERT(xClientSocket != FREERTOS_INVALID_SOCKET);
|
||||
FreeRTOS_bind(xClientSocket, &xRemoteAddress, sizeof(xSize));
|
||||
/* Create a FreeRTOS TCP Socket and connect */
|
||||
xClientSocket = FreeRTOS_socket(FREERTOS_AF_INET,
|
||||
FREERTOS_SOCK_STREAM,
|
||||
FREERTOS_IPPROTO_TCP);
|
||||
|
||||
/* Client Socket Connect */
|
||||
ret = FreeRTOS_connect(xClientSocket,
|
||||
&xRemoteAddress,
|
||||
sizeof(xRemoteAddress));
|
||||
if (ret != FR_SOCKET_SUCCESS) {
|
||||
printf("Error [%d]: FreeRTOS_connect.\n",ret);
|
||||
util_inf_loop(xClientSocket, ctx, ssl);
|
||||
configASSERT(xClientSocket != FREERTOS_INVALID_SOCKET);
|
||||
|
||||
FreeRTOS_bind(xClientSocket, NULL, sizeof(xSize));
|
||||
|
||||
/* Client Socket Connect */
|
||||
ret = FreeRTOS_connect(xClientSocket,
|
||||
&xRemoteAddress,
|
||||
sizeof(xRemoteAddress));
|
||||
|
||||
if (ret != FR_SOCKET_SUCCESS) {
|
||||
msg(pcName, i, " Error [%d]: FreeRTOS_connect.\n", ret);
|
||||
goto out;
|
||||
}
|
||||
|
||||
#if defined(TLS_MULTITHREAD_TEST)
|
||||
msg(pcName, i, " Ready to connect.\n");
|
||||
xStatus = xSemaphoreTake(p->xBinarySemaphore, portMAX_DELAY);
|
||||
if (xStatus != pdTRUE) {
|
||||
msg(pcName, i, " Error : Failed to xSemaphoreTake\n");
|
||||
goto out;
|
||||
}
|
||||
#endif
|
||||
|
||||
msg(pcName, i, " Start to connect to the server.\n");
|
||||
|
||||
if((ssl = wolfSSL_new(ctx)) == NULL) {
|
||||
msg(pcName, i, " ERROR wolfSSL_new: %d\n", wolfSSL_get_error(ssl, 0));
|
||||
goto out;
|
||||
}
|
||||
#if defined(WOLFSSL_RENESAS_SCEPROTECT)
|
||||
|
||||
/* Set callback CTX */
|
||||
#if !defined(TLS_MULTITHREAD_TEST)
|
||||
|
||||
memset(&guser_PKCbInfo, 0, sizeof(User_SCEPKCbInfo));
|
||||
guser_PKCbInfo.devId = 0;
|
||||
wc_sce_set_callback_ctx(ssl, (void*)&guser_PKCbInfo);
|
||||
|
||||
#else
|
||||
if (p->port - DEFAULT_PORT == 0) {
|
||||
memset(&guser_PKCbInfo_taskA, 0, sizeof(User_SCEPKCbInfo));
|
||||
wc_sce_set_callback_ctx(ssl, (void*)&guser_PKCbInfo_taskA);
|
||||
}
|
||||
else {
|
||||
memset(&guser_PKCbInfo_taskB, 0, sizeof(User_SCEPKCbInfo));
|
||||
wc_sce_set_callback_ctx(ssl, (void*)&guser_PKCbInfo_taskB);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/* Attach wolfSSL to the socket */
|
||||
ret = wolfSSL_set_fd(ssl, (int) xClientSocket);
|
||||
if (ret != WOLFSSL_SUCCESS) {
|
||||
msg(pcName, i, " Error [%d]: wolfSSL_set_fd.\n",ret);
|
||||
}
|
||||
|
||||
msg(pcName, i, " Cipher : %s\n",
|
||||
(p->cipher == NULL) ? "NULL" : p->cipher);
|
||||
/* use specific cipher */
|
||||
if (p->cipher != NULL && wolfSSL_set_cipher_list(ssl, p->cipher)
|
||||
!= WOLFSSL_SUCCESS) {
|
||||
msg(pcName, i, " client can't set cipher list 1");
|
||||
goto out;
|
||||
}
|
||||
|
||||
#ifdef DEBUG_WOLFSSL
|
||||
wolfSSL_Debugging_ON();
|
||||
#endif
|
||||
|
||||
if(wolfSSL_connect(ssl) != SSL_SUCCESS) {
|
||||
msg(pcName, i, " ERROR SSL connect: %d\n", wolfSSL_get_error(ssl, 0));
|
||||
goto out;
|
||||
}
|
||||
|
||||
#ifdef DEBUG_WOLFSSL
|
||||
wolfSSL_Debugging_OFF();
|
||||
#endif
|
||||
|
||||
if (wolfSSL_write(ssl, sendBuff, (int)strlen(sendBuff))
|
||||
!= (int)strlen(sendBuff)) {
|
||||
msg(pcName, i, " ERROR SSL write: %d\n", wolfSSL_get_error(ssl, 0));
|
||||
goto out;
|
||||
}
|
||||
|
||||
if ((ret=wolfSSL_read(ssl, rcvBuff, BUFF_SIZE)) < 0) {
|
||||
msg(pcName, i, " ERROR SSL read: %d\n", wolfSSL_get_error(ssl, 0));
|
||||
goto out;
|
||||
}
|
||||
|
||||
rcvBuff[ret] = '\0' ;
|
||||
msg(pcName, i, " Received: %s\n\n", rcvBuff);
|
||||
|
||||
out:
|
||||
if (ssl) {
|
||||
wolfSSL_shutdown(ssl);
|
||||
wolfSSL_free(ssl);
|
||||
ssl = NULL;
|
||||
/* need to reset callback */
|
||||
wc_sce_set_callbacks(client_ctx);
|
||||
}
|
||||
|
||||
if((ssl = wolfSSL_new(ctx)) == NULL) {
|
||||
printf("ERROR wolfSSL_new: %d\n", wolfSSL_get_error(ssl, 0));
|
||||
return;
|
||||
}
|
||||
#if defined(WOLFSSL_RENESAS_SCEPROTECT)
|
||||
/* set callback ctx */
|
||||
wc_sce_set_callback_ctx(ssl, (void*)&guser_PKCbInfo);
|
||||
#endif
|
||||
/* Attach wolfSSL to the socket */
|
||||
ret = wolfSSL_set_fd(ssl, (int) xClientSocket);
|
||||
if (ret != WOLFSSL_SUCCESS) {
|
||||
printf("Error [%d]: wolfSSL_set_fd.\n",ret);
|
||||
util_inf_loop(xClientSocket, ctx, ssl);
|
||||
/* clean up socket */
|
||||
if (xClientSocket) {
|
||||
FreeRTOS_shutdown(xClientSocket, FREERTOS_SHUT_RDWR);
|
||||
FreeRTOS_closesocket(xClientSocket);
|
||||
xClientSocket = NULL;
|
||||
}
|
||||
|
||||
if(wolfSSL_connect(ssl) != SSL_SUCCESS) {
|
||||
printf("ERROR SSL connect: %d\n", wolfSSL_get_error(ssl, 0));
|
||||
return;
|
||||
}
|
||||
#ifdef TLS_MULTITHREAD_TEST
|
||||
xSemaphoreGive(exit_semaph);
|
||||
vTaskDelete(NULL);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
void wolfSSL_TLS_cleanup()
|
||||
{
|
||||
if (client_ctx) {
|
||||
wolfSSL_CTX_free(client_ctx);
|
||||
}
|
||||
|
||||
wolfSSL_Cleanup();
|
||||
|
||||
if (wolfSSL_write(ssl, sendBuff, strlen(sendBuff)) != strlen(sendBuff)) {
|
||||
printf("ERROR SSL write: %d\n", wolfSSL_get_error(ssl, 0));
|
||||
return;
|
||||
}
|
||||
|
||||
if ((ret=wolfSSL_read(ssl, rcvBuff, BUFF_SIZE)) < 0) {
|
||||
printf("ERROR SSL read: %d\n", wolfSSL_get_error(ssl, 0));
|
||||
return;
|
||||
}
|
||||
|
||||
rcvBuff[ret] = '\0' ;
|
||||
printf("Received: %s\n\n", rcvBuff);
|
||||
|
||||
/* frees all data before client termination */
|
||||
wolfSSL_free(ssl);
|
||||
wolfSSL_CTX_free(ctx);
|
||||
wolfSSL_Cleanup();
|
||||
}
|
||||
|
||||
1052
IDE/Renesas/e2studio/RA6M4/test/src/wolfssl_sce_unit_test.c
Normal file
1052
IDE/Renesas/e2studio/RA6M4/test/src/wolfssl_sce_unit_test.c
Normal file
File diff suppressed because it is too large
Load Diff
@@ -29,10 +29,10 @@ This sample program uses the following hardware and software libraries. If a new
|
||||
|:--|:--|
|
||||
|Board|GR-ROSE|
|
||||
|Device|R5F565NEHxFP|
|
||||
|IDE| Renesas e2Studio Version:2021-10 |
|
||||
|IDE| Renesas e2Studio Version:2022-01 |
|
||||
|Emulator| E1, E2 Emulator Lite |
|
||||
|Toolchain|CCRX v3.03.00|
|
||||
|TSIP| TSIP v1.14|
|
||||
|Toolchain|CCRX v3.04.00|
|
||||
|TSIP| TSIP v1.15|
|
||||
<br>
|
||||
|
||||
The project of this sample program has a configuration file that uses the following FIT components.
|
||||
@@ -47,10 +47,10 @@ However, the FIT components themselves are not included in the distribution of t
|
||||
|Generic system timer for RX MCUs|1.01|r_sys_time_rx|
|
||||
|TCP/IP protocol stack[M3S-T4-Tiny] - RX Ethernet Driver Interface|1.09|r_t4_driver_rx|
|
||||
|TCP/IP protocol stack[M3S-T4-Tiny] for Renesas MCUs|2.10|r_t4_rx|
|
||||
|TSIP(Trusted Secure IP) driver|1.14|r_tsip_rx|
|
||||
|TSIP(Trusted Secure IP) driver|1.15.l|r_tsip_rx|
|
||||
<br>
|
||||
|
||||
Note) As of December 2021, TIPS v1.14 does not seem to be able to be added as a FIT component by adding a component in the Smart Configurator Perspective. Add it manually along the method described later.
|
||||
Note) As of April 2022, TIPS v1.15 does not seem to be able to be added as a FIT component by adding a component in the Smart Configurator Perspective. Add it manually along the method described later.
|
||||
<br><br>
|
||||
|
||||
## 3. Importing sample application project into e2Studio
|
||||
@@ -58,7 +58,7 @@ Note) As of December 2021, TIPS v1.14 does not seem to be able to be added as a
|
||||
|
||||
There is no need to create a new sample program. Since the project file is already prepared, please import the project from the IDE by following the steps below.
|
||||
|
||||
+ e2studio "File" menu> "Open project from file system ..."> "Directory (R) ..." Click the import source button and select the folder from which the project will be imported. Select the folder (Renesas/e2studio/\<MCU>/\<borad-name-folder\>/)) where this README file exists.
|
||||
+ e2studio "File" menu> "Open project from file system ..."> "Directory (R) ..." Click the import source button and select the folder from which the project will be imported. Select the folder (Renesas/e2studio/{MCU}/{board-name-folder}) where this README file exists.
|
||||
+ Four projects that can be imported are listed, but check only the three projects "smc", "test" and "wolfssl" and click the "Finish" button.
|
||||
|
||||
You should see the **smc**, **test**, and **wolfssl** 3 projects you imported into the project explorer.
|
||||
@@ -71,7 +71,7 @@ You will need to get the required FIT modules yourself. Follow the steps below t
|
||||
|
||||
1. Open the smc project in Project Explorer and double-click the **smc.scfg** file to open the Smart Configurator Perspective.
|
||||
|
||||
2. Select the "Components" tab on the software component settings pane. Then click the "Add Component" button at the top right of the pane. The software component selection dialog will pop up. Click "Download the latest version of FIT driver and middleware" at the bottom of the dialog to get the modules. You can check the dowmload destination folder by pressing "Basic settings...".
|
||||
2. Select the "Components" tab on the software component settings pane. Then click the "Add Component" button at the top right of the pane. The software component selection dialog will pop up. Click "Download the latest version of FIT driver and middleware" at the bottom of the dialog to get the modules. You can check the download destination folder by pressing "Basic settings...".
|
||||
|
||||
3. The latest version of the TSIP component may not be automatically obtained due to the delay in Renesas' support by the method in step 2 above. In that case, you can download it manually from the Renesas website. Unzip the downloaded component and store the files contained in the FIT Modules folder in the download destination folder of step 2.
|
||||
|
||||
@@ -135,11 +135,84 @@ Now that the test application is ready to build.
|
||||
## 8. Running test application as TLS_Client
|
||||
-----
|
||||
<br>
|
||||
### 8.1 Generate a server application
|
||||
|
||||
### 8.1 TLS version supported by the test application
|
||||
|
||||
<br>
|
||||
If you use TSIP v1.15 or later, you can use the TLS1.3 protocol in addition to the existing TLS1.2. The following macro is defined to {board-name-folder}/common/user_settings.h.
|
||||
<br><br>
|
||||
|
||||
```
|
||||
#define WOLFSSL_TLS13
|
||||
```
|
||||
|
||||
This definition sets it to use the TLS 1.3 protocol. If you use TLS1.2, comment out this macro definition and rebuild your test application.
|
||||
|
||||
<br>
|
||||
|
||||
### 8.2 Type of certificates to use
|
||||
|
||||
<br>
|
||||
|
||||
The test and server applications allow you to select the type of certificate (RootCA certificate, server certificate, client certificate) to use for TLS communication. You can select either an RSA certificate whose public key included in the certificate is an RSA public key or an ECDSA certificate containing an ECC public key. By default, the ECDSA certificate is used.
|
||||
<br>
|
||||
|
||||
The following macro is defined to {board-name-folder}/common/user_settings.h by default. If you want to use the RSA certificates, comment out the above definition and rebuild the test application.
|
||||
|
||||
<br>
|
||||
|
||||
```
|
||||
#define USE_ECC_CERT
|
||||
```
|
||||
<br>
|
||||
|
||||
### 8.3 Cipher suites
|
||||
|
||||
<br>
|
||||
|
||||
In the test application, the TLS version and certificate type determine the cipher suites used by the test application. The table below shows the cipher suites that can be used.
|
||||
<br>
|
||||
|
||||
|Tls version |Certificate type|Cipher suites|
|
||||
|:--|:--|:--|
|
||||
|TLS1.3|RSA/ECDSA certificate| |
|
||||
|||TLS_AES_128_GCM_SHA256|
|
||||
|||TLS_AES_128_CCM_SHA256|
|
||||
|TLS1.2|RSA certificate|
|
||||
|||TLS_RSA_WITH_AES_128_CBC_SHA|
|
||||
|||TLS_RSA_WITH_AES_256_CBC_SHA|
|
||||
|||TLS_RSA_WITH_AES_128_CBC_SHA256|
|
||||
|||TLS_RSA_WITH_AES_256_CBC_SHA256|
|
||||
|||TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256|
|
||||
|||TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256|
|
||||
||ECDSA certificate||
|
||||
|||TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256|
|
||||
|||TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256|
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
### 8.4 Build and run a server application
|
||||
|
||||
<br>
|
||||
To operate as TLS_Client, an opposite application for TLS communication is required. A wolfSSL package provides a server sample application that you can use for this purpose. This program is generated by building wolfssl. You can build wolfSSL on Linux (including MacOS and WSL) with gcc installed or build using Visual Studio. The following introduces the build on WSL.
|
||||
<br><br>
|
||||
|
||||
Configuration options need to be changed depending on the certificate type used.
|
||||
|
||||
#### 8.4.1 Configuration when using ECDSA certificates
|
||||
|
||||
<br>
|
||||
|
||||
```
|
||||
$ cd {wolfssl-folder}
|
||||
$ ./autogen.sh
|
||||
$ ./configure --enable-ecc --enable-dsa --enable-aesccm CFLAGS="-DWOLFSSL_STATIC_RSA -DHAVE_AES_CBC -DHAVE_DSA -DHAVE_ALL_CURVES -DHAVE_ECC -DNO_RSA"
|
||||
$ make
|
||||
```
|
||||
Note: Do not forget to specify "-DNO_RSA"
|
||||
|
||||
|
||||
```
|
||||
$ cd <wolfssl-folder>
|
||||
$ ./autogen.sh
|
||||
@@ -158,20 +231,45 @@ $ examples/server/server -b -d -i
|
||||
```
|
||||
<br>
|
||||
|
||||
For the test application, specify the IP address assigned to the server application.
|
||||
#### 8.4.2 Configuration when using RSA certificates
|
||||
|
||||
Open wolf_client.c to specify ip address of the server in "#define SIMPLE_TLSSEVER_IP" like as:
|
||||
<br>
|
||||
|
||||
```
|
||||
-- <board-name-folder>/test/src/wolf_client.c --
|
||||
$ cd {wolfssl-folder}
|
||||
$ ./autogen.sh
|
||||
$ ./configure --enable-ecc --enable-dsa --enable-aesccm CFLAGS="-DWOLFSSL_STATIC_RSA -DHAVE_AES_CBC -DHAVE_DSA -DHAVE_ALL_CURVES -DHAVE_ECC"
|
||||
$ make
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
#### 8.4.3 Run the server application
|
||||
|
||||
<br>
|
||||
|
||||
With the above build, {wolfssl-folder}/examples/server/server
|
||||
is generated. This executable program acts as a server application. If you execute it with the following options, it will be in the standby state for connection from the test application. Specify "-v4" when using TLS1.3 as the TLS version to be used, and specify "-v3" when using TLS1.2.
|
||||
<br> <br>
|
||||
|
||||
```
|
||||
$ examples / server / server -b -v4 -i
|
||||
```
|
||||
|
||||
<br>
|
||||
For the test application, specify the IP address assigned to the server application.
|
||||
|
||||
Open {board-name-folder}/test/src/wolf_client.c to specify ip address of the server.
|
||||
|
||||
<br>
|
||||
|
||||
```
|
||||
...
|
||||
#define SIMPLE_TLSSEVER_IP 192.168.53.9
|
||||
...
|
||||
```
|
||||
<br>
|
||||
Save the file and rebuild the test application. When you run the test application, it makes a TLS connection with the opposite application, then exchanges a simple string and displays the following on the standard output.
|
||||
Save the file and rebuild the test application. When you run the test application, it makes a TLS connection with the server application, then exchanges a simple string and displays the following on the standard output. The cipher suites displayed depends on the combination of TLS version and certificate type.
|
||||
<br><br>
|
||||
|
||||
```
|
||||
@@ -195,41 +293,7 @@ Received: I hear you fa shizzle!
|
||||
```
|
||||
<br>
|
||||
|
||||
### 8.2 Change server certificate (change authentication method)
|
||||
<br>
|
||||
The above is an execution example when the server certificate presented by the server application contains the RSA public key (RSA authentication). TSIP can also handle cases where the server certificate contains an ECC public key (ECDSA authentication).
|
||||
|
||||
<br>
|
||||
If you want to use a cipher suite that includes ECDSA, you will need to change the settings of the test application and rebuild. Open common/ user_settings.h, enable the USE_ECC_CERT definition and rebuild.
|
||||
<br><br>
|
||||
|
||||
```
|
||||
-- <board-name-folder>/common/user_settings.h --
|
||||
|
||||
#define USE_ECC_CERT
|
||||
```
|
||||
<br>
|
||||
This definition causes the test application to use a RootCA certificate that can validate the server certificate containing the ECC public key presented by the server.
|
||||
|
||||
<br>
|
||||
In addition, the opposite server application also needs to specify the server certificate and private key file containing the ECC public key as an option, and then execute it as shown below.
|
||||
<br><br>
|
||||
|
||||
```
|
||||
$ ./examples/server/server -b -d -i -c ./certs/server-ecc.pem -k ./certs/ecc-key.pem
|
||||
```
|
||||
<br>
|
||||
The following is displayed as the execution result.
|
||||
<br> <br>
|
||||
|
||||
```
|
||||
cipher : ECDHE-ECDSA-AES128-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : ECDHE-ECDSA-AES128-GCM-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
```
|
||||
<br>
|
||||
|
||||
## 9. What you need to do to use the RootCA certificate prepared by the user
|
||||
----
|
||||
@@ -240,4 +304,24 @@ If you want to use it for purposes beyond functional evaluation, you need to pre
|
||||
2. RSA key pair required for RootCA certificate validation
|
||||
3. The signature generated by the RootCA certificate with the private key in 2 above.
|
||||
|
||||
will become necessary. Please refer to the manual provided by Renesas for how to generate them.
|
||||
will become necessary. Please refer to the manual provided by Renesas for how to generate them.
|
||||
<br>
|
||||
|
||||
## 10. Limitations
|
||||
----
|
||||
<br>
|
||||
wolfSSL, which supports TSIPv1.15, has the following functional restrictions.
|
||||
<br><br>
|
||||
|
||||
1. Handshake message packets exchanged with the server during the TLS handshake are stored in plaintext in memory. This is used to calculate the hash of handshake messages. The content will be deleted at the end of the session.
|
||||
|
||||
1. TLS1.2 does not support the client authentication function using TSIP.
|
||||
Use wolfSSL_CTX_use_certificate_buffer or wolfSSL_CTX_use_certificate_chain_buffer_format to load the client certificate and wolfSSL_CTX_use_PrivateKey_buffer to load the private key. It is processed by software.
|
||||
|
||||
1. In TLS 1.3, the client authentication function using TSIP is supported only for ECDSA client certificates. In the case of RSA certificates, it will be processed by software.
|
||||
|
||||
1. In TLS1.3, among the server authentication functions using TSIP, "Certificate Verify" message is processed by software.
|
||||
|
||||
1. Session resumption and early data using TSIP are not supported.
|
||||
|
||||
The above limitations 1 through 4 are expected to be improved by TSIP from the next version onwards.
|
||||
@@ -30,10 +30,10 @@ Renesas社製MCU RX65Nを搭載した評価ボードGR-ROSEをターゲットと
|
||||
|:--|:--|
|
||||
|評価ボード|GR-ROSE|
|
||||
|Device|R5F565NEHxFP|
|
||||
|IDE| Renesas e2Studio Version:2021-10 |
|
||||
|IDE| Renesas e2Studio Version:2022-01 |
|
||||
|エミュレーター| E1, E2エミュレーターLite |
|
||||
|Toolchain|CCRX v3.03.00|
|
||||
|TSIP| TSIP v1.14|
|
||||
|Toolchain|CCRX v3.04.00|
|
||||
|TSIP| TSIP v1.15|
|
||||
<br>
|
||||
|
||||
本サンプルプログラムのプロジェクトには以下のFITコンポーネントを使用する設定ファイルが用意されています。
|
||||
@@ -50,9 +50,9 @@ Renesas社製MCU RX65Nを搭載した評価ボードGR-ROSEをターゲットと
|
||||
|Generic system timer for RX MCUs|1.01|r_sys_time_rx|
|
||||
|TCP/IP protocol stack[M3S-T4-Tiny] - RX Ethernet Driver Interface|1.09|r_t4_driver_rx|
|
||||
|TCP/IP protocol stack[M3S-T4-Tiny] for Renesas MCUs|2.10|r_t4_rx|
|
||||
|TSIP(Trusted Secure IP) driver|1.14|r_tsip_rx|
|
||||
|TSIP(Trusted Secure IP) driver|1.15.l|r_tsip_rx|
|
||||
|
||||
(注意)2021年12月現在、TIPSv1.14はFITコンポーネントとしてスマートコンフィギュレータパースペクティブのコンポーネントの追加操作では追加できないようです。後ほど説明する手動での追加方法を使って追加してください。<br>
|
||||
(注意)2022年4月現在、TIPSv1.15はFITコンポーネントとしてスマートコンフィギュレータパースペクティブのコンポーネントの追加操作では追加できないようです。後ほど説明する手動での追加方法を使って追加してください。<br>
|
||||
|
||||
|
||||
<br><br>
|
||||
@@ -63,7 +63,7 @@ Renesas社製MCU RX65Nを搭載した評価ボードGR-ROSEをターゲットと
|
||||
サンプルプログラムは新規作成する必要はありません。すでにプロジェクトファイルが用意されていますからIDEから以下の手順でプロジェクトをインポートしてください。
|
||||
|
||||
|
||||
+ 1.e2studioの"ファイル"メニュー > "ファイル・システムからプロジェクトを開く..." > "ディレクトリ(R)..."インポート元ボタンを押して、プロジェクトのインポート元となるフォルダーを選択します。本READMEファイルが存在するフォルダ(Renesas/e2studio/\<MCU>/\<borad-name-folder\>/))を選択してください。
|
||||
+ 1.e2studioの"ファイル"メニュー > "ファイル・システムからプロジェクトを開く..." > "ディレクトリ(R)..."インポート元ボタンを押して、プロジェクトのインポート元となるフォルダーを選択します。本READMEファイルが存在するフォルダ(Renesas/e2studio/{MCU}/{board-name-folder})を選択してください。
|
||||
|
||||
+ インポートできるプロジェクトが4つリストアップされますが、"smc", "test" と"wolfssl"の3プロジェクトにのみチェックを入れて”終了”ボタンを押してください。
|
||||
|
||||
@@ -143,26 +143,110 @@ testアプリケーションのビルドの準備が整ったので、ビルド
|
||||
-----
|
||||
<br>
|
||||
|
||||
### 8.1 TLS対向アプリケーションの生成と実行
|
||||
### 8.1 testアプリケーションのサポートするTLSバージョン
|
||||
<br>
|
||||
TSIPv1.15以降を使用する場合には、これまでのTLS1.2に加えてTLS1.3プロトコルが使用できます。{board-name-folder}/common/user_settings.hに既定で以下のマクロ定義が設定されています。
|
||||
<br><br>
|
||||
|
||||
```
|
||||
#define WOLFSSL_TLS13
|
||||
```
|
||||
この定義によりTLS1.3プロトコルを使用する設定となります。TLS1.2を使用する場合には、このマクロ定義をコメントアウトしてして、testアプリケーションを再ビルドしてください。
|
||||
|
||||
<br>
|
||||
|
||||
### 8.2 使用する証明書のタイプ
|
||||
|
||||
<br>
|
||||
|
||||
testアプリケーションとサーバーアプリケーションではTLS通信時に使用する証明書(RootCA証明書、サーバー証明書、クライアント証明書)のタイプが選択できます。証明書に含まれている公開鍵がRSA公開鍵であるRSA証明書とECC公開鍵を含むECDSA証明書が選択できます。既定ではECDSA証明書を使用するようになっています。
|
||||
|
||||
<br>
|
||||
{board-name-folder}/common/user_settings.h に既定で以下のマクロ定義が設定されています。RSA証明書を使用する場合には上記定義をコメントアウトして、testアプリケーションを再ビルドしてください。
|
||||
<br><br>
|
||||
|
||||
```
|
||||
#define USE_ECC_CERT
|
||||
```
|
||||
|
||||
<br>
|
||||
この定義により、testアプリケーションはサーバーの提示するECC公開鍵を含んだサーバー証明書を検証できるRootCA証明書を使うようになります。また、クライアント認証に用いるクライアント証明書もECDSA証明書が使われます。
|
||||
<br><br>
|
||||
|
||||
|
||||
### 8.3 暗号化スイートの選択
|
||||
|
||||
<br>
|
||||
testアプリケーションでは、TLSバージョンと証明書のタイプにより、testアプリケーションで使用する暗号化スイートを決定します。下表に使用できる暗号化スイートを示します。
|
||||
|
||||
<br>
|
||||
|
||||
|
||||
|バージョン|証明書|暗号化スイート|
|
||||
|:--|:--|:--|
|
||||
|TLS1.3|RSA/ECDSA証明書| |
|
||||
|||TLS_AES_128_GCM_SHA256|
|
||||
|||TLS_AES_128_CCM_SHA256|
|
||||
|TLS1.2|RSA証明書|
|
||||
|||TLS_RSA_WITH_AES_128_CBC_SHA|
|
||||
|||TLS_RSA_WITH_AES_256_CBC_SHA|
|
||||
|||TLS_RSA_WITH_AES_128_CBC_SHA256|
|
||||
|||TLS_RSA_WITH_AES_256_CBC_SHA256|
|
||||
|||TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256|
|
||||
|||TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256|
|
||||
||ECDSA証明書||
|
||||
|||TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256|
|
||||
|||TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256|
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
### 8.4 TLS対向アプリケーションのビルドと実行
|
||||
|
||||
<br>
|
||||
|
||||
testアプリケーションをTLS_Clientとしての動作を行わせる場合には、TLS通信の相手方となる対向アプリケーションが必要となります。wolfSSLパッケージにはこの用途に使用できるTLSserverサンプルアプリケーションが用意されています。このプログラムはwolfsslをビルドすることで生成されます。wolfSSLのビルドにはgccがインストールされているLinux(MacOS, WSLも含む)でのビルドとVisualStudioを使ってのビルドが可能です。以下ではWSL上でのビルドを紹介します。
|
||||
<br><br>
|
||||
|
||||
コンフィギュレーションオプションは使用する証明書タイプによって変更する必要があります。
|
||||
|
||||
<br>
|
||||
|
||||
#### 8.4.1 ECDSA証明書を使用する場合のコンフィギュレーション
|
||||
|
||||
<br>
|
||||
|
||||
```
|
||||
$ cd <wolfssl-folder>
|
||||
$ cd {wolfssl-folder}
|
||||
$ ./autogen.sh
|
||||
$ ./configure CFLAGS="-DWOLFSSL_STATIC_RSA -DHAVEAES_CBC"
|
||||
$ ./configure --enable-ecc --enable-dsa --enable-aesccm CFLAGS="-DWOLFSSL_STATIC_RSA -DHAVE_AES_CBC -DHAVE_DSA -DHAVE_ALL_CURVES -DHAVE_ECC -DNO_RSA"
|
||||
$ make
|
||||
```
|
||||
(注意)"-DNO_RSA"の指定をわすれないこと
|
||||
|
||||
<br>
|
||||
|
||||
#### 8.4.2 RSA証明書を使用する場合のコンフィギュレーション
|
||||
|
||||
<br>
|
||||
|
||||
```
|
||||
$ cd {wolfssl-folder}
|
||||
$ ./autogen.sh
|
||||
$ ./configure --enable-ecc --enable-dsa --enable-aesccm CFLAGS="-DWOLFSSL_STATIC_RSA -DHAVE_AES_CBC -DHAVE_DSA -DHAVE_ALL_CURVES -DHAVE_ECC"
|
||||
$ make
|
||||
```
|
||||
|
||||
<br>
|
||||
上記のビルドによって、<wolfssl-folder\>/examples/server/server
|
||||
が生成されます。この実行プログラムがサーバーアプリケーションとして機能します。以下のオプションを与えて実行させるとTLS_Clientからの接続を待ち受け状態になります。
|
||||
|
||||
#### 8.4.3 サーバーアプリケーションの実行
|
||||
<br>
|
||||
上記のビルドによって、{wolfssl-folder}/examples/server/server
|
||||
が生成されます。この実行プログラムがサーバーアプリケーションとして機能します。以下のオプションを与えて実行させるとtestアプリケーションからの接続を待ち受け状態になります。 使用するTLSバージョンとして TLS1.3を使用する場合には "-v4"を指定し、TLS1.2を使用する場合には"-v3"を指定してください。
|
||||
<br><br>
|
||||
|
||||
```
|
||||
$ examples/server/server -b -d -i
|
||||
$ examples/server/server -b -v4 -i
|
||||
```
|
||||
<br>
|
||||
testアプリケーションには、サーバーアプリケーションに割り当てられたIPアドレスを指定します。
|
||||
@@ -177,7 +261,8 @@ wolf_client.cを開き、#define SIMPLE_TLSSEVER_IPにアドレスを指定し
|
||||
...
|
||||
```
|
||||
<br>
|
||||
ファイルをセーブしてtestアプリケーションを再ビルドしてください。testアプリケーションを実行すると、対向アプリケーションとの間でTLS接続が行われ、その後簡単な文字列を交換して標準出力に以下のような表示を行います。
|
||||
ファイルをセーブしてtestアプリケーションを再ビルドしてください。testアプリケーションを実行すると、対向アプリケーションとの間でTLS接続が行われ、その後簡単な文字列を交換して標準出力に以下のような表示を行います。表示される暗号化スイートはTLSバージョンと証明書タイプの組み合わせによって異なります。
|
||||
|
||||
<br><br>
|
||||
|
||||
```
|
||||
@@ -201,41 +286,6 @@ Received: I hear you fa shizzle!
|
||||
```
|
||||
<br>
|
||||
|
||||
### 8.2 サーバー証明書の変更(認証方式の変更)
|
||||
|
||||
<br>
|
||||
上記はサーバーアプリケーションが提示すサーバー証明書にRSA公開鍵が含まれている(RSA認証)場合の実行例です。TSIPにはこのほかにサーバー証明書にECC公開鍵を含む場合(ECDSA認証)も扱えます。
|
||||
|
||||
<br>
|
||||
ECDSAを含む暗号化スイートを使用したい場合には、testアプリケーションの設定を変更して再ビルドが必要となります。\<board-name-folder\>/common/user_settings.h を開き、USE_ECC_CERT定義を有効化して再ビルドしてください。
|
||||
<br><br>
|
||||
|
||||
```
|
||||
#define USE_ECC_CERT
|
||||
```
|
||||
|
||||
<br>
|
||||
この定義により、testアプリケーションはサーバーの提示するECC公開鍵を含んだサーバー証明書を検証できるRootCA証明書を使うようになります。
|
||||
<br><br>
|
||||
|
||||
さらに対向するサーバーアプリケーションの方でも以下のようにECC公開鍵を含んだサーバー証明書と秘密鍵ファイルをオプションで指定して実行する必要があります。
|
||||
<br><br>
|
||||
|
||||
```
|
||||
$ ./examples/server/server -b -d -i -c ./certs/server-ecc.pem -k ./certs/ecc-key.pem
|
||||
```
|
||||
<br>
|
||||
実行結果として以下が表示されます。
|
||||
<br><br>
|
||||
|
||||
```
|
||||
cipher : ECDHE-ECDSA-AES128-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : ECDHE-ECDSA-AES128-GCM-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
```
|
||||
<br>
|
||||
|
||||
## 9. ユーザーが用意したRootCA証明書を利用する際に必要なこと
|
||||
-----
|
||||
@@ -247,3 +297,22 @@ Received: I hear you fa shizzle!
|
||||
3. RootCA証明書を上記2の秘密鍵で生成した署名
|
||||
|
||||
が必要になります。それらの生成方法はRenesas社提供のマニュアルを参照してください。
|
||||
|
||||
<br>
|
||||
|
||||
## 10. 制限事項
|
||||
|
||||
TSIPv1.15をサポートしたwolfSSLでは以下の機能制限があります。
|
||||
|
||||
1. TLSハンドシェーク中にサーバーと交換したメッセージパケットが平文でメモリ上に蓄積されています。これはハンドシェークメッセージのハッシュ計算に使用されます。内容はセッション終了時に削除されます。
|
||||
|
||||
1. TLS1.2ではTSIPを使ったクライアント認証機能をサポートしていません。
|
||||
wolfSSL_CTX_use_certificate_buffer あるいはwolfSSL_CTX_use_certificate_chain_buffer_format を使ってクライアント証明書をロードし、wolfSSL_CTX_use_PrivateKey_bufferを使って秘密鍵をロードしてください。ソフトウエアで処理を行います。
|
||||
|
||||
1. TLS1.3ではTSIPを使ったクライアント認証機能はECDSAクライアント証明書の場合にのみサポートされます。RSA証明書の場合はソフトウエアでの処理となります。
|
||||
|
||||
1. TLS1.3ではTSIPを使ったサーバー認証機能のうち、CertificateVerifyメッセージの検証はソフトウエアでの処理となります。
|
||||
|
||||
1. TSIPを使ってのセッション再開およびearly dataはサポートされません。
|
||||
|
||||
上記制限1 ~ 4は次版以降のTSIPによって改善が見込まれています。
|
||||
@@ -1,6 +1,6 @@
|
||||
/* user_settings.h
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
@@ -37,9 +37,10 @@
|
||||
* 109: TSIPv1.09
|
||||
* 113: TSIPv1.13
|
||||
* 114: TSIPv1.14
|
||||
* 115: TSIPv1.15
|
||||
*----------------------------------------------------------------------------*/
|
||||
#define WOLFSSL_RENESAS_TSIP
|
||||
#define WOLFSSL_RENESAS_TSIP_VER 114
|
||||
#define WOLFSSL_RENESAS_TSIP_VER 115
|
||||
|
||||
|
||||
/*-- TLS version definitions --------------------------------------------------
|
||||
@@ -48,7 +49,7 @@
|
||||
* TLSv1.3, uncomment line below.
|
||||
*
|
||||
*----------------------------------------------------------------------------*/
|
||||
/*#define WOLFSSL_TLS13*/
|
||||
#define WOLFSSL_TLS13
|
||||
|
||||
|
||||
/*-- Operating System related definitions --------------------------------------
|
||||
@@ -67,11 +68,12 @@
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
#define NO_DEV_RANDOM
|
||||
|
||||
#define NO_MD4
|
||||
#define WOLFSSL_DH_CONST
|
||||
#define HAVE_TLS_EXTENSIONS
|
||||
|
||||
#define HAVE_AESGCM
|
||||
#define HAVE_AESCCM
|
||||
#define HAVE_AES_CBC
|
||||
#define WOLFSSL_SHA512
|
||||
|
||||
@@ -103,7 +105,7 @@
|
||||
* - TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA256
|
||||
*
|
||||
*/
|
||||
/*#define USE_ECC_CERT*/
|
||||
#define USE_ECC_CERT
|
||||
|
||||
/* In this example application, Root CA cert buffer named
|
||||
* "ca_ecc_cert_der_256" is used under the following macro definition
|
||||
@@ -123,9 +125,15 @@
|
||||
*----------------------------------------------------------------------------*/
|
||||
#define SIZEOF_LONG_LONG 8
|
||||
|
||||
#if !defined(min)
|
||||
#define min(data1, data2) _builtin_min(data1, data2)
|
||||
#endif
|
||||
/*#define WOLFSSL_STATIC_MEMORY*/
|
||||
|
||||
#if defined(WOLFSSL_STATIC_MEMORY)
|
||||
#define USE_FAST_MATH
|
||||
#else
|
||||
#define WOLFSSL_SMALL_STACK
|
||||
#endif /* WOLFSSL_STATIC_MEMORY */
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* -- "NO_ASN_TIME" macro is to avoid certificate expiration validation --
|
||||
@@ -144,13 +152,15 @@
|
||||
#define WOLFSSL_LOG_PRINTF
|
||||
#define WOLFSSL_HAVE_MIN
|
||||
#define WOLFSSL_HAVE_MAX
|
||||
#define WOLFSSL_SMALL_STACK
|
||||
|
||||
#define NO_WRITEV
|
||||
#define WOLFSSL_USER_IO
|
||||
|
||||
#define WOLFSSL_USER_CURRTIME /* for benchmark */
|
||||
#define USER_TIME
|
||||
#define TIME_OVERRIDES
|
||||
#define XTIME time
|
||||
#define WOLFSSL_GMTIME
|
||||
#define XGMTIME(c,t) gmtime(c)
|
||||
#define USE_WOLF_SUSECONDS_T
|
||||
#define USE_WOLF_TIMEVAL_T
|
||||
|
||||
@@ -219,3 +229,6 @@
|
||||
#define HAVE_HKDF
|
||||
#define WC_RSA_PSS
|
||||
#endif
|
||||
|
||||
|
||||
#define XSTRCASECMP(s1,s2) strcmp((s1),(s2))
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* wolfssl_dummy.c
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
@@ -19,15 +19,16 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
typedef unsigned long time_t;
|
||||
#include <wolfssl/wolfcrypt/wc_port.h>
|
||||
|
||||
#define YEAR 2022
|
||||
#define MON 2
|
||||
#define MON 6
|
||||
|
||||
static int tick = 0;
|
||||
|
||||
time_t time(time_t *t)
|
||||
{
|
||||
(void)t;
|
||||
return ((YEAR-1970)*365+30*MON)*24*60*60 + tick++;
|
||||
}
|
||||
|
||||
|
||||
@@ -23,13 +23,13 @@
|
||||
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF;org.eclipse.cdt.core.PE" id="com.renesas.cdt.managedbuild.renesas.ccrx.base.targetPlatform.24124316" osList="win32" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.targetPlatform"/>
|
||||
<builder buildPath="${workspace_loc:/smc}/HardwareDebug" id="com.renesas.cdt.managedbuild.renesas.ccrx.base.builder.1276377212" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="CCRX Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.builder"/>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.dsp.1034155595" name="DSP Assembler" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.dsp">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.noDebugInfo.1326286577" name="デバッグ情報を出力する (-no_debug_info)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.noDebugInfo" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian.19247995" name="出力するデータ値のエンディアン (-littleEndianData)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian.big" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.noDebugInfo.1326286577" name="Output debug information (-no_debug_info)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.noDebugInfo" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian.19247995" name="Endian of output data value (-littleEndianData)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian.big" valueType="enumerated"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.common.1818731181" name="Common" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.common">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.1574659789" name="命令セット・アーキテクチャ (-isa)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.rxv2" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.1574659789" name="Instruction set architecture (-isa)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.rxv2" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.rxArchitecture.7532856" name="RX Architecture" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.rxArchitecture" useByScannerDiscovery="false" value="rxv2" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns.841340110" name="浮動小数点演算命令を使用する (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns.yes" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns.841340110" name="Use floating point arithmetic instructions (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns.yes" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasFpu.287393662" name="Has FPU" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasFpu" useByScannerDiscovery="false" value="TRUE" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceName.646833302" name="Device Name" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceName" useByScannerDiscovery="false" value="R5F565NEHxFP" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceHistory.1966837765" name="Device history" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceHistory" useByScannerDiscovery="false" value="non_init;R5F565NEHxFP" valueType="string"/>
|
||||
@@ -40,9 +40,10 @@
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceFamily.1674070815" name="Device Family" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceFamily" useByScannerDiscovery="false" value="RX65N" valueType="string"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.compiler.1508700917" name="Compiler" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.compiler">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu.4886222" name="浮動小数点演算命令を使用する (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu.yes" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.include.1248634269" name="インクルード・ファイルを検索するフォルダ (-include)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.include" valueType="includePath">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu.4886222" name="Use floating point arithmetic instructions (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu.yes" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.include.1248634269" name="Include file directories (-include)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.include" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value="${TCINSTALL}/include"/>
|
||||
<listOptionValue builtIn="false" value="${ProjDirPath}/generate"/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/general}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/Config_TMR0}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_pincfg}""/>
|
||||
@@ -59,70 +60,70 @@
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_t4_rx/lib}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_tsip_rx}""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userBefore.1431645164" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userBefore.1431645164" name="User-defined options (added before all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userAfter.148221317" name="追加するオプション(すべての指定オプションの後ろに追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userAfter.148221317" name="User-defined options (added after all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC.10897982" name="Cソース (-lang)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC.c99" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode.2076226696" name="プログラムの文字コード (-euc/-sjis/-latin1/-utf8/-big5/-gb2312)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode.utf8" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode.1726073063" name="出力する文字コード (-outcode)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode.utf8" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC.10897982" name="C source file (-lang)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC.c99" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode.2076226696" name="Character code of an input program (-euc/-sjis/-latin1/-utf8/-big5/-gb2312)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode.utf8" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode.1726073063" name="Output character code (-outcode)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode.utf8" valueType="enumerated"/>
|
||||
<inputType id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gcc.inputType.680339798" name="Compiler Input C" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gcc.inputType"/>
|
||||
<inputType id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gpp.inputType.1035083979" name="Compiler Input CPP" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gpp.inputType"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.assembler.770500626" name="Assembler" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.assembler">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userBefore.678526255" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userBefore.678526255" name="User-defined options (added before all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userAfter.214576131" name="追加するオプション(すべての指定オプションの後ろに追加) " superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userAfter.214576131" name="User-defined options (added after all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode.1261556953" name="プログラムの文字コード (-euc/-sjis/-latin1/-utf8/-big5/-gb2312)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode.utf8" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode.1261556953" name="Character code of an input program (-euc/-sjis/-latin1/-utf8/-big5/-gb2312)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode.utf8" valueType="enumerated"/>
|
||||
<inputType id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.inputType.756564181" name="Assembler InputType" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.inputType"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.linker.1339846431" name="Linker" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.linker">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.rom.1434821333" name="ROMからRAMへマップするセクション (-rom)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.rom" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.rom.1434821333" name="ROM to RAM mapped section (-rom)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.rom" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="D=R"/>
|
||||
<listOptionValue builtIn="false" value="D_1=R_1"/>
|
||||
<listOptionValue builtIn="false" value="D_2=R_2"/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.linkerSection.394830605" name="セクション (-start)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.linkerSection" useByScannerDiscovery="false" value="SU,SI,B_1,R_1,B_2,R_2,B,R/04,C_1,C_2,C,C$*,D*,W*,L,P*/0FFE00000,EXCEPTVECT/0FFFFFF80,RESETVECT/0FFFFFFFC,B_ETHERNET_BUFFERS_1,B_RX_DESC_1,B_TX_DESC_1/00010000" valueType="string"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userBefore.1196210369" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.linkerSection.394830605" name="Sections (-start)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.linkerSection" useByScannerDiscovery="false" value="SU,SI,B_1,R_1,B_2,R_2,B,R/04,C_1,C_2,C,C$*,D*,W*,L,P*/0FFE00000,EXCEPTVECT/0FFFFFF80,RESETVECT/0FFFFFFFC,B_ETHERNET_BUFFERS_1,B_RX_DESC_1,B_TX_DESC_1/00010000" valueType="string"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userBefore.1196210369" name="User-defined options (added before all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userAfter.41222079" name="追加するオプション(すべての指定オプションの後ろに追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userAfter.41222079" name="User-defined options (added after all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.vect.1146521938" name="可変ベクタテーブルのアドレス未設定ベクタ番号に指定するアドレス (-vect)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.vect" useByScannerDiscovery="false" value="_undefined_interrupt_source_isr" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.checkSection.1165075859" name="セクションの割り付けアドレスをチェックする (-cpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.checkSection" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType.1456895529" name="アドレス範囲指定方法 (-cpu(アドレス範囲指定方法))" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType.autoSpecify" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.noneLinkageOrderList.1219751178" name="(リンク順序のリスト) (-input/-library/-binary)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.noneLinkageOrderList" valueType="stringList">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.vect.1146521938" name="Address setting for unused vector area (-vect)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.vect" useByScannerDiscovery="false" value="_undefined_interrupt_source_isr" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.checkSection.1165075859" name="Checks the section larger than the specified range of addresses (-cpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.checkSection" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType.1456895529" name="Memory address type assignment method (-cpu(Address space of Single-Chip Mode))" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType.autoSpecify" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.noneLinkageOrderList.1219751178" name="(Linkage order list) (-input/-library/-binary)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.noneLinkageOrderList" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="".\smc.lib""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.inputFile.1233488024" name="リンクするリロケータブル・ファイル、ライブラリ・ファイルおよびバイナリ・ファイル (-input/-library/-binary)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.inputFile" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.inputFile.1233488024" name="Relocatable files, object files and library files (-input/-library/-binary)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.inputFile" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_tsip_rx/lib/ccrx/r_tsip_rx65n_little.lib}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_t4_rx/lib/ccrx/T4_Library_ether_ccrx_rxv1_little.lib}""/>
|
||||
</option>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.librarian.465470766" name="Library Generator" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.librarian">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu.1269590255" name="浮動小数点演算命令を使用する (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu.yes" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userBefore.270923116" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu.1269590255" name="Use floating point arithmetic instructions (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu.yes" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userBefore.270923116" name="User-defined options (added before all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userAfter.1299397327" name="追加するオプション(すべての指定オプションの後ろに追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userAfter.1299397327" name="User-defined options (added after all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang.1765409610" name="C言語標準ライブラリ関数の構成 (-lang)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang.c99" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang.1765409610" name="Library configuration (-lang)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang.c99" valueType="enumerated"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.converter.1302985020" name="Converter" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.converter">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userBefore.214292277" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userBefore.214292277" name="User-defined options (added before all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userAfter.291317464" name="追加するオプション(すべての指定オプションの後ろに追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userAfter.291317464" name="User-defined options (added after all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOfOutputFile.342553276" name="出力ファイル形式 (-form)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOfOutputFile" value="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOFOutputFile.none" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOfOutputFile.342553276" name="Output file type (-form)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOfOutputFile" value="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOFOutputFile.none" valueType="enumerated"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.rtosConfig.287664454" name="RTOS Configurator" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.rtosConfig"/>
|
||||
</toolChain>
|
||||
@@ -133,6 +134,11 @@
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
<storageModule moduleId="com.renesas.cdt.managedbuild.core.boardInfo">
|
||||
<option id="board.id" value="gr-rose"/>
|
||||
<option id="board.name" value="gr-rose"/>
|
||||
<option id="board.device" value="R5F565NEHxFP"/>
|
||||
</storageModule>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
@@ -143,4 +149,5 @@
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
</cproject>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -14,7 +14,7 @@
|
||||
</storageModule>
|
||||
<storageModule moduleId="com.renesas.cdt.managedbuild.core.toolchainInfo">
|
||||
<option id="toolchain.id" value="Renesas_RXC"/>
|
||||
<option id="toolchain.version" value="v3.03.00"/>
|
||||
<option id="toolchain.version" value="v3.04.00"/>
|
||||
<option id="toolchain.enable" value="true"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
@@ -24,13 +24,13 @@
|
||||
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF;org.eclipse.cdt.core.PE" id="com.renesas.cdt.managedbuild.renesas.ccrx.base.targetPlatform.808325012" osList="win32" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.targetPlatform"/>
|
||||
<builder buildPath="${workspace_loc:/test}/HardwareDebug" id="com.renesas.cdt.managedbuild.renesas.ccrx.base.builder.65531188" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="CCRX Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.builder"/>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.dsp.1710373085" name="DSP Assembler" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.dsp">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.noDebugInfo.390598726" name="デバッグ情報を出力する (-no_debug_info)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.noDebugInfo" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian.2145260692" name="出力するデータ値のエンディアン (-littleEndianData)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian.big" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.noDebugInfo.390598726" name="Output debug information (-no_debug_info)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.noDebugInfo" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian.2145260692" name="Endian of output data value (-littleEndianData)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian.big" valueType="enumerated"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.common.385785132" name="Common" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.common">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.968417281" name="命令セット・アーキテクチャ (-isa)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.rxv2" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.968417281" name="Instruction set architecture (-isa)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.rxv2" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.rxArchitecture.1826562770" name="RX Architecture" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.rxArchitecture" useByScannerDiscovery="false" value="rxv2" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns.2015650112" name="浮動小数点演算命令を使用する (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns.yes" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns.2015650112" name="Use floating point arithmetic instructions (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns.yes" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasFpu.1065149525" name="Has FPU" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasFpu" useByScannerDiscovery="false" value="TRUE" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceName.1439501151" name="Device Name" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceName" useByScannerDiscovery="false" value="R5F565NEHxFP" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceHistory.141103170" name="Device history" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceHistory" useByScannerDiscovery="false" value="non_init;R5F565NEHxFP" valueType="string"/>
|
||||
@@ -41,15 +41,14 @@
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceFamily.2015079094" name="Device Family" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceFamily" useByScannerDiscovery="false" value="RX65N" valueType="string"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.compiler.220371913" name="Compiler" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.compiler">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu.1764475068" name="浮動小数点演算命令を使用する (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu.yes" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.include.477145288" name="インクルード・ファイルを検索するフォルダ (-include)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.include" useByScannerDiscovery="false" valueType="includePath">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu.1764475068" name="Use floating point arithmetic instructions (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu.yes" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.include.477145288" name="Include file directories (-include)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.include" useByScannerDiscovery="false" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value="${TCINSTALL}/include"/>
|
||||
<listOptionValue builtIn="false" value=""${ProjDirPath}/../common""/>
|
||||
<listOptionValue builtIn="false" value=""${ProjDirPath}/../../../../../../""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_bsp}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_config}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_tsip_rx}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_tsip_rx/src/targets/rx65n}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_cmt_rx}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_cmt_rx/src}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_t4_driver_rx}""/>
|
||||
@@ -63,54 +62,54 @@
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_pincfg}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/Config_TMR0}""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.define.511269805" name="プリプロセッサ・マクロの定義 (-define)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.define" useByScannerDiscovery="false" valueType="definedSymbols">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.define.511269805" name="Macro definition (-define)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.define" useByScannerDiscovery="false" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="DEBUG_CONSOLE"/>
|
||||
<listOptionValue builtIn="false" value="WOLFSSL_USER_SETTINGS"/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userBefore.165256012" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userBefore.165256012" name="User-defined options (added before all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userAfter.850666858" name="追加するオプション(すべての指定オプションの後ろに追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userAfter.850666858" name="User-defined options (added after all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC.897672730" name="Cソース (-lang)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC.c99" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode.862144636" name="プログラムの文字コード (-euc/-sjis/-latin1/-utf8/-big5/-gb2312)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode.utf8" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode.48690443" name="出力する文字コード (-outcode)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode.utf8" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.optimize.1557621233" name="最適化レベル (-optimize)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.optimize" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.optimize.level0" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC.897672730" name="C source file (-lang)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC.c99" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode.862144636" name="Character code of an input program (-euc/-sjis/-latin1/-utf8/-big5/-gb2312)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode.utf8" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode.48690443" name="Output character code (-outcode)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode.utf8" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.optimize.1557621233" name="Optimization level (-optimize)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.optimize" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.optimize.level0" valueType="enumerated"/>
|
||||
<inputType id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gcc.inputType.1722484558" name="Compiler Input C" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gcc.inputType"/>
|
||||
<inputType id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gpp.inputType.709788007" name="Compiler Input CPP" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gpp.inputType"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.assembler.1564576801" name="Assembler" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.assembler">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userBefore.1555827005" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userBefore.1555827005" name="User-defined options (added before all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userAfter.912893655" name="追加するオプション(すべての指定オプションの後ろに追加) " superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userAfter.912893655" name="User-defined options (added after all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode.864537553" name="プログラムの文字コード (-euc/-sjis/-latin1/-utf8/-big5/-gb2312)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode.utf8" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.include.1616986135" name="インクルード・ファイルを検索するフォルダ (-include)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.include" useByScannerDiscovery="false" valueType="includePath">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode.864537553" name="Character code of an input program (-euc/-sjis/-latin1/-utf8/-big5/-gb2312)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode.utf8" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.include.1616986135" name="Include file directories (-include)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.include" useByScannerDiscovery="false" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/general}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_pincfg}""/>
|
||||
</option>
|
||||
<inputType id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.inputType.502444415" name="Assembler InputType" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.inputType"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.linker.1333901009" name="Linker" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.linker">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.rom.2020069967" name="ROMからRAMへマップするセクション (-rom)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.rom" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.rom.2020069967" name="ROM to RAM mapped section (-rom)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.rom" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="D=R"/>
|
||||
<listOptionValue builtIn="false" value="D_1=R_1"/>
|
||||
<listOptionValue builtIn="false" value="D_2=R_2"/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.linkerSection.2043161263" name="セクション (-start)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.linkerSection" useByScannerDiscovery="false" value="SU,SI,B_1,R_1,B_2,R_2,B,R/04,B_ETHERNET_BUFFERS_1,B_RX_DESC_1,B_TX_DESC_1/020000,C_1,C_2,C,C$*,D*,W*,L,P*/0FFE00000,EXCEPTVECT/0FFFFFF80,RESETVECT/0FFFFFFFC" valueType="string"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userBefore.1452234640" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.linkerSection.2043161263" name="Sections (-start)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.linkerSection" useByScannerDiscovery="false" value="SU,SI,B_1,R_1,B_2,R_2,B,R/04,B_ETHERNET_BUFFERS_1,B_RX_DESC_1,B_TX_DESC_1/03C000,C_1,C_2,C,C$*,D*,W*,L,P/0FFE00000,EXCEPTVECT/0FFFFFF80,RESETVECT/0FFFFFFFC" valueType="string"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userBefore.1452234640" name="User-defined options (added before all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userAfter.1724535779" name="追加するオプション(すべての指定オプションの後ろに追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userAfter.1724535779" name="User-defined options (added after all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.vect.47410515" name="可変ベクタテーブルのアドレス未設定ベクタ番号に指定するアドレス (-vect)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.vect" useByScannerDiscovery="false" value="_undefined_interrupt_source_isr" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.checkSection.239094904" name="セクションの割り付けアドレスをチェックする (-cpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.checkSection" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType.1942768497" name="アドレス範囲指定方法 (-cpu(アドレス範囲指定方法))" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType.autoSpecify" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.noneLinkageOrderList.1237940973" name="(リンク順序のリスト) (-input/-library/-binary)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.noneLinkageOrderList" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.vect.47410515" name="Address setting for unused vector area (-vect)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.vect" useByScannerDiscovery="false" value="_undefined_interrupt_source_isr" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.checkSection.239094904" name="Checks the section larger than the specified range of addresses (-cpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.checkSection" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType.1942768497" name="Memory address type assignment method (-cpu(Address space of Single-Chip Mode))" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType.autoSpecify" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.noneLinkageOrderList.1237940973" name="(Linkage order list) (-input/-library/-binary)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.noneLinkageOrderList" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="".\src\benchmark.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src\key_data.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/Config_TMR0\Config_TMR0.obj""/>
|
||||
@@ -159,31 +158,31 @@
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_tsip_rx/lib/ccrx/r_tsip_rx65n_little.lib}""/>
|
||||
<listOptionValue builtIn="false" value=""${ProjDirPath}/../wolfssl/Debug/wolfssl.lib""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.inputFile.1438206933" name="リンクするリロケータブル・ファイル、ライブラリ・ファイルおよびバイナリ・ファイル (-input/-library/-binary)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.inputFile" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.inputFile.1438206933" name="Relocatable files, object files and library files (-input/-library/-binary)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.inputFile" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_t4_rx/lib/ccrx/T4_Library_ether_ccrx_rxv1_little_debug.lib}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_tsip_rx/lib/ccrx/r_tsip_rx65n_little.lib}""/>
|
||||
<listOptionValue builtIn="false" value=""${ProjDirPath}/../wolfssl/Debug/wolfssl.lib""/>
|
||||
</option>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.librarian.1723543812" name="Library Generator" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.librarian">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu.1397073307" name="浮動小数点演算命令を使用する (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu.yes" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userBefore.1773409552" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu.1397073307" name="Use floating point arithmetic instructions (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu.yes" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userBefore.1773409552" name="User-defined options (added before all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userAfter.946493093" name="追加するオプション(すべての指定オプションの後ろに追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userAfter.946493093" name="User-defined options (added after all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang.338617005" name="C言語標準ライブラリ関数の構成 (-lang)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang.c99" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.headCtype.1293885198" name="ctype.h(C89/C99):文字操作用ライブラリ (-head=ctype)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.headCtype" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang.338617005" name="Library configuration (-lang)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang.c99" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.headCtype.1293885198" name="ctype.h (C89/C99): Character classification routines (-head=ctype)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.headCtype" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.converter.1917108303" name="Converter" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.converter">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userBefore.109845398" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userBefore.109845398" name="User-defined options (added before all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userAfter.289006348" name="追加するオプション(すべての指定オプションの後ろに追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userAfter.289006348" name="User-defined options (added after all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOfOutputFile.230415631" name="出力ファイル形式 (-form)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOfOutputFile" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOFOutputFile.none" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOfOutputFile.230415631" name="Output file type (-form)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOfOutputFile" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOFOutputFile.none" valueType="enumerated"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.rtosConfig.318974000" name="RTOS Configurator" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.rtosConfig"/>
|
||||
</toolChain>
|
||||
@@ -194,7 +193,11 @@
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
<storageModule moduleId="com.renesas.cdt.managedbuild.core.boardInfo"/>
|
||||
<storageModule moduleId="com.renesas.cdt.managedbuild.core.boardInfo">
|
||||
<option id="board.id" value="gr-rose"/>
|
||||
<option id="board.name" value="gr-rose"/>
|
||||
<option id="board.device" value="R5F565NEHxFP"/>
|
||||
</storageModule>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.renesas.cdt.managedbuild.renesas.ccrx.debug.configuration.992474000">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.renesas.cdt.managedbuild.renesas.ccrx.debug.configuration.992474000" moduleId="org.eclipse.cdt.core.settings" name="Debug">
|
||||
@@ -218,13 +221,13 @@
|
||||
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF;org.eclipse.cdt.core.PE" id="com.renesas.cdt.managedbuild.renesas.ccrx.base.targetPlatform.617132481" osList="win32" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.targetPlatform"/>
|
||||
<builder buildPath="${workspace_loc:/test}/Debug" id="com.renesas.cdt.managedbuild.renesas.ccrx.base.builder.117543810" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="CCRX Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.builder"/>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.dsp.1744140894" name="DSP Assembler" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.dsp">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.noDebugInfo.1464228342" name="デバッグ情報を出力する (-no_debug_info)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.noDebugInfo" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian.733005442" name="出力するデータ値のエンディアン (-littleEndianData)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian.big" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.noDebugInfo.1464228342" name="Output debug information (-no_debug_info)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.noDebugInfo" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian.733005442" name="Endian of output data value (-littleEndianData)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian.big" valueType="enumerated"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.common.1294844059" name="Common" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.common">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.644795578" name="命令セット・アーキテクチャ (-isa)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.rxv2" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.644795578" name="Instruction set architecture (-isa)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.rxv2" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.rxArchitecture.1771586719" name="RX Architecture" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.rxArchitecture" useByScannerDiscovery="false" value="rxv2" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns.1045346284" name="浮動小数点演算命令を使用する (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns.yes" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns.1045346284" name="Use floating point arithmetic instructions (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns.yes" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasFpu.229476184" name="Has FPU" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasFpu" useByScannerDiscovery="false" value="TRUE" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceName.748972653" name="Device Name" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceName" useByScannerDiscovery="false" value="R5F565NEHxFP" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceHistory.780008434" name="Device history" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceHistory" useByScannerDiscovery="false" value="non_init;R5F565NEHxFP" valueType="string"/>
|
||||
@@ -235,8 +238,8 @@
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceFamily.1280023203" name="Device Family" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceFamily" useByScannerDiscovery="false" value="RX65N" valueType="string"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.compiler.278830907" name="Compiler" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.compiler">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu.2144484247" name="浮動小数点演算命令を使用する (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu.yes" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.include.545347560" name="インクルード・ファイルを検索するフォルダ (-include)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.include" valueType="includePath">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu.2144484247" name="Use floating point arithmetic instructions (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu.yes" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.include.545347560" name="Include file directories (-include)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.include" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value="${TCINSTALL}/include"/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_bsp}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_config}""/>
|
||||
@@ -255,77 +258,78 @@
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_sys_time_rx/src}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/general}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_pincfg}""/>
|
||||
<listOptionValue builtIn="false" value="${ProjDirPath}/generate"/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.define.935611572" name="プリプロセッサ・マクロの定義 (-define)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.define" valueType="definedSymbols">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.define.935611572" name="Macro definition (-define)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.define" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="DEBUG_CONSOLE"/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userBefore.878126292" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userBefore.878126292" name="User-defined options (added before all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userAfter.443993930" name="追加するオプション(すべての指定オプションの後ろに追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userAfter.443993930" name="User-defined options (added after all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC.47850385" name="Cソース (-lang)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC.c99" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode.24533273" name="プログラムの文字コード (-euc/-sjis/-latin1/-utf8/-big5/-gb2312)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode.utf8" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode.542364588" name="出力する文字コード (-outcode)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode.utf8" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC.47850385" name="C source file (-lang)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC.c99" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode.24533273" name="Character code of an input program (-euc/-sjis/-latin1/-utf8/-big5/-gb2312)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode.utf8" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode.542364588" name="Output character code (-outcode)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode.utf8" valueType="enumerated"/>
|
||||
<inputType id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gcc.inputType.1919404628" name="Compiler Input C" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gcc.inputType"/>
|
||||
<inputType id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gpp.inputType.293530100" name="Compiler Input CPP" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gpp.inputType"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.assembler.607581328" name="Assembler" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.assembler">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userBefore.622904140" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userBefore.622904140" name="User-defined options (added before all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userAfter.67379527" name="追加するオプション(すべての指定オプションの後ろに追加) " superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userAfter.67379527" name="User-defined options (added after all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode.1186358257" name="プログラムの文字コード (-euc/-sjis/-latin1/-utf8/-big5/-gb2312)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode.utf8" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.include.1360045103" name="インクルード・ファイルを検索するフォルダ (-include)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.include" valueType="includePath">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode.1186358257" name="Character code of an input program (-euc/-sjis/-latin1/-utf8/-big5/-gb2312)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode.utf8" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.include.1360045103" name="Include file directories (-include)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.include" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/general}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_pincfg}""/>
|
||||
</option>
|
||||
<inputType id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.inputType.1482916460" name="Assembler InputType" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.inputType"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.linker.1516159151" name="Linker" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.linker">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.rom.1765662172" name="ROMからRAMへマップするセクション (-rom)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.rom" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.rom.1765662172" name="ROM to RAM mapped section (-rom)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.rom" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="D=R"/>
|
||||
<listOptionValue builtIn="false" value="D_1=R_1"/>
|
||||
<listOptionValue builtIn="false" value="D_2=R_2"/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.linkerSection.1046231838" name="セクション (-start)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.linkerSection" useByScannerDiscovery="false" value="SU,SI,B_1,R_1,B_2,R_2,B,R/04,C_1,C_2,C,C$*,D*,W*,L,P*/0FFE00000,EXCEPTVECT/0FFFFFF80,RESETVECT/0FFFFFFFC,B_ETHERNET_BUFFERS_1,B_RX_DESC_1,B_TX_DESC_1/00010000" valueType="string"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userBefore.1651005552" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.linkerSection.1046231838" name="Sections (-start)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.linkerSection" useByScannerDiscovery="false" value="SU,SI,B_1,R_1,B_2,R_2,B,R/04,C_1,C_2,C,C$*,D*,W*,L,P*/0FFE00000,EXCEPTVECT/0FFFFFF80,RESETVECT/0FFFFFFFC,B_ETHERNET_BUFFERS_1,B_RX_DESC_1,B_TX_DESC_1/00010000" valueType="string"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userBefore.1651005552" name="User-defined options (added before all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userAfter.40118921" name="追加するオプション(すべての指定オプションの後ろに追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userAfter.40118921" name="User-defined options (added after all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.vect.1524833684" name="可変ベクタテーブルのアドレス未設定ベクタ番号に指定するアドレス (-vect)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.vect" useByScannerDiscovery="false" value="_undefined_interrupt_source_isr" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.checkSection.1914971075" name="セクションの割り付けアドレスをチェックする (-cpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.checkSection" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType.1670384649" name="アドレス範囲指定方法 (-cpu(アドレス範囲指定方法))" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType.autoSpecify" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.noneLinkageOrderList.1556433699" name="(リンク順序のリスト) (-input/-library/-binary)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.noneLinkageOrderList" valueType="stringList">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.vect.1524833684" name="Address setting for unused vector area (-vect)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.vect" useByScannerDiscovery="false" value="_undefined_interrupt_source_isr" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.checkSection.1914971075" name="Checks the section larger than the specified range of addresses (-cpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.checkSection" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType.1670384649" name="Memory address type assignment method (-cpu(Address space of Single-Chip Mode))" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType.autoSpecify" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.noneLinkageOrderList.1556433699" name="(Linkage order list) (-input/-library/-binary)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.noneLinkageOrderList" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="".\test.lib""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.inputFile.856176867" name="リンクするリロケータブル・ファイル、ライブラリ・ファイルおよびバイナリ・ファイル (-input/-library/-binary)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.inputFile" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.inputFile.856176867" name="Relocatable files, object files and library files (-input/-library/-binary)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.inputFile" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_t4_rx/lib/T4_Library_rxv1_ether_little.lib}""/>
|
||||
</option>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.librarian.1598250045" name="Library Generator" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.librarian">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu.665362864" name="浮動小数点演算命令を使用する (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu.yes" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userBefore.413642487" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu.665362864" name="Use floating point arithmetic instructions (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu.yes" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userBefore.413642487" name="User-defined options (added before all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userAfter.322853429" name="追加するオプション(すべての指定オプションの後ろに追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userAfter.322853429" name="User-defined options (added after all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang.1591825359" name="C言語標準ライブラリ関数の構成 (-lang)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang.c99" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang.1591825359" name="Library configuration (-lang)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang.c99" valueType="enumerated"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.converter.175269062" name="Converter" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.converter">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userBefore.1586351233" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userBefore.1586351233" name="User-defined options (added before all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userAfter.900284814" name="追加するオプション(すべての指定オプションの後ろに追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userAfter.900284814" name="User-defined options (added after all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOfOutputFile.2141918916" name="出力ファイル形式 (-form)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOfOutputFile" value="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOFOutputFile.none" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOfOutputFile.2141918916" name="Output file type (-form)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOfOutputFile" value="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOFOutputFile.none" valueType="enumerated"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.rtosConfig.1118615463" name="RTOS Configurator" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.rtosConfig"/>
|
||||
</toolChain>
|
||||
@@ -336,6 +340,11 @@
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
<storageModule moduleId="com.renesas.cdt.managedbuild.core.boardInfo">
|
||||
<option id="board.id" value="gr-rose"/>
|
||||
<option id="board.name" value="gr-rose"/>
|
||||
<option id="board.device" value="R5F565NEHxFP"/>
|
||||
</storageModule>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
|
||||
@@ -32,12 +32,12 @@
|
||||
<link>
|
||||
<name>src/benchmark.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>$%7BPARENT-6-PROJECT_LOC%7D/wolfcrypt/benchmark/benchmark.c</locationURI>
|
||||
<locationURI>PARENT-6-PROJECT_LOC/wolfcrypt/benchmark/benchmark.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>src/benchmark.h</name>
|
||||
<type>1</type>
|
||||
<locationURI>$%7BPARENT-6-PROJECT_LOC%7D/wolfcrypt/benchmark/benchmark.h</locationURI>
|
||||
<locationURI>PARENT-6-PROJECT_LOC/wolfcrypt/benchmark/benchmark.h</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>src/test.c</name>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* key_data.c
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
@@ -71,12 +71,66 @@ const st_key_block_data_t g_key_block_data =
|
||||
},
|
||||
/* uint8_t encrypted_user_update_key[R_TSIP_AES256_KEY_BYTE_SIZE + 16]; */
|
||||
{
|
||||
0x79, 0xB6, 0x8C, 0x48, 0x0A, 0xF2, 0x09, 0xF5, 0xD9, 0x66, 0xBE, 0x9F,
|
||||
0xD1, 0x7A, 0x93, 0x52, 0x26, 0x76, 0x6B, 0xB8, 0xF6, 0xB3, 0x88, 0xA6,
|
||||
0x4F, 0x6F, 0xB3, 0xF4, 0x8D, 0x83, 0x8F, 0xA0, 0x4A, 0x14, 0xAE, 0xF3,
|
||||
0xCB, 0x00, 0x1A, 0x0B, 0xB5, 0xE6, 0x65, 0x83, 0x2A, 0x5A, 0x16, 0x8B
|
||||
0
|
||||
},
|
||||
/* uint8_t
|
||||
* encrypted_user_rsa2048_private_key[R_TSIP_RSA2048_ND_KEY_BYTE_SIZE + 16]
|
||||
*/
|
||||
{
|
||||
0x22, 0xEC, 0xE3, 0x79, 0xD1, 0x0C, 0xB4, 0xED, 0xE0, 0xA9, 0x0F, 0xBD,
|
||||
0xC7, 0x0B, 0xB4, 0x1E, 0x82, 0x27, 0x79, 0x20, 0x6A, 0x15, 0x56, 0xD6,
|
||||
0x0F, 0xFA, 0xE4, 0x61, 0x04, 0xDA, 0x81, 0x33, 0x42, 0xBA, 0x6D, 0xB9,
|
||||
0x34, 0x81, 0xFD, 0x67, 0xDF, 0x1D, 0xCB, 0x52, 0x64, 0x9A, 0x2E, 0x30,
|
||||
0x12, 0x60, 0xCB, 0x48, 0x27, 0xB6, 0x38, 0x0B, 0x54, 0x5A, 0x70, 0xCB,
|
||||
0x6F, 0x05, 0x53, 0x46, 0x8B, 0x08, 0x86, 0x24, 0xCB, 0xA2, 0x36, 0x54,
|
||||
0xCD, 0xC9, 0x61, 0x37, 0x43, 0xCB, 0xCC, 0x7C, 0x6B, 0x20, 0x07, 0xB6,
|
||||
0x01, 0x96, 0x32, 0xF5, 0x30, 0x0E, 0x96, 0x05, 0xC4, 0xF5, 0xF0, 0xB0,
|
||||
0xD3, 0x26, 0xAF, 0x6E, 0x39, 0x01, 0x2D, 0xAC, 0x7E, 0x39, 0xCF, 0x48,
|
||||
0x74, 0x7D, 0x98, 0x00, 0xA6, 0x95, 0xDA, 0x4C, 0xAC, 0x81, 0xC7, 0x9A,
|
||||
0x93, 0x69, 0x23, 0xD4, 0x39, 0xCD, 0xB3, 0x62, 0x4A, 0x4A, 0x26, 0x95,
|
||||
0x51, 0xE1, 0x06, 0x8F, 0xB2, 0x3C, 0x8F, 0xDE, 0xF1, 0xC3, 0x69, 0xFC,
|
||||
0xF5, 0xC3, 0xCE, 0x39, 0x3F, 0x7F, 0x2D, 0xA8, 0x8B, 0xB3, 0x2D, 0xE4,
|
||||
0xB8, 0xA4, 0x19, 0x55, 0x29, 0xEC, 0x9C, 0x6A, 0xD7, 0xD7, 0x45, 0x3E,
|
||||
0x1D, 0x18, 0x52, 0xB5, 0x8A, 0xB1, 0x26, 0x43, 0x8C, 0x7A, 0x65, 0xF1,
|
||||
0x17, 0x5E, 0x75, 0x4A, 0x1A, 0x30, 0xD8, 0xEA, 0xC2, 0x19, 0x3C, 0x1E,
|
||||
0x2E, 0xFB, 0xDB, 0xC9, 0x1F, 0x73, 0xC9, 0x95, 0x53, 0x8C, 0x99, 0x5D,
|
||||
0x3B, 0x59, 0xFE, 0x8B, 0xA1, 0xD2, 0xBB, 0xBC, 0xBC, 0x4B, 0x78, 0x0A,
|
||||
0x6B, 0xD8, 0xBE, 0x85, 0x60, 0x08, 0x1E, 0x2F, 0x38, 0x77, 0xA3, 0xC4,
|
||||
0x46, 0xC1, 0x42, 0x39, 0xA6, 0x59, 0x98, 0x59, 0x21, 0x94, 0x1F, 0xDC,
|
||||
0xB3, 0xAE, 0xA3, 0xB6, 0xCC, 0x35, 0x82, 0x6F, 0x87, 0x58, 0x91, 0x70,
|
||||
0xEC, 0x3F, 0x05, 0x86, 0x3C, 0xD1, 0x83, 0xB0, 0xBA, 0xE8, 0xD7, 0xF6,
|
||||
0xE5, 0x9E, 0x50, 0xA4, 0x04, 0xF3, 0x95, 0x9C, 0x41, 0xAF, 0xEB, 0x9D,
|
||||
0xB6, 0xA2, 0xF7, 0x80, 0x5A, 0xC4, 0x67, 0xD4, 0xFD, 0x0C, 0x2A, 0x7C,
|
||||
0x24, 0x03, 0xE5, 0x7F, 0x08, 0x69, 0x18, 0x4E, 0x33, 0x22, 0x7E, 0x03,
|
||||
0x8E, 0x13, 0xFB, 0xC6, 0x9B, 0xA3, 0x44, 0x5B, 0xEC, 0xF9, 0x5C, 0x93,
|
||||
0x3E, 0x9F, 0xBD, 0x72, 0x50, 0x52, 0xF3, 0xEA, 0x34, 0x2B, 0x8E, 0xEC,
|
||||
0x17, 0x42, 0x1A, 0xDF, 0x57, 0xA2, 0x66, 0xA7, 0x0B, 0x3B, 0xE5, 0xF7,
|
||||
0x64, 0x44, 0xA2, 0xA3, 0x5F, 0xB7, 0x5B, 0xF5, 0x99, 0x8C, 0xA0, 0x64,
|
||||
0x04, 0x46, 0x7C, 0x60, 0x75, 0xE4, 0xD9, 0xD5, 0xED, 0x21, 0x1D, 0x65,
|
||||
0x5D, 0x25, 0x21, 0x90, 0x7D, 0xA4, 0x95, 0x15, 0x54, 0x91, 0xD6, 0xB8,
|
||||
0xF9, 0xB7, 0x30, 0xD9, 0x7D, 0x2C, 0x7E, 0x85, 0x6A, 0xCF, 0x31, 0x1C,
|
||||
0xDC, 0x90, 0xA3, 0x75, 0xA4, 0xE4, 0x89, 0x5F, 0x2B, 0xED, 0x93, 0x4E,
|
||||
0xA8, 0x35, 0xD3, 0x20, 0x36, 0x7A, 0x02, 0x23, 0x70, 0xB7, 0xC2, 0x39,
|
||||
0xA4, 0x69, 0xB2, 0xBF, 0xA4, 0x3A, 0x6D, 0xB7, 0xB1, 0x32, 0x32, 0x9A,
|
||||
0x95, 0xEA, 0x02, 0xD2, 0x35, 0xE7, 0x8C, 0xD8, 0x22, 0xA9, 0xC3, 0x4C,
|
||||
0x68, 0x09, 0xA1, 0x2B, 0xB0, 0xE4, 0x55, 0x72, 0x7E, 0xE6, 0x00, 0xDD,
|
||||
0xC6, 0xD1, 0x83, 0x56, 0x08, 0x35, 0xC7, 0x9A, 0x98, 0x0C, 0x79, 0xBD,
|
||||
0x49, 0xBC, 0x3F, 0x45, 0x4A, 0x38, 0x1B, 0x55, 0x2D, 0x52, 0x57, 0x00,
|
||||
0xFC, 0xDB, 0xE7, 0xA0, 0x53, 0xB4, 0x63, 0xE4, 0x37, 0xEC, 0x9F, 0xF0,
|
||||
0xA4, 0x0F, 0xEF, 0x06, 0xF0, 0xC6, 0x5F, 0x0C, 0x4A, 0xB8, 0xC1, 0x96,
|
||||
0x1D, 0x0D, 0x9A, 0x43, 0x89, 0xA4, 0xF6, 0x55, 0x4A, 0x83, 0x54, 0x3F,
|
||||
0xCC, 0x09, 0x65, 0x34, 0xC0, 0x0F, 0x42, 0xF2, 0xE6, 0xDD, 0x2D, 0x8C,
|
||||
0x93, 0x42, 0x09, 0xF6, 0xE4, 0xDF, 0xB2, 0x64, 0x2A, 0x12, 0x7A, 0x59
|
||||
},
|
||||
/* uint8_t
|
||||
* encrypted_user_ecc256_private_key[R_TSIP_ECC_PRIVATE_KEY_BYTE_SIZE + 16];
|
||||
*/
|
||||
{
|
||||
0x25, 0x7A, 0x0C, 0x8C, 0x9B, 0xF9, 0x3C, 0xF5, 0x49, 0x08, 0x86, 0x92,
|
||||
0x00, 0x7D, 0xAB, 0x21, 0x23, 0x38, 0xF8, 0xEA, 0xB0, 0x95, 0x59, 0x9B,
|
||||
0x04, 0xC8, 0xAA, 0xEA, 0x8C, 0x2D, 0x68, 0xF4, 0xD5, 0xD7, 0xA9, 0x6F,
|
||||
0x2C, 0x8C, 0x13, 0x93, 0xA3, 0x80, 0x11, 0xF9, 0x0F, 0x36, 0x14, 0xA8
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
/* Public key type of CA root cert: 0: RSA-2048 2: ECDSA-P256*/
|
||||
@@ -90,83 +144,83 @@ const uint32_t encrypted_user_key_type =
|
||||
|
||||
const unsigned char ca_ecc_cert_der_sig[] =
|
||||
{
|
||||
0x29, 0xaf, 0x9a, 0x3a, 0xc3, 0xa4, 0x21, 0x87, 0x59, 0xc7, 0x67, 0x85,
|
||||
0x93, 0xfc, 0xbc, 0x8a, 0xe6, 0xf8, 0xbd, 0x95, 0xf5, 0x84, 0xc5, 0x2c,
|
||||
0x66, 0xcf, 0x5a, 0x2e, 0x0b, 0x09, 0x8e, 0x15, 0x7e, 0x8a, 0xb1, 0x5b,
|
||||
0x29, 0x3a, 0x32, 0x75, 0x44, 0xbf, 0xce, 0x18, 0xb1, 0xd6, 0x8c, 0x9c,
|
||||
0xd7, 0xbd, 0x2d, 0xd3, 0xb4, 0x95, 0xa8, 0xee, 0xa6, 0xba, 0xf4, 0x94,
|
||||
0x6c, 0xc9, 0xf6, 0x4e, 0xbe, 0x6d, 0xe8, 0xf8, 0x65, 0x8a, 0xbc, 0x77,
|
||||
0x64, 0x64, 0xc5, 0xf0, 0x7c, 0x62, 0x7b, 0x49, 0x3c, 0x2f, 0x6b, 0x01,
|
||||
0x74, 0x57, 0x83, 0x85, 0xba, 0x21, 0x7a, 0xc3, 0x84, 0xb3, 0x0f, 0x23,
|
||||
0x69, 0x07, 0xf8, 0xcc, 0x1a, 0x66, 0xc0, 0xcd, 0x88, 0x35, 0x13, 0x60,
|
||||
0xd2, 0xe6, 0x97, 0xc3, 0xf0, 0xc1, 0xee, 0xf1, 0x00, 0x56, 0x3e, 0xf2,
|
||||
0x42, 0xc2, 0x58, 0x56, 0xa2, 0x8f, 0xe4, 0x0d, 0x5b, 0xac, 0x59, 0x27,
|
||||
0x35, 0x0a, 0x88, 0xb7, 0x9f, 0x81, 0xcf, 0xf1, 0xfd, 0x11, 0x07, 0x15,
|
||||
0x46, 0x99, 0x9c, 0x41, 0x9d, 0x0c, 0x3d, 0x4d, 0x30, 0x91, 0x16, 0x8a,
|
||||
0xd8, 0xd2, 0xa2, 0x4b, 0xa6, 0x0b, 0x7b, 0x7b, 0xb1, 0x2e, 0x34, 0xb5,
|
||||
0x0c, 0xda, 0x61, 0x6c, 0xb0, 0xb1, 0x3a, 0x70, 0xad, 0xcc, 0xe1, 0x9e,
|
||||
0x48, 0x41, 0xd7, 0x18, 0xb7, 0x9c, 0xb4, 0x38, 0xd3, 0xc3, 0x2b, 0xf0,
|
||||
0x23, 0x08, 0x4e, 0x2a, 0x2e, 0xa1, 0x80, 0x22, 0x24, 0x77, 0x67, 0xab,
|
||||
0x2b, 0x58, 0xc2, 0x51, 0xaf, 0x2c, 0xf2, 0x61, 0x31, 0x6f, 0xce, 0xc8,
|
||||
0x86, 0x96, 0xe7, 0xa7, 0x14, 0x07, 0x65, 0xda, 0xf2, 0xba, 0x83, 0x45,
|
||||
0xe1, 0x5c, 0x51, 0x29, 0xdd, 0x34, 0xc2, 0x37, 0x14, 0x50, 0x89, 0xae,
|
||||
0x95, 0xa7, 0xa7, 0xbb, 0xc4, 0x79, 0xb8, 0xd1, 0xae, 0x1d, 0x48, 0x6d,
|
||||
0x88, 0x0f, 0x41, 0xb1
|
||||
0x6e, 0x7d, 0x2b, 0xd3, 0x6d, 0x6a, 0x70, 0x31, 0xbf, 0xcd, 0x6f, 0x32,
|
||||
0x74, 0x8b, 0x4d, 0xdf, 0x7c, 0x72, 0xc6, 0x78, 0x61, 0x2b, 0x0f, 0xcc,
|
||||
0xbc, 0xa3, 0x25, 0x54, 0x04, 0xfa, 0x9e, 0xf7, 0x1c, 0xa2, 0xe1, 0x33,
|
||||
0x90, 0x08, 0xcd, 0x3c, 0xc1, 0x03, 0x66, 0xb6, 0x3f, 0xf1, 0xbf, 0xaf,
|
||||
0x0d, 0xb0, 0xeb, 0xe4, 0xc7, 0x54, 0x60, 0x34, 0x3b, 0x62, 0xcf, 0x28,
|
||||
0x95, 0xa2, 0x08, 0x79, 0xc5, 0x51, 0xf3, 0xe1, 0x88, 0x3b, 0xa0, 0x1d,
|
||||
0x1d, 0x42, 0x5a, 0xba, 0x09, 0xe4, 0x64, 0xa1, 0x83, 0xf4, 0x60, 0x44,
|
||||
0x89, 0xd3, 0xdd, 0x6c, 0x71, 0x7b, 0xd1, 0xb0, 0x28, 0x7b, 0x98, 0xe2,
|
||||
0x4b, 0x99, 0x9a, 0x22, 0xd0, 0xeb, 0x1c, 0x5c, 0xbe, 0x49, 0x1a, 0xcf,
|
||||
0xd7, 0x4b, 0x19, 0xe9, 0xdf, 0x82, 0x21, 0xe3, 0x87, 0x7a, 0x25, 0x58,
|
||||
0x8f, 0x29, 0x0e, 0xce, 0xf4, 0x09, 0x0f, 0x2f, 0x04, 0xe9, 0xd2, 0xf9,
|
||||
0xcc, 0xb7, 0x7a, 0x46, 0x5d, 0x98, 0x05, 0x54, 0x89, 0x8e, 0x09, 0x79,
|
||||
0xa8, 0x6f, 0xf6, 0x12, 0xdd, 0x93, 0x38, 0x83, 0x14, 0x3f, 0x42, 0xcf,
|
||||
0x03, 0x9d, 0x84, 0x9d, 0xe9, 0x6e, 0x9f, 0x87, 0x0f, 0xb8, 0x15, 0x9b,
|
||||
0x9b, 0x4c, 0x32, 0x3b, 0x82, 0x7b, 0x3d, 0xd4, 0x85, 0x1e, 0x71, 0x99,
|
||||
0x67, 0x40, 0x59, 0xad, 0x8c, 0x31, 0xd7, 0xa2, 0x81, 0xfd, 0x46, 0x21,
|
||||
0xd7, 0xc8, 0x89, 0x3d, 0x17, 0x3f, 0x5e, 0x82, 0x5e, 0xfa, 0x7b, 0x34,
|
||||
0x7a, 0x1b, 0x85, 0x86, 0xf8, 0x02, 0xf2, 0xf3, 0x01, 0x2c, 0xbd, 0x4a,
|
||||
0x98, 0x0f, 0xe9, 0x4b, 0x1a, 0xa3, 0xee, 0xfc, 0x77, 0xda, 0xcf, 0xee,
|
||||
0x9c, 0xca, 0xf9, 0xbf, 0xaa, 0x5b, 0xbc, 0x01, 0x4b, 0xd4, 0x74, 0x7c,
|
||||
0xee, 0xfb, 0x7c, 0xc4, 0x31, 0xb7, 0x46, 0x9e, 0x94, 0x84, 0xa3, 0x82,
|
||||
0x0c, 0x7b, 0x61, 0x4e
|
||||
};
|
||||
const int sizeof_ca_ecc_cert_sig = sizeof(ca_ecc_cert_der_sig);
|
||||
|
||||
/* ./ca-cert.der.sign, */
|
||||
const unsigned char ca_cert_der_sig[] =
|
||||
{
|
||||
0x76, 0xf3, 0x14, 0x64, 0x40, 0x98, 0x35, 0x8f, 0x34, 0x47, 0xbd, 0xf7,
|
||||
0x4d, 0xe0, 0x44, 0x20, 0x29, 0x0e, 0x5b, 0x8a, 0x0f, 0x11, 0x62, 0x56,
|
||||
0xc6, 0xae, 0x22, 0x17, 0xb4, 0x78, 0xd0, 0xe5, 0x25, 0x6e, 0x6d, 0x1b,
|
||||
0xa6, 0x55, 0x9c, 0x86, 0xd2, 0x00, 0x45, 0xef, 0x82, 0x3e, 0xbe, 0xae,
|
||||
0x51, 0xe2, 0x01, 0x3e, 0x09, 0x78, 0x3c, 0xcc, 0xae, 0x38, 0x6c, 0x8d,
|
||||
0x9a, 0xdf, 0x86, 0xaa, 0xf5, 0xa5, 0x5e, 0xd2, 0x80, 0x31, 0x5d, 0xa9,
|
||||
0x3c, 0xf2, 0xa3, 0xf8, 0xed, 0xb7, 0xf0, 0x13, 0x48, 0xb9, 0x87, 0x72,
|
||||
0x42, 0x73, 0x80, 0xa6, 0xe7, 0x89, 0x4d, 0xe1, 0x81, 0x23, 0xdb, 0xd0,
|
||||
0x1f, 0x27, 0x85, 0xc1, 0x5e, 0x9b, 0x2e, 0x7e, 0x6e, 0x9f, 0x24, 0x59,
|
||||
0x6b, 0xe6, 0x6d, 0x9d, 0x11, 0x30, 0x99, 0x64, 0x8c, 0xf1, 0x35, 0xe2,
|
||||
0xf4, 0xa6, 0x07, 0xcf, 0x63, 0x12, 0x9e, 0x6c, 0x23, 0xe4, 0xab, 0x71,
|
||||
0x6a, 0xf8, 0xd2, 0x45, 0x24, 0x7d, 0xf2, 0xff, 0x9e, 0x6f, 0xd2, 0x54,
|
||||
0xf7, 0xd0, 0x1c, 0x0c, 0xe2, 0x28, 0x61, 0x20, 0xce, 0xe0, 0x5a, 0x49,
|
||||
0x6e, 0x38, 0x6e, 0x94, 0xb9, 0x30, 0x08, 0x30, 0xc5, 0xed, 0xe1, 0x7c,
|
||||
0x52, 0x7a, 0xa1, 0x41, 0x5c, 0x7f, 0x6e, 0x3a, 0xaa, 0xbc, 0x6d, 0xa1,
|
||||
0x37, 0x2d, 0xe3, 0x6f, 0xf2, 0x02, 0xee, 0xb4, 0x9f, 0x1a, 0x92, 0x19,
|
||||
0xd4, 0xca, 0x2b, 0x80, 0x9f, 0x70, 0x01, 0x7d, 0xf4, 0x6a, 0x1e, 0x0a,
|
||||
0x9d, 0x04, 0x0f, 0x8e, 0x41, 0x4e, 0x65, 0xf3, 0x47, 0x19, 0x9c, 0xa0,
|
||||
0x1c, 0x9b, 0xda, 0xca, 0x07, 0x24, 0x91, 0x41, 0x83, 0xf6, 0xb4, 0xbd,
|
||||
0xfd, 0x2c, 0xf1, 0xf2, 0xfe, 0xf4, 0xf9, 0x8d, 0x01, 0x9f, 0xf2, 0x05,
|
||||
0x76, 0x05, 0xf0, 0x81, 0x16, 0x74, 0x69, 0xe6, 0x8b, 0xcc, 0x5a, 0x99,
|
||||
0xfd, 0x4b, 0xf8, 0xa6
|
||||
0x0a, 0xc8, 0xbb, 0x7e, 0x5a, 0x72, 0x6a, 0x5b, 0xf0, 0xc6, 0xbf, 0x36,
|
||||
0x8e, 0xe1, 0xcd, 0xbc, 0x08, 0xfd, 0x22, 0x5a, 0x3b, 0x48, 0x33, 0xb9,
|
||||
0x12, 0x55, 0x80, 0x6c, 0x36, 0x14, 0x05, 0x24, 0x63, 0x20, 0x8b, 0x26,
|
||||
0x69, 0xa9, 0xe3, 0x15, 0xb9, 0x00, 0x8d, 0xea, 0x3a, 0xee, 0x2d, 0x41,
|
||||
0xec, 0x43, 0x4a, 0x17, 0x48, 0x26, 0x4a, 0xd6, 0xe4, 0x1b, 0xa5, 0x97,
|
||||
0x2e, 0xf6, 0x41, 0xa7, 0xa2, 0x2b, 0x83, 0x2c, 0xad, 0x6e, 0x4e, 0xfc,
|
||||
0x57, 0xf1, 0x28, 0xf0, 0xa7, 0xf9, 0x5b, 0x48, 0xab, 0xed, 0x63, 0x22,
|
||||
0xed, 0x1e, 0xf1, 0x9d, 0xab, 0xbf, 0x9c, 0x78, 0x04, 0x49, 0xad, 0xf1,
|
||||
0x43, 0x2f, 0x21, 0x9c, 0x90, 0xb8, 0x35, 0x14, 0x68, 0x12, 0x89, 0x00,
|
||||
0x20, 0x5b, 0x83, 0x52, 0xb7, 0xec, 0x26, 0x01, 0x26, 0xe1, 0x0f, 0xf6,
|
||||
0x98, 0xd1, 0xb6, 0x28, 0x84, 0xc8, 0xa5, 0x3e, 0xe9, 0xfb, 0x19, 0x2e,
|
||||
0x8f, 0xd7, 0x66, 0x98, 0xc0, 0x5e, 0x7b, 0xbc, 0x1a, 0xd9, 0x27, 0xb9,
|
||||
0x76, 0xcc, 0x58, 0x48, 0x0c, 0x0c, 0x22, 0x23, 0x19, 0xfd, 0x22, 0xfa,
|
||||
0x47, 0x90, 0x38, 0x62, 0xe0, 0x91, 0x79, 0x35, 0x3d, 0xa2, 0x83, 0x99,
|
||||
0x2b, 0x86, 0x7a, 0x88, 0x9b, 0x07, 0xe7, 0xc5, 0x95, 0x69, 0x9a, 0x2b,
|
||||
0x2e, 0x47, 0xcf, 0xfd, 0x9e, 0x64, 0xb5, 0xca, 0x44, 0x94, 0x95, 0xf3,
|
||||
0x2a, 0x8f, 0x4a, 0xcf, 0x0f, 0xd4, 0x7e, 0x0d, 0x0f, 0x2a, 0x0b, 0xb6,
|
||||
0x89, 0x64, 0xe3, 0x8c, 0x02, 0x3e, 0x76, 0x66, 0x68, 0x19, 0xa9, 0x07,
|
||||
0x5a, 0xc6, 0x33, 0xcd, 0x27, 0xff, 0x07, 0xd4, 0x91, 0x5b, 0x11, 0x3a,
|
||||
0xe3, 0xf5, 0x69, 0x70, 0xa7, 0xfe, 0xf2, 0xf0, 0xbd, 0x11, 0xaf, 0xa7,
|
||||
0x37, 0xda, 0x24, 0x75, 0x3e, 0x1a, 0x39, 0x49, 0xb4, 0x1e, 0x0e, 0xaf,
|
||||
0x5d, 0x1e, 0x94, 0xdf
|
||||
};
|
||||
const int sizeof_ca_cert_sig = sizeof(ca_cert_der_sig);
|
||||
/* ./client-cert.der.sign, */
|
||||
const unsigned char client_cert_der_sign[] =
|
||||
{
|
||||
0x5D, 0x1F, 0x89, 0x41, 0xEC, 0x47, 0xC8, 0x90, 0x61, 0x79, 0x8A, 0x16,
|
||||
0x1F, 0x31, 0x96, 0x67, 0xD9, 0x3C, 0xEC, 0x6B, 0x58, 0xC6, 0x5A, 0xED,
|
||||
0x99, 0xB3, 0xEF, 0x27, 0x6F, 0x04, 0x8C, 0xD9, 0x68, 0xB1, 0xD6, 0x23,
|
||||
0x15, 0x84, 0x00, 0xE1, 0x27, 0xD1, 0x1F, 0x68, 0xB7, 0x3F, 0x13, 0x53,
|
||||
0x8A, 0x95, 0x5A, 0x20, 0x7C, 0xB2, 0x76, 0x5B, 0xDC, 0xE0, 0xA6, 0x21,
|
||||
0x7C, 0x49, 0xCF, 0x93, 0xBA, 0xD5, 0x12, 0x9F, 0xEE, 0x90, 0x5B, 0x3F,
|
||||
0xA3, 0x9D, 0x13, 0x72, 0xAC, 0x72, 0x16, 0xFE, 0x1D, 0xBE, 0xEB, 0x8E,
|
||||
0xC7, 0xDC, 0xC4, 0xF8, 0x1A, 0xD8, 0xA0, 0xA4, 0xF6, 0x04, 0x30, 0xF6,
|
||||
0x7E, 0xB6, 0xC8, 0xE1, 0xAB, 0x88, 0x37, 0x08, 0x63, 0x72, 0xAA, 0x46,
|
||||
0xCC, 0xCA, 0xF0, 0x9E, 0x02, 0x1E, 0x65, 0x67, 0xFF, 0x2C, 0x9D, 0x81,
|
||||
0x6C, 0x1E, 0xF1, 0x54, 0x05, 0x68, 0x68, 0x18, 0x72, 0x26, 0x55, 0xB6,
|
||||
0x2C, 0x95, 0xC0, 0xC9, 0xB2, 0xA7, 0x0B, 0x60, 0xD7, 0xEB, 0x1D, 0x08,
|
||||
0x1A, 0xA2, 0x54, 0x15, 0x89, 0xCB, 0x83, 0x21, 0x5D, 0x15, 0x9B, 0x38,
|
||||
0xAC, 0x89, 0x63, 0xD5, 0x4B, 0xF4, 0x8B, 0x47, 0x93, 0x78, 0x43, 0xCB,
|
||||
0x9B, 0x71, 0xBF, 0x94, 0x76, 0xB5, 0xCE, 0x35, 0xA9, 0x1A, 0xD5, 0xA5,
|
||||
0xD8, 0x19, 0xA6, 0x04, 0x39, 0xB1, 0x09, 0x8C, 0x65, 0x02, 0x58, 0x3A,
|
||||
0x95, 0xEF, 0xA2, 0xC3, 0x85, 0x18, 0x61, 0x23, 0x2D, 0xC5, 0xCD, 0x62,
|
||||
0xC1, 0x19, 0x31, 0xE5, 0x36, 0x95, 0x22, 0xDB, 0x3E, 0x1A, 0x3C, 0xE8,
|
||||
0xC6, 0x2E, 0xDF, 0xD9, 0x2F, 0x84, 0xC1, 0xF0, 0x38, 0x2B, 0xE5, 0x73,
|
||||
0x35, 0x4F, 0x05, 0xE2, 0xA5, 0x60, 0x79, 0xB0, 0x23, 0xDC, 0x56, 0x4C,
|
||||
0xE7, 0xD9, 0x1F, 0xCF, 0x6A, 0xFC, 0x55, 0xEB, 0xAA, 0x48, 0x3E, 0x95,
|
||||
0x2A, 0x10, 0x01, 0x05
|
||||
0x9a, 0x0e, 0xbc, 0x0f, 0x7a, 0xbe, 0xb6, 0x47, 0x79, 0x71, 0xcc, 0x51,
|
||||
0x87, 0xaa, 0x28, 0xbd, 0x9c, 0x04, 0x08, 0x0b, 0xb9, 0x78, 0x84, 0xeb,
|
||||
0x1d, 0xf9, 0x0e, 0x38, 0x23, 0xfe, 0x8f, 0x6e, 0x75, 0x21, 0xcc, 0x39,
|
||||
0x79, 0xf8, 0x9d, 0x80, 0x6b, 0xa9, 0x63, 0x79, 0x13, 0xd8, 0xc9, 0x5d,
|
||||
0xd5, 0x84, 0x17, 0xdc, 0xe4, 0x56, 0xae, 0x55, 0x64, 0x69, 0x8c, 0x95,
|
||||
0xa4, 0x03, 0xc1, 0x4a, 0xe8, 0xb6, 0xd5, 0x1b, 0xfa, 0x26, 0x3f, 0x2c,
|
||||
0xff, 0xfc, 0xea, 0x83, 0xca, 0xf7, 0x4d, 0x9e, 0xf4, 0xbf, 0xca, 0xb6,
|
||||
0x19, 0x46, 0x55, 0x45, 0xf4, 0x7d, 0xcd, 0x4b, 0xbc, 0x3d, 0xb7, 0xff,
|
||||
0x57, 0xbf, 0xe8, 0x0e, 0xbc, 0x16, 0x45, 0xa1, 0xdb, 0xf0, 0xb4, 0x44,
|
||||
0x64, 0x76, 0x0b, 0xe5, 0x86, 0x32, 0xbe, 0xd7, 0xf0, 0x26, 0x6c, 0x48,
|
||||
0xb6, 0x7f, 0x1a, 0x2a, 0xe6, 0x1b, 0xbd, 0x5b, 0x9e, 0xca, 0xd0, 0xf4,
|
||||
0xbb, 0xe4, 0x7f, 0x29, 0x66, 0xf6, 0x31, 0x6d, 0x70, 0x6f, 0xfd, 0x4d,
|
||||
0x7f, 0xc8, 0x7f, 0x9a, 0x5b, 0x1e, 0x37, 0xf7, 0x0c, 0x66, 0xb2, 0x62,
|
||||
0xd8, 0x3e, 0xca, 0x79, 0x6c, 0xec, 0x05, 0x01, 0xda, 0xd9, 0xe2, 0xc3,
|
||||
0xd5, 0x9b, 0xf9, 0x43, 0xa6, 0x14, 0x9a, 0x1f, 0x32, 0xd3, 0x68, 0x63,
|
||||
0x65, 0xb8, 0xb1, 0x63, 0xd5, 0xe2, 0xaa, 0x06, 0x27, 0x62, 0x4a, 0x95,
|
||||
0x48, 0x3f, 0xee, 0xde, 0x3b, 0x89, 0xd4, 0x61, 0x74, 0x39, 0xef, 0xe6,
|
||||
0x6e, 0x16, 0x2d, 0x8b, 0x54, 0x29, 0xe9, 0x71, 0xbc, 0xd4, 0x30, 0x42,
|
||||
0x35, 0x1e, 0x89, 0xfb, 0xf7, 0x4a, 0x47, 0x87, 0x41, 0x66, 0x49, 0xe5,
|
||||
0x8e, 0x16, 0x7f, 0x17, 0x07, 0xd6, 0xff, 0xe1, 0x2a, 0x4d, 0x7c, 0x70,
|
||||
0x0d, 0x72, 0x5d, 0x3d, 0x1f, 0xd8, 0x41, 0x1a, 0x43, 0x00, 0x31, 0x81,
|
||||
0x60, 0xa8, 0x6c, 0xef
|
||||
};
|
||||
const int sizeof_client_cert_der_sign = sizeof(client_cert_der_sign);
|
||||
|
||||
|
||||
@@ -38,6 +38,8 @@ typedef struct st_key_block_data
|
||||
uint8_t iv[R_TSIP_AES_CBC_IV_BYTE_SIZE];
|
||||
uint8_t encrypted_user_rsa2048_ne_key[R_TSIP_RSA2048_NE_KEY_BYTE_SIZE + 16];
|
||||
uint8_t encrypted_user_update_key[R_TSIP_AES256_KEY_BYTE_SIZE + 16];
|
||||
uint8_t encrypted_user_rsa2048_private_key[R_TSIP_RSA2048_ND_KEY_BYTE_SIZE + 16];
|
||||
uint8_t encrypted_user_ecc256_private_key[R_TSIP_ECC_PRIVATE_KEY_BYTE_SIZE + 16];
|
||||
} st_key_block_data_t;
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* test_main.c
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
@@ -52,6 +52,17 @@ extern "C" {
|
||||
user_PKCbInfo guser_PKCbInfo;
|
||||
#endif
|
||||
|
||||
#if defined(TLS_CLIENT)
|
||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS) && defined(WOLFSSL_STATIC_MEMORY)
|
||||
#include <wolfssl/wolfcrypt/memory.h>
|
||||
WOLFSSL_HEAP_HINT* heapHint = NULL;
|
||||
|
||||
#define BUFFSIZE_GEN (110 * 1024)
|
||||
unsigned char heapBufGen[BUFFSIZE_GEN];
|
||||
|
||||
#endif /* WOLFSSL_RENESAS_TSIP_TLS && WOLFSSL_STATIC_MEMORY */
|
||||
#endif /* TLS_CLIENT */
|
||||
|
||||
static long tick;
|
||||
static void timeTick(void *pdata)
|
||||
{
|
||||
@@ -96,9 +107,6 @@ int SetTsiptlsKey()
|
||||
(byte*)&g_key_block_data.encrypted_user_rsa2048_ne_key,
|
||||
encrypted_user_key_type);
|
||||
|
||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS)
|
||||
guser_PKCbInfo.user_key_id = 0;
|
||||
#endif
|
||||
|
||||
#elif defined(TLS_SERVER)
|
||||
|
||||
@@ -181,11 +189,60 @@ void Close_tcp()
|
||||
|
||||
void main(void)
|
||||
{
|
||||
int i = 0;
|
||||
int ret;
|
||||
int doClientCheck = 0;
|
||||
uint32_t channel;
|
||||
|
||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS) && \
|
||||
defined(TLS_CLIENT)
|
||||
#ifdef USE_ECC_CERT
|
||||
const char* cipherlist[] = {
|
||||
#if defined(WOLFSSL_TLS13)
|
||||
"TLS13-AES128-GCM-SHA256",
|
||||
"TLS13-AES128-CCM-SHA256",
|
||||
#endif
|
||||
"ECDHE-ECDSA-AES128-GCM-SHA256",
|
||||
"ECDHE-ECDSA-AES128-SHA256"
|
||||
};
|
||||
int cipherlist_sz;
|
||||
#if defined(WOLFSSL_TLS13)
|
||||
cipherlist_sz = 2;
|
||||
#else
|
||||
cipherlist_sz = 2;
|
||||
#endif
|
||||
|
||||
#else
|
||||
const char* cipherlist[] = {
|
||||
#if defined(WOLFSSL_TLS13)
|
||||
"TLS13-AES128-GCM-SHA256",
|
||||
"TLS13-AES128-CCM-SHA256",
|
||||
#endif
|
||||
"ECDHE-RSA-AES128-GCM-SHA256",
|
||||
"ECDHE-RSA-AES128-SHA256",
|
||||
"AES128-SHA",
|
||||
"AES128-SHA256",
|
||||
"AES256-SHA",
|
||||
"AES256-SHA256"
|
||||
};
|
||||
int cipherlist_sz;
|
||||
#if defined(WOLFSSL_TLS13)
|
||||
cipherlist_sz = 2;
|
||||
#else
|
||||
cipherlist_sz = 6;
|
||||
#endif /* WOLFSSL_TLS13 */
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
(void)timeTick;
|
||||
(void)i;
|
||||
(void)ret;
|
||||
(void)channel;
|
||||
(void)doClientCheck;
|
||||
|
||||
#if defined(CRYPT_TEST) || defined(BENCHMARK)
|
||||
#if defined(CRYPT_TEST)
|
||||
int ret;
|
||||
func_args args = { 0 };
|
||||
|
||||
if ((ret = wolfCrypt_Init()) != 0) {
|
||||
@@ -203,7 +260,6 @@ void main(void)
|
||||
#if defined(BENCHMARK)
|
||||
#include "r_cmt_rx_if.h"
|
||||
|
||||
uint32_t channel;
|
||||
R_CMT_CreatePeriodic(FREQ, &timeTick, &channel);
|
||||
|
||||
printf("Start wolfCrypt Benchmark\n");
|
||||
@@ -213,34 +269,14 @@ void main(void)
|
||||
#elif defined(TLS_CLIENT)
|
||||
#include "r_cmt_rx_if.h"
|
||||
|
||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS)
|
||||
|
||||
#ifdef USE_ECC_CERT
|
||||
const char* cipherlist[] = {
|
||||
"ECDHE-ECDSA-AES128-GCM-SHA256",
|
||||
"ECDHE-ECDSA-AES128-SHA256"
|
||||
};
|
||||
const int cipherlist_sz = 2;
|
||||
|
||||
#else
|
||||
const char* cipherlist[] = {
|
||||
"ECDHE-RSA-AES128-GCM-SHA256",
|
||||
"ECDHE-RSA-AES128-SHA256",
|
||||
"AES128-SHA",
|
||||
"AES128-SHA256",
|
||||
"AES256-SHA",
|
||||
"AES256-SHA256"
|
||||
};
|
||||
const int cipherlist_sz = 6;
|
||||
|
||||
#endif
|
||||
|
||||
#else
|
||||
const char* cipherlist[] = { NULL };
|
||||
const int cipherlist_sz = 0;
|
||||
|
||||
#endif
|
||||
int i = 0;
|
||||
#if defined(WOLFSSL_STATIC_MEMORY)
|
||||
if (wc_LoadStaticMemory(&heapHint, heapBufGen, sizeof(heapBufGen),
|
||||
WOLFMEM_GENERAL, 1) !=0) {
|
||||
printf("unable to load static memory.\n");
|
||||
return;
|
||||
}
|
||||
#endif /* WOLFSSL_STATIC_MEMORY */
|
||||
|
||||
Open_tcp();
|
||||
|
||||
@@ -266,7 +302,7 @@ void main(void)
|
||||
SetTsiptlsKey();
|
||||
#endif
|
||||
|
||||
wolfSSL_TLS_server_init();
|
||||
wolfSSL_TLS_server_init(doClientCheck);
|
||||
wolfSSL_TLS_server();
|
||||
|
||||
Close_tcp();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* wolf_client.c
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
@@ -29,7 +29,7 @@
|
||||
#include "wolfssl_demo.h"
|
||||
|
||||
|
||||
#define SIMPLE_TLSSEVER_IP "192.168.1.14"
|
||||
#define SIMPLE_TLSSEVER_IP "192.168.1.12"
|
||||
#define SIMPLE_TLSSERVER_PORT "11111"
|
||||
|
||||
ER t4_tcp_callback(ID cepid, FN fncd , VP p_parblk);
|
||||
@@ -41,6 +41,17 @@ uint32_t g_encrypted_root_public_key[140];
|
||||
static TsipUserCtx userContext;
|
||||
#endif
|
||||
|
||||
#if defined(TLS_CLIENT)
|
||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS) && defined(WOLFSSL_STATIC_MEMORY)
|
||||
|
||||
extern WOLFSSL_HEAP_HINT* heapHint;
|
||||
|
||||
#define BUFFSIZE_IO (16 * 1024)
|
||||
unsigned char heapBufIO[BUFFSIZE_IO];
|
||||
|
||||
#endif /* WOLFSSL_RENESAS_TSIP_TLS && WOLFSSL_STATIC_MEMORY */
|
||||
#endif /* TLS_CLIENT */
|
||||
|
||||
static int my_IORecv(WOLFSSL* ssl, char* buff, int sz, void* ctx)
|
||||
{
|
||||
int ret;
|
||||
@@ -115,11 +126,29 @@ void wolfSSL_TLS_client_init(const char* cipherlist)
|
||||
wolfSSL_Debugging_ON();
|
||||
#endif
|
||||
|
||||
#if defined(WOLFSSL_STATIC_MEMORY)
|
||||
|
||||
if ((client_ctx = wolfSSL_CTX_new_ex(wolfSSLv23_client_method_ex(heapHint),
|
||||
heapHint)) == NULL) {
|
||||
printf("ERROR: faild to create WOLFSSL_CTX\n");
|
||||
return;
|
||||
}
|
||||
|
||||
if ((wolfSSL_CTX_load_static_memory(&client_ctx, NULL, heapBufIO,
|
||||
sizeof(heapBufIO), WOLFMEM_IO_POOL, 10)) != WOLFSSL_SUCCESS) {
|
||||
printf("ERROR: faild to set static memory for IO\n");
|
||||
return;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
/* Create and initialize WOLFSSL_CTX */
|
||||
if ((client_ctx = wolfSSL_CTX_new(wolfTLSv1_2_client_method_ex((void *)NULL))) == NULL) {
|
||||
if ((client_ctx =
|
||||
wolfSSL_CTX_new(wolfSSLv23_client_method_ex((void *)NULL))) == NULL) {
|
||||
printf("ERROR: failed to create WOLFSSL_CTX\n");
|
||||
return;
|
||||
}
|
||||
#endif /* WOLFSSL_STATIC_MEMORY */
|
||||
|
||||
#ifdef WOLFSSL_RENESAS_TSIP_TLS
|
||||
tsip_set_callbacks(client_ctx);
|
||||
@@ -128,15 +157,76 @@ void wolfSSL_TLS_client_init(const char* cipherlist)
|
||||
#if !defined(NO_FILESYSTEM)
|
||||
if (wolfSSL_CTX_load_verify_locations(client_ctx, cert, 0) != SSL_SUCCESS) {
|
||||
printf("ERROR: can't load \"%s\"\n", cert);
|
||||
return NULL;
|
||||
return;
|
||||
}
|
||||
#else
|
||||
if (wolfSSL_CTX_load_verify_buffer(client_ctx, cert, SIZEOF_CERT, SSL_FILETYPE_ASN1) != SSL_SUCCESS){
|
||||
if (wolfSSL_CTX_load_verify_buffer(client_ctx, cert, SIZEOF_CERT,
|
||||
SSL_FILETYPE_ASN1) != SSL_SUCCESS){
|
||||
printf("ERROR: can't load certificate data\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/* load client certificate */
|
||||
#ifdef USE_ECC_CERT
|
||||
if (wolfSSL_CTX_use_certificate_chain_buffer_format(client_ctx,
|
||||
cliecc_cert_der_256,
|
||||
sizeof_cliecc_cert_der_256,
|
||||
WOLFSSL_FILETYPE_ASN1) != SSL_SUCCESS) {
|
||||
printf("ERROR: can't load client-certificate\n");
|
||||
return;
|
||||
}
|
||||
|
||||
/* set client private key data */
|
||||
#ifdef WOLFSSL_TLS13
|
||||
#ifdef WOLFSSL_RENESAS_TSIP_TLS
|
||||
if (tsip_set_clientPrivateKeyEnc(
|
||||
g_key_block_data.encrypted_user_ecc256_private_key,
|
||||
TSIP_ECCP256) != 0) {
|
||||
printf("ERROR: can't load client-private key\n");
|
||||
return;
|
||||
}
|
||||
#endif /* WOLFSSL_RENESAS_TSIP_TLS */
|
||||
#else
|
||||
if (wolfSSL_CTX_use_PrivateKey_buffer(client_ctx,
|
||||
ecc_clikey_der_256,
|
||||
sizeof_ecc_clikey_der_256,
|
||||
SSL_FILETYPE_ASN1) != WOLFSSL_SUCCESS) {
|
||||
printf("ERROR: can't load private-key data.\n");
|
||||
return;
|
||||
}
|
||||
#endif /* WOLFSSL_TLS13 */
|
||||
|
||||
#else
|
||||
if (wolfSSL_CTX_use_certificate_chain_buffer_format(client_ctx,
|
||||
client_cert_der_2048,
|
||||
sizeof_client_cert_der_2048,
|
||||
WOLFSSL_FILETYPE_ASN1) != SSL_SUCCESS) {
|
||||
printf("ERROR: can't load client-certificate\n");
|
||||
return;
|
||||
}
|
||||
|
||||
/* set client private key data */
|
||||
#ifdef WOLFSSL_RENESAS_TSIP_TLS
|
||||
if (tsip_set_clientPrivateKeyEnc(
|
||||
g_key_block_data.encrypted_user_rsa2048_private_key,
|
||||
TSIP_RSA2048) != 0) {
|
||||
printf("ERROR: can't load client-private key\n");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (wolfSSL_CTX_use_PrivateKey_buffer(client_ctx, client_key_der_2048,
|
||||
sizeof_client_key_der_2048, SSL_FILETYPE_ASN1)
|
||||
!= WOLFSSL_SUCCESS) {
|
||||
printf("ERROR: can't load private-key data.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
#endif /* USE_ECC_CERT */
|
||||
#endif /* !NO_FILESYSTEM */
|
||||
|
||||
/* Register callbacks */
|
||||
wolfSSL_SetIORecv(client_ctx, my_IORecv);
|
||||
wolfSSL_SetIOSend(client_ctx, my_IOSend);
|
||||
@@ -146,7 +236,17 @@ void wolfSSL_TLS_client_init(const char* cipherlist)
|
||||
wolfSSL_CTX_set_cipher_list(client_ctx, cipherlist) != WOLFSSL_SUCCESS) {
|
||||
wolfSSL_CTX_free(client_ctx); client_ctx = NULL;
|
||||
printf("client can't set cipher list");
|
||||
return;
|
||||
}
|
||||
|
||||
#if defined(WOLFSSL_TLS13) && (WOLFSSL_RENESAS_TSIP_VER >= 115)
|
||||
if (wolfSSL_CTX_UseSupportedCurve(client_ctx, WOLFSSL_ECC_SECP256R1)
|
||||
!= WOLFSSL_SUCCESS) {
|
||||
wolfSSL_CTX_free(client_ctx); client_ctx = NULL;
|
||||
printf("client can't set use supported curves\n");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void wolfSSL_TLS_client( )
|
||||
@@ -155,7 +255,7 @@ void wolfSSL_TLS_client( )
|
||||
ER ercd;
|
||||
int ret;
|
||||
WOLFSSL_CTX *ctx = (WOLFSSL_CTX *)client_ctx;
|
||||
WOLFSSL *ssl;
|
||||
WOLFSSL *ssl = NULL;
|
||||
|
||||
#define BUFF_SIZE 256
|
||||
static const char sendBuff[]= "Hello Server\n" ;
|
||||
@@ -168,21 +268,21 @@ void wolfSSL_TLS_client( )
|
||||
|
||||
if((dst_addr.ipaddr = getIPaddr(SIMPLE_TLSSEVER_IP)) == 0){
|
||||
printf("ERROR: IP address\n");
|
||||
return;
|
||||
goto out;
|
||||
}
|
||||
if((dst_addr.portno = getPort(SIMPLE_TLSSERVER_PORT)) == 0){
|
||||
printf("ERROR: IP address\n");
|
||||
return;
|
||||
goto out;
|
||||
}
|
||||
|
||||
if((ercd = tcp_con_cep(cepid, &my_addr, &dst_addr, TMO_FEVR)) != E_OK) {
|
||||
printf("ERROR TCP Connect: %d\n", ercd);
|
||||
return;
|
||||
goto out;
|
||||
}
|
||||
|
||||
if((ssl = wolfSSL_new(ctx)) == NULL) {
|
||||
printf("ERROR wolfSSL_new: %d\n", wolfSSL_get_error(ssl, 0));
|
||||
return;
|
||||
goto out;
|
||||
}
|
||||
|
||||
#ifdef WOLFSSL_RENESAS_TSIP_TLS
|
||||
@@ -196,25 +296,33 @@ void wolfSSL_TLS_client( )
|
||||
|
||||
if(wolfSSL_connect(ssl) != SSL_SUCCESS) {
|
||||
printf("ERROR SSL connect: %d\n", wolfSSL_get_error(ssl, 0));
|
||||
return;
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (wolfSSL_write(ssl, sendBuff, strlen(sendBuff)) != strlen(sendBuff)) {
|
||||
printf("ERROR SSL write: %d\n", wolfSSL_get_error(ssl, 0));
|
||||
return;
|
||||
goto out;
|
||||
}
|
||||
|
||||
if ((ret=wolfSSL_read(ssl, rcvBuff, BUFF_SIZE)) < 0) {
|
||||
printf("ERROR SSL read: %d\n", wolfSSL_get_error(ssl, 0));
|
||||
return;
|
||||
goto out;
|
||||
}
|
||||
|
||||
rcvBuff[ret] = '\0' ;
|
||||
printf("Received: %s\n\n", rcvBuff);
|
||||
|
||||
out:
|
||||
|
||||
/* frees all data before client termination */
|
||||
wolfSSL_free(ssl);
|
||||
wolfSSL_CTX_free(ctx);
|
||||
if(ssl) {
|
||||
wolfSSL_shutdown(ssl);
|
||||
wolfSSL_free(ssl);
|
||||
}
|
||||
if(ctx) {
|
||||
wolfSSL_CTX_free(ctx);
|
||||
}
|
||||
|
||||
wolfSSL_Cleanup();
|
||||
|
||||
tcp_sht_cep(cepid);
|
||||
|
||||
@@ -163,7 +163,7 @@ void wolfSSL_TLS_server( )
|
||||
ER ercd;
|
||||
WOLFSSL_CTX *ctx = (WOLFSSL_CTX *)server_ctx;
|
||||
|
||||
WOLFSSL *ssl;
|
||||
WOLFSSL *ssl = NULL;
|
||||
int len;
|
||||
#define BUFF_SIZE 256
|
||||
char buff[BUFF_SIZE];
|
||||
@@ -171,12 +171,12 @@ void wolfSSL_TLS_server( )
|
||||
|
||||
if((ercd = tcp_acp_cep(cepid, repid, &dst_addr, TMO_FEVR)) != E_OK) {
|
||||
printf("ERROR TCP Accept: %d\n", ercd);
|
||||
return;
|
||||
goto out;
|
||||
}
|
||||
|
||||
if((ssl = wolfSSL_new(ctx)) == NULL) {
|
||||
printf("ERROR: failed wolfSSL_new\n");
|
||||
return;
|
||||
goto out;
|
||||
}
|
||||
|
||||
wolfSSL_SetIOReadCtx(ssl, (void *)&cepid);
|
||||
@@ -184,12 +184,12 @@ void wolfSSL_TLS_server( )
|
||||
|
||||
if (wolfSSL_accept(ssl) < 0) {
|
||||
printf("ERROR: SSL Accept(%d)\n", wolfSSL_get_error(ssl, 0));
|
||||
return;
|
||||
goto out;
|
||||
}
|
||||
|
||||
if ((len = wolfSSL_read(ssl, buff, sizeof(buff) - 1)) < 0) {
|
||||
printf("ERROR: SSL Read(%d)\n", wolfSSL_get_error(ssl, 0));
|
||||
return;
|
||||
goto out;
|
||||
}
|
||||
|
||||
buff[len] = '\0';
|
||||
@@ -197,11 +197,18 @@ void wolfSSL_TLS_server( )
|
||||
|
||||
if (wolfSSL_write(ssl, buff, len) != len) {
|
||||
printf("ERROR: SSL Write(%d)\n", wolfSSL_get_error(ssl, 0));
|
||||
return;
|
||||
}
|
||||
|
||||
wolfSSL_free(ssl);
|
||||
wolfSSL_CTX_free(ctx);
|
||||
out:
|
||||
if (ssl) {
|
||||
wolfSSL_shutdown(ssl);
|
||||
wolfSSL_free(ssl);
|
||||
}
|
||||
if (ctx) {
|
||||
wolfSSL_CTX_free(ctx);
|
||||
};
|
||||
|
||||
wolfSSL_Cleanup();
|
||||
tcp_sht_cep(cepid);
|
||||
tcp_cls_cep(cepid, TMO_FEVR);
|
||||
}
|
||||
|
||||
@@ -243,21 +243,18 @@
|
||||
<Path>src\smc_gen\r_tsip_rx\readme.txt</Path>
|
||||
<Category Name="doc">
|
||||
<Category Name="en">
|
||||
<Path>src\smc_gen\r_tsip_rx\doc\en\r20an0548ej0114-rx-tsip-security.pdf</Path>
|
||||
<Path>src\smc_gen\r_tsip_rx\doc\en\r20an0548ej0115-rx-tsip-security.pdf</Path>
|
||||
</Category>
|
||||
<Category Name="ja">
|
||||
<Path>src\smc_gen\r_tsip_rx\doc\ja\r20an0548jj0114-rx-tsip-security.pdf</Path>
|
||||
<Path>src\smc_gen\r_tsip_rx\doc\ja\r20an0548jj0115-rx-tsip-security.pdf</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="ref">
|
||||
<Path>src\smc_gen\r_tsip_rx\ref\r_tsip_rx_config_reference.h</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
</Category>
|
||||
</Category>
|
||||
</Files>
|
||||
<Device Category="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.cpu.rx600" Series="RX">R5F565NEHxFP</Device>
|
||||
<BuildOptions Name="CC-RX" Version="v3.03.00">
|
||||
<BuildOptions Name="CC-RX" Version="v3.04.00">
|
||||
<BuildMode Active="True" Name="HardwareDebug">
|
||||
<GeneralOptions/>
|
||||
<CompileOptions>
|
||||
@@ -265,22 +262,21 @@
|
||||
<Option>-fpu</Option>
|
||||
<Option>-include="${ProjDirPath}\..\common"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_bsp"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_config"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_tsip_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_tsip_rx\src\targets\rx65n"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_cmt_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_cmt_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_driver_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_driver_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_rx\lib"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_ether_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_sys_time_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_sys_time_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\general"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_pincfg"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\Config_TMR0"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_bsp"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_config"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_tsip_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_cmt_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_cmt_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_driver_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_driver_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_rx\lib"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_ether_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_sys_time_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_sys_time_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\general"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_pincfg"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\Config_TMR0"</Option>
|
||||
<Option>-define=DEBUG_CONSOLE,WOLFSSL_USER_SETTINGS</Option>
|
||||
<Option>-utf8</Option>
|
||||
<Option>-nomessage</Option>
|
||||
@@ -296,8 +292,8 @@
|
||||
<AssembleOptions>
|
||||
<Option>-isa=rxv2</Option>
|
||||
<Option>-fpu</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\general"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_pincfg"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\general"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_pincfg"</Option>
|
||||
<Option>-utf8</Option>
|
||||
<Option>-debug</Option>
|
||||
<Option>-nologo</Option>
|
||||
@@ -313,10 +309,10 @@
|
||||
<Option>-rom=D=R,D_1=R_1,D_2=R_2</Option>
|
||||
<Option>-cpu=RAM=00000000-0003ffff,FIX=00080000-00083fff,FIX=00086000-00087fff,FIX=00088000-0009ffff,FIX=000a0000-000a3fff,RAM=000a4000-000a5fff,FIX=000a6000-000bffff,FIX=000c0000-000dffff,FIX=000e0000-000fffff,ROM=00100000-00107fff,FIX=007fc000-007fcfff,FIX=007fe000-007fffff,RAM=00800000-0085ffff,RAM=fe7f5d00-fe7f5d7f,RAM=fe7f7d70-fe7f7d9f,ROM=ffe00000-ffffffff</Option>
|
||||
<Option>-nologo</Option>
|
||||
<Option>-library="${ProjDirPath}/../../../../../../../${ProjName}/src/smc_gen/r_t4_rx/lib/ccrx/T4_Library_ether_ccrx_rxv1_little_debug.lib"</Option>
|
||||
<Option>-library="${ProjDirPath}/../../../../../../../${ProjName}/src/smc_gen/r_tsip_rx/lib/ccrx/r_tsip_rx65n_little.lib"</Option>
|
||||
<Option>-library="${ProjDirPath}/../${ProjName}/src/smc_gen/r_t4_rx/lib/ccrx/T4_Library_ether_ccrx_rxv1_little_debug.lib"</Option>
|
||||
<Option>-library="${ProjDirPath}/../${ProjName}/src/smc_gen/r_tsip_rx/lib/ccrx/r_tsip_rx65n_little.lib"</Option>
|
||||
<Option>-library="${ProjDirPath}/../wolfssl/Debug/wolfssl.lib"</Option>
|
||||
<Option>-start=SU,SI,B_1,R_1,B_2,R_2,B,R/04,B_ETHERNET_BUFFERS_1,B_RX_DESC_1,B_TX_DESC_1/020000,C_1,C_2,C,C$*,D*,W*,L,P*/0FFE00000,EXCEPTVECT/0FFFFFF80,RESETVECT/0FFFFFFFC</Option>
|
||||
<Option>-start=SU,SI,B_1,R_1,B_2,R_2,B,R/04,B_ETHERNET_BUFFERS_1,B_RX_DESC_1,B_TX_DESC_1/03C000,C_1,C_2,C,C$*,D*,W*,L,P/0FFE00000,EXCEPTVECT/0FFFFFF80,RESETVECT/0FFFFFFFC</Option>
|
||||
<PreLinker>Auto</PreLinker>
|
||||
</LinkOptions>
|
||||
<LibraryGenerateOptions>
|
||||
@@ -377,24 +373,23 @@
|
||||
<CommonOptions>
|
||||
<IncludePathForC>"${ProjDirPath}\..\common"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_bsp"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_config"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_tsip_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_tsip_rx\src\targets\rx65n"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_cmt_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_cmt_rx\src"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_driver_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_driver_rx\src"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_rx\lib"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_ether_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_sys_time_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_sys_time_rx\src"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\general"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_pincfg"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\Config_TMR0"</IncludePathForC>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\general"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_pincfg"</IncludePathForAsm>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_bsp"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_config"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_tsip_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_cmt_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_cmt_rx\src"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_driver_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_driver_rx\src"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_rx\lib"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_ether_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_sys_time_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_sys_time_rx\src"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\general"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_pincfg"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\Config_TMR0"</IncludePathForC>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\${ProjName}\src\smc_gen\general"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_pincfg"</IncludePathForAsm>
|
||||
<MacroForC>DEBUG_CONSOLE</MacroForC>
|
||||
<MacroForC>WOLFSSL_USER_SETTINGS</MacroForC>
|
||||
</CommonOptions>
|
||||
@@ -404,23 +399,24 @@
|
||||
<CompileOptions>
|
||||
<Option>-isa=rxv2</Option>
|
||||
<Option>-fpu</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_bsp"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_config"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_tsip_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_tsip_rx\src\targets\rx231"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_tsip_rx\src\targets\rx66t"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_tsip_rx\src\targets\rx65n"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_cmt_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_cmt_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_driver_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_driver_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_rx\lib"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_ether_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_sys_time_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_sys_time_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\general"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_pincfg"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_bsp"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_config"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_tsip_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_tsip_rx\src\targets\rx231"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_tsip_rx\src\targets\rx66t"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_tsip_rx\src\targets\rx65n"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_cmt_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_cmt_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_driver_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_driver_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_rx\lib"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_ether_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_sys_time_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_sys_time_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\general"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_pincfg"</Option>
|
||||
<Option>-include="${ProjDirPath}\generate"</Option>
|
||||
<Option>-define=DEBUG_CONSOLE</Option>
|
||||
<Option>-utf8</Option>
|
||||
<Option>-nomessage</Option>
|
||||
@@ -435,8 +431,8 @@
|
||||
<AssembleOptions>
|
||||
<Option>-isa=rxv2</Option>
|
||||
<Option>-fpu</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\general"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_pincfg"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\general"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_pincfg"</Option>
|
||||
<Option>-utf8</Option>
|
||||
<Option>-debug</Option>
|
||||
<Option>-nologo</Option>
|
||||
@@ -452,7 +448,7 @@
|
||||
<Option>-rom=D=R,D_1=R_1,D_2=R_2</Option>
|
||||
<Option>-cpu=RAM=00000000-0003ffff,FIX=00080000-00083fff,FIX=00086000-00087fff,FIX=00088000-0009ffff,FIX=000a0000-000a3fff,RAM=000a4000-000a5fff,FIX=000a6000-000bffff,FIX=000c0000-000dffff,FIX=000e0000-000fffff,ROM=00100000-00107fff,FIX=007fc000-007fcfff,FIX=007fe000-007fffff,RAM=00800000-0085ffff,RAM=fe7f5d00-fe7f5d7f,RAM=fe7f7d70-fe7f7d9f,ROM=ffe00000-ffffffff</Option>
|
||||
<Option>-nologo</Option>
|
||||
<Option>-library="${ProjDirPath}/../../../../../../../${ProjName}/src/smc_gen/r_t4_rx/lib/T4_Library_rxv1_ether_little.lib"</Option>
|
||||
<Option>-library="${ProjDirPath}/../${ProjName}/src/smc_gen/r_t4_rx/lib/T4_Library_rxv1_ether_little.lib"</Option>
|
||||
<Option>-start=SU,SI,B_1,R_1,B_2,R_2,B,R/04,C_1,C_2,C,C$*,D*,W*,L,P*/0FFE00000,EXCEPTVECT/0FFFFFF80,RESETVECT/0FFFFFFFC,B_ETHERNET_BUFFERS_1,B_RX_DESC_1,B_TX_DESC_1/00010000</Option>
|
||||
<PreLinker>Auto</PreLinker>
|
||||
</LinkOptions>
|
||||
@@ -512,25 +508,26 @@
|
||||
<Path>Debug\test.lib</Path>
|
||||
</LinkOrder>
|
||||
<CommonOptions>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_bsp"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_config"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_tsip_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_tsip_rx\src\targets\rx231"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_tsip_rx\src\targets\rx66t"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_tsip_rx\src\targets\rx65n"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_cmt_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_cmt_rx\src"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_driver_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_driver_rx\src"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_rx\lib"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_ether_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_sys_time_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_sys_time_rx\src"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\general"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_pincfg"</IncludePathForC>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\general"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_pincfg"</IncludePathForAsm>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_bsp"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_config"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_tsip_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_tsip_rx\src\targets\rx231"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_tsip_rx\src\targets\rx66t"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_tsip_rx\src\targets\rx65n"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_cmt_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_cmt_rx\src"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_driver_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_driver_rx\src"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_rx\lib"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_ether_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_sys_time_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_sys_time_rx\src"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\general"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_pincfg"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\generate"</IncludePathForC>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\${ProjName}\src\smc_gen\general"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_pincfg"</IncludePathForAsm>
|
||||
<MacroForC>DEBUG_CONSOLE</MacroForC>
|
||||
</CommonOptions>
|
||||
</BuildMode>
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
<stringAttribute key="com.renesas.cdt.core.secondGDBExe" value="green_dsp-elf-gdb"/>
|
||||
<booleanAttribute key="com.renesas.cdt.core.secondGDBSupport" value="false"/>
|
||||
<intAttribute key="com.renesas.cdt.core.secondGdbPortNumber" value="61237"/>
|
||||
<stringAttribute key="com.renesas.cdt.core.serverParam" value="-g E1 -t R5F565NE -uClockSrcHoco= 0 -uInputClock= 12.0000 -uAllowClockSourceInternal= 1 -uUseFine= 1 -uFineBaudRate= 2.00 -w 1 -z 0 -uRegisterSetting= 0 -uModePin= 0 -uChangeStartupBank= 0 -uStartupBank= 0 -uDebugMode= 0 -uExecuteProgram= 0 -uIdCode= FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF -uresetOnReload= 1 -n 0 -uWorkRamAddress= 1000 -uProgReWriteIRom= 0 -uProgReWriteDFlash= 0 -uhookWorkRamAddr= 0x3fdd0 -uhookWorkRamSize= 0x230"/>
|
||||
<stringAttribute key="com.renesas.cdt.core.serverParam" value="-g E1 -t R5F565NE -uClockSrcHoco= 1 -uAllowClockSourceInternal= 1 -uUseFine= 1 -uFineBaudRate= 2.00 -w 1 -z 0 -uRegisterSetting= 0 -uModePin= 0 -uChangeStartupBank= 0 -uStartupBank= 0 -uDebugMode= 0 -uExecuteProgram= 0 -uIdCode= FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF -uresetOnReload= 1 -n 0 -uWorkRamAddress= 1000 -uverifyOnWritingMemory= 0 -uProgReWriteIRom= 0 -uProgReWriteDFlash= 0 -uhookWorkRamAddr= 0x3fdd0 -uhookWorkRamSize= 0x230"/>
|
||||
<booleanAttribute key="com.renesas.cdt.core.startServer" value="true"/>
|
||||
<stringAttribute key="com.renesas.cdt.core.targetDevice" value="R5F565NE"/>
|
||||
<booleanAttribute key="com.renesas.cdt.core.useRemoteTarget" value="true"/>
|
||||
<booleanAttribute key="com.renesas.cdt.core.verboseMode" value="false"/>
|
||||
<stringAttribute key="com.renesas.cdt.debug.ioview.dsf.registerSelection0" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <selectedRegisterList ioFilePath="C:\Users\Taka\.eclipse\com.renesas.platform_1380223289\DebugComp\RX\IoFiles\RX65N.sfrx"/> "/>
|
||||
<stringAttribute key="com.renesas.cdt.debug.ioview.dsf.registerSelection0" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <selectedRegisterList ioFilePath="C:\Users\Taka\.eclipse\com.renesas.platform_923020927\DebugComp\RX\IoFiles\RX65N.sfrx"/> "/>
|
||||
<stringAttribute key="com.renesas.cdt.launch.dsf.IO_MAP" value="${support_area_loc}"/>
|
||||
<booleanAttribute key="com.renesas.cdt.launch.dsf.USE_DEFAULT_IO_MAP" value="true"/>
|
||||
<listAttribute key="com.renesas.cdt.launch.dsf.downloadImages">
|
||||
@@ -36,7 +36,7 @@
|
||||
<stringAttribute key="com.renesas.cdt.launch.dsf.serverPath" value="${renesas.support.targetLoc:rx-debug}\e2-server-gdb"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.allow.change.startup_bank" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.allow.clock.source.internal" value="true"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.e1.clock_source" value="0"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.e1.clock_source" value="1"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.connection.mode" value="0"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.e1_pwr" value="true"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.enable.hot.plug" value="false"/>
|
||||
@@ -51,7 +51,7 @@
|
||||
<intAttribute key="com.renesas.hardwaredebug.e1.hook_work_ram_Addr" value="261584"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.e1.hook_work_ram_Size" value="560"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.id_code" value="FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.inputclock" value="12.0000"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.inputclock" value="27.0"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.jtag.clock.freq" value="16.5"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.jtag.or.fine" value="1"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.le" value="true"/>
|
||||
@@ -131,6 +131,6 @@
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||
<listEntry value="4"/>
|
||||
</listAttribute>
|
||||
<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?><memoryBlockExpressionList context="reserved-for-future-use"/>"/>
|
||||
<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?><memoryBlockExpressionList context="reserved-for-future-use"><gdbmemoryBlockExpression address="6520" core_thread_id="1_i1" label="0x1978"><memoryRendering id="org.eclipse.debug.ui.rendering.raw_memory"><renderingInstance containerId="org.eclipse.debug.ui.MemoryView.RenderingViewPane.1" viewId="org.eclipse.debug.ui.MemoryView" viewSecondaryId=""/></memoryRendering></gdbmemoryBlockExpression><gdbmemoryBlockExpression address="6668" core_thread_id="1_i1" label="0x1a0c"><memoryRendering id="org.eclipse.debug.ui.rendering.raw_memory"><renderingInstance containerId="org.eclipse.debug.ui.MemoryView.RenderingViewPane.1" viewId="org.eclipse.debug.ui.MemoryView" viewSecondaryId=""/></memoryRendering></gdbmemoryBlockExpression><gdbmemoryBlockExpression address="6504" core_thread_id="1_i1" label="0x1968"><memoryRendering id="org.eclipse.debug.ui.rendering.raw_memory"><renderingInstance containerId="org.eclipse.debug.ui.MemoryView.RenderingViewPane.1" viewId="org.eclipse.debug.ui.MemoryView" viewSecondaryId=""/></memoryRendering></gdbmemoryBlockExpression></memoryBlockExpressionList>"/>
|
||||
<stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/>
|
||||
</launchConfiguration>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
</storageModule>
|
||||
<storageModule moduleId="com.renesas.cdt.managedbuild.core.toolchainInfo">
|
||||
<option id="toolchain.id" value="Renesas_RXC"/>
|
||||
<option id="toolchain.version" value="v3.03.00"/>
|
||||
<option id="toolchain.version" value="v3.04.00"/>
|
||||
<option id="toolchain.enable" value="true"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
@@ -24,21 +24,25 @@
|
||||
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF;org.eclipse.cdt.core.PE" id="com.renesas.cdt.managedbuild.renesas.ccrx.base.targetPlatform.174341512" osList="win32" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.targetPlatform"/>
|
||||
<builder buildPath="${workspace_loc:/wolfssl}/Debug" id="com.renesas.cdt.managedbuild.renesas.ccrx.base.builder.1547537924" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="CCRX Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.builder"/>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.dsp.1555184586" name="DSP Assembler" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.dsp">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.noDebugInfo.317830941" name="デバッグ情報を出力する (-no_debug_info)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.noDebugInfo" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.noDebugInfo.317830941" name="Output debug information (-no_debug_info)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.noDebugInfo" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian.1916710340" name="Endian of output data value (-littleEndianData)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian" value="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian.big" valueType="enumerated"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.common.566285610" name="Common" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.common">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.789156168" name="命令セット・アーキテクチャ (-isa)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.rxv2" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.789156168" name="Instruction set architecture (-isa)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.rxv2" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasFpu.1416683217" name="Has FPU" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasFpu" useByScannerDiscovery="false" value="TRUE" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceName.738625467" name="Device Name" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceName" useByScannerDiscovery="false" value="R5F571MLCxFC" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceCommand.806008705" name="Device Command" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceCommand" useByScannerDiscovery="false" value="R5F571ML" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceName.738625467" name="Device Name" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceName" useByScannerDiscovery="false" value="R5F565NEHxFP" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceCommand.806008705" name="Device Command" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceCommand" useByScannerDiscovery="false" value="R5F565NE" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.checkRtos.313687436" name="Check RTOS" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.checkRtos" useByScannerDiscovery="false" value="unusedRtos" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasDsp.963524125" name="Has DSP" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasDsp" useByScannerDiscovery="false" value="false" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceFamily.664031971" name="Device Family" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceFamily" useByScannerDiscovery="false" value="RX71M" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceHistory.1128940076" name="Device history" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceHistory" useByScannerDiscovery="false" value="non_init;R5F571MLCxFC" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceFamily.664031971" name="Device Family" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceFamily" useByScannerDiscovery="false" value="RX65N" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceHistory.1128940076" name="Device history" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceHistory" useByScannerDiscovery="false" value="R5F571MLCxFC;R5F565NEHxFP" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.rxArchitecture.2140854078" name="RX Architecture" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.rxArchitecture" useByScannerDiscovery="false" value="rxv2" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns.2129136722" name="Use floating point arithmetic instructions (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns.yes" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isaHistory.855338420" name="ISA history" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isaHistory" useByScannerDiscovery="false" value="non_init;com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.rxv2" valueType="string"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.compiler.958103973" name="Compiler" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.compiler">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu.1276851320" name="浮動小数点演算命令を使用する (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu.yes" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.include.1381248206" name="インクルード・ファイルを検索するフォルダ (-include)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.include" useByScannerDiscovery="false" valueType="includePath">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu.1276851320" name="Use floating point arithmetic instructions (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu.yes" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.include.1381248206" name="Include file directories (-include)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.include" useByScannerDiscovery="false" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value="${ProjDirPath}/../common"/>
|
||||
<listOptionValue builtIn="false" value="${ProjDirPath}//../../../../../../"/>
|
||||
<listOptionValue builtIn="false" value="${TCINSTALL}/include"/>
|
||||
@@ -47,37 +51,72 @@
|
||||
<listOptionValue builtIn="false" value="${ProjDirPath}/../test/src/smc_gen/r_config"/>
|
||||
<listOptionValue builtIn="false" value="${ProjDirPath}/../test/src/smc_gen/r_tsip_rx"/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.define.687020263" name="プリプロセッサ・マクロの定義 (-define)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.define" useByScannerDiscovery="false" valueType="definedSymbols">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.define.687020263" name="Macro definition (-define)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.define" useByScannerDiscovery="false" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="WOLFSSL_USER_SETTINGS"/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC.1494793389" name="Cソース (-lang)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC.c99" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.optimize.573554071" name="最適化レベル (-optimize)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.optimize" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.optimize.level0" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC.1494793389" name="C source file (-lang)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC.c99" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.optimize.573554071" name="Optimization level (-optimize)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.optimize" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.optimize.level0" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userBefore.478242509" name="User-defined options (added before all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userAfter.1529180842" name="User-defined options (added after all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode.1017624275" name="Character code of an input program (-euc/-sjis/-latin1/-utf8/-big5/-gb2312)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode.utf8" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode.1363723732" name="Output character code (-outcode)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode.utf8" valueType="enumerated"/>
|
||||
<inputType id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gcc.inputType.971510512" name="Compiler Input C" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gcc.inputType"/>
|
||||
<inputType id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gpp.inputType.948214383" name="Compiler Input CPP" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gpp.inputType"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.assembler.1769723979" name="Assembler" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.assembler">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userBefore.163658846" name="User-defined options (added before all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userAfter.745123542" name="User-defined options (added after all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode.96349094" name="Character code of an input program (-euc/-sjis/-latin1/-utf8/-big5/-gb2312)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode.utf8" valueType="enumerated"/>
|
||||
<inputType id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.inputType.328050806" name="Assembler InputType" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.inputType"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.linker.945835579" name="Linker" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.linker">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.typeOfOutputFileOption.139100472" name="出力ファイル形式 (-form)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.typeOfOutputFileOption" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.typeOfOutputFileOption.userLibrary" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.rom.177476365" name="ROMからRAMへマップするセクション (-rom)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.rom" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.typeOfOutputFileOption.139100472" name="Output file type (-form)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.typeOfOutputFileOption" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.typeOfOutputFileOption.userLibrary" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.rom.177476365" name="ROM to RAM mapped section (-rom)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.rom" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="D=R"/>
|
||||
<listOptionValue builtIn="false" value="D_1=R_1"/>
|
||||
<listOptionValue builtIn="false" value="D_2=R_2"/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.linkerSection.1739258398" name="セクション (-start)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.linkerSection" useByScannerDiscovery="false" value="SU,SI,B_1,R_1,B_2,R_2,B,R/04,PResetPRG,C_1,C_2,C,C$*,D*,W*,L,PIntPRG,P/0FFC00000,EXCEPTVECT/0FFFFFF80,RESETVECT/0FFFFFFFC" valueType="string"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.noneLinkageOrderList.1344120748" name="(リンク順序のリスト) (-input/-library/-binary)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.noneLinkageOrderList" useByScannerDiscovery="false" valueType="stringList">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.linkerSection.1739258398" name="Sections (-start)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.linkerSection" useByScannerDiscovery="false" value="SU,SI,B_1,R_1,B_2,R_2,B,R/04,PResetPRG,C_1,C_2,C,C$*,D*,W*,L,PIntPRG,P/0FFE00000,EXCEPTVECT/0FFFFFF80,RESETVECT/0FFFFFFFC" valueType="string"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.noneLinkageOrderList.1344120748" name="(Linkage order list) (-input/-library/-binary)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.noneLinkageOrderList" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="".\src\sample3.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src\sample1.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src\sample2.obj""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userBefore.685139217" name="User-defined options (added before all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userAfter.1997070460" name="User-defined options (added after all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.checkSection.1124913743" name="Checks the section larger than the specified range of addresses (-cpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.checkSection" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType.994805952" name="Memory address type assignment method (-cpu(Address space of Single-Chip Mode))" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType.autoSpecify" valueType="enumerated"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.librarian.1901868731" name="Library Generator" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.librarian">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu.1987941672" name="浮動小数点演算命令を使用する (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu.yes" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.mode.820377223" name="標準ライブラリを生成する条件" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.mode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.mode.donotAddLibrary" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu.1987941672" name="Use floating point arithmetic instructions (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu.yes" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.mode.820377223" name="Generation mode of the standard library" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.mode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.mode.donotAddLibrary" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userBefore.747426230" name="User-defined options (added before all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userAfter.2138023665" name="User-defined options (added after all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.converter.620355579" name="Converter" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.converter">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOfOutputFile.1427223323" name="出力ファイル形式 (-form)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOfOutputFile" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOFOutputFile.none" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOfOutputFile.1427223323" name="Output file type (-form)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOfOutputFile" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOFOutputFile.none" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userBefore.443186903" name="User-defined options (added before all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userAfter.1163725064" name="User-defined options (added after all specified options)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.rtosConfig.1798199560" name="RTOS Configurator" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.rtosConfig"/>
|
||||
</toolChain>
|
||||
@@ -88,7 +127,11 @@
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
<storageModule moduleId="com.renesas.cdt.managedbuild.core.boardInfo"/>
|
||||
<storageModule moduleId="com.renesas.cdt.managedbuild.core.boardInfo">
|
||||
<option id="board.id" value="gr-rose"/>
|
||||
<option id="board.name" value="gr-rose"/>
|
||||
<option id="board.device" value="R5F565NEHxFP"/>
|
||||
</storageModule>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
<link>
|
||||
<name>wolfcrypt/port/renesas_common.c</name>
|
||||
<type>1</type>
|
||||
<location>F:/Work/1_Renesas/tsip113_integrate/wolfssl/wolfcrypt/src/port/Renesas/renesas_common.c</location>
|
||||
<locationURI>PARENT-6-PROJECT_LOC/wolfcrypt/src/port/Renesas/renesas_common.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>wolfcrypt/port/renesas_tsip_aes.c</name>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
</Category>
|
||||
<Category Name="wolfcrypt">
|
||||
<Category Name="port">
|
||||
<Path>..\..\..\..\..\..\..\..\tsip113_integrate\wolfssl\wolfcrypt\src\port\Renesas\renesas_common.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\port\Renesas\renesas_common.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\port\Renesas\renesas_tsip_aes.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\port\Renesas\renesas_tsip_sha.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\port\Renesas\renesas_tsip_util.c</Path>
|
||||
@@ -87,12 +87,13 @@
|
||||
</Category>
|
||||
</Category>
|
||||
</Files>
|
||||
<Device Category="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.cpu.rx600" Series="RX">R5F571MLCxFC</Device>
|
||||
<BuildOptions Name="CC-RX" Version="v3.03.00">
|
||||
<Device Category="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.cpu.rx600" Series="RX">R5F565NEHxFP</Device>
|
||||
<BuildOptions Name="CC-RX" Version="v3.04.00">
|
||||
<BuildMode Active="True" Name="Debug">
|
||||
<GeneralOptions/>
|
||||
<CompileOptions>
|
||||
<Option>-isa=rxv2</Option>
|
||||
<Option>-fpu</Option>
|
||||
<Option>-include="${ProjDirPath}\..\common"</Option>
|
||||
<Option>-include="${ProjDirPath}\\..\..\..\..\..\..\"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\test\src\smc_gen\"</Option>
|
||||
@@ -100,8 +101,10 @@
|
||||
<Option>-include="${ProjDirPath}\..\test\src\smc_gen\r_config"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\test\src\smc_gen\r_tsip_rx"</Option>
|
||||
<Option>-define=WOLFSSL_USER_SETTINGS</Option>
|
||||
<Option>-utf8</Option>
|
||||
<Option>-nomessage</Option>
|
||||
<Option>-debug</Option>
|
||||
<Option>-outcode=utf8</Option>
|
||||
<Option>-optimize=0</Option>
|
||||
<Option>-nologo</Option>
|
||||
<Option>-lang=c99</Option>
|
||||
@@ -111,6 +114,8 @@
|
||||
</CompileOptions>
|
||||
<AssembleOptions>
|
||||
<Option>-isa=rxv2</Option>
|
||||
<Option>-fpu</Option>
|
||||
<Option>-utf8</Option>
|
||||
<Option>-debug</Option>
|
||||
<Option>-nologo</Option>
|
||||
<Option>-output=${CONFIGDIR}</Option>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -3,241 +3,7 @@ wolfSSL sample application project for Renesas RSK+RX65N-2MB evaluation board
|
||||
|
||||
<br>
|
||||
|
||||
## 1. Overview
|
||||
-----
|
||||
A sample program for evaluating wolfSSL targeting the Renesas RSK+RX65N-2MB evaluation board is provided. For details on the program, refer to the following documents included in the package.
|
||||
|
||||
We provide a sample program for evaluating wolfSSL targeting the Renesas RSK + RX65N-2MB evaluation board. The sample program runs in a bare metal environment that does not use a real-time OS and uses e2 studio as an IDE. This document describes the procedure from build to execution of the sample program.
|
||||
|
||||
The sample provided is a single application that can evaluate the following three functions:
|
||||
|
||||
- CryptoTest: A program that automatically tests various cryptographic operation functions
|
||||
- Benchmark: A program that measures the execution speed of various cryptographic operations
|
||||
- TlsClient: A program that performs TLS communication with the opposite TLS server application
|
||||
<br><br>
|
||||
|
||||
Since the H/W settings and S/W settings for operating the evaluation board have already been prepared, the minimum settings are required to operate the sample application. In addition, the RootCA certificate and server-side certificate required for TLS communication have already been set for sample use only.
|
||||
|
||||
The following sections will walk you through the steps leading up to running the sample application.
|
||||
<br><br>
|
||||
|
||||
## 2. Target H/W, components and libraries
|
||||
-----
|
||||
|
||||
This sample program uses the following hardware and software libraries. If a new version of the software component is available at the time of use, please update it as appropriate.
|
||||
|
||||
|item|name & version|
|
||||
|:--|:--|
|
||||
|Board|Renesas Starter Kit+ for RX65N-2MB|
|
||||
|Device|R5F565NEHxFC|
|
||||
|IDE| Renesas e2Studio Version:2021-10 |
|
||||
|Emulator| E1, E2 Emulator Lite |
|
||||
|Toolchain|CCRX v3.03.00|
|
||||
|TSIP| TSIP v1.14|
|
||||
<br>
|
||||
|
||||
The project of this sample program has a configuration file that uses the following FIT components.
|
||||
However, the FIT components themselves are not included in the distribution of this sample application. You need to download it by operating in the IDE. Some FIT components (TSIPs) cannot be downloaded directly from within the IDE and may need to be downloaded separately from the Renesas download site.
|
||||
<br>
|
||||
|
||||
|FIT component|version|name|
|
||||
|:--|:--|:--|
|
||||
|8bit timer|1.9.0|Config_TMR0|
|
||||
|Board Support Packages|6.21|r_bsp|
|
||||
|CMT driver|4.90|r_cmt_rx|
|
||||
|Ethernet Driver|1.21|r_ether_rx|1.21|r_ether_rx|
|
||||
|Generic system timer for RX MCUs|1.01|r_sys_time_rx|
|
||||
|TCP/IP protocol stack[M3S-T4-Tiny] - RX Ethernet Driver Interface|1.09|r_t4_driver_rx|
|
||||
|TCP/IP protocol stack[M3S-T4-Tiny] for Renesas MCUs|2.10|r_t4_rx|
|
||||
|TSIP(Trusted Secure IP) driver|1.14|r_tsip_rx|
|
||||
<br>
|
||||
|
||||
Note) As of December 2021, TIPS v1.13 does not seem to be able to be added as a FIT component by adding a component in the Smart Configurator Perspective. Add it manually along the method described later.
|
||||
<br><br>
|
||||
|
||||
## 3. Importing sample application project into e2Studio
|
||||
----
|
||||
|
||||
There is no need to create a new sample program. Since the project file is already prepared, please import the project from the IDE by following the steps below.
|
||||
|
||||
+ e2studio "File" menu> "Open project from file system ..."> "Directory (R) ..." Click the import source button and select the folder from which the project will be imported. Select the folder (Renesas/e2studio/\<MCU>/\<borad-name-folder\>/)) where this README file exists.
|
||||
+ Four projects that can be imported are listed, but check only the three projects "smc", "test" and "wolfssl" and click the "Finish" button.
|
||||
|
||||
You should see the **smc**, **test**, and **wolfssl** 3 projects you imported into the project explorer.
|
||||
<br><br>
|
||||
|
||||
## 4. FIT module download and smart configurator file generation
|
||||
----
|
||||
|
||||
You will need to get the required FIT modules yourself. Follow the steps below to get them.
|
||||
|
||||
1. Open the smc project in Project Explorer and double-click the **smc.scfg** file to open the Smart Configurator Perspective.
|
||||
|
||||
2. Select the "Components" tab on the software component settings pane. Then click the "Add Component" button at the top right of the pane. The software component selection dialog will pop up. Click "Download the latest version of FIT driver and middleware" at the bottom of the dialog to get the modules. You can check the dowmload destination folder by pressing "Basic settings...".
|
||||
|
||||
3. The latest version of the TSIP component may not be automatically obtained due to the delay in Renesas' support by the method in step 2 above. In that case, you can download it manually from the Renesas website. Unzip the downloaded component and store the files contained in the FIT Modules folder in the download destination folder of step 2.
|
||||
|
||||
4. Select the required FIT components shown from the list and press the "Finish" button. Repeat this operation until you have the required FIT components.
|
||||
|
||||
5. Select the Components tab on the Software Component Settings pane and select the r_t4_rx component. In the settings pane on the right, specify the IP address of this board as the value of the "# IP address for ch0, when DHCP disable." Property (e.g. 192.168.1.9).
|
||||
|
||||
6. Press the "Generate Code" button at the top right of the software component settings pane to have the smart configurator generate the source files. A src/smc_gen folder will be created under the smc project to store source files, libraries, etc.
|
||||
<br><br>
|
||||
|
||||
## 5. Adding smc_gen files to the test project
|
||||
----
|
||||
|
||||
The test project is a sample application project. When you open the test project in the project explorer, there is a src folder, which contains the source files of the sample application. Add the source files by copying and pasting the smc_gen folder generated in the step5, directly under this src folder.
|
||||
|
||||
Make sure you have a folder hierarchy like this:
|
||||
|
||||
```
|
||||
<board-name-folder>/test/src/smc_gen
|
||||
```
|
||||
<br>
|
||||
|
||||
## 6. Select the behavior of the test application
|
||||
----
|
||||
|
||||
The test project is a single sample application, but you can specify to perform one of the following by switching the settings:
|
||||
|
||||
- CryptoTest: A program that automatically tests various encryption operation functions
|
||||
- Benchmark: A program that measures the execution speed of various cryptographic operations
|
||||
- TlsClient: A program that performs TLS communication with the opposite TLS server application
|
||||
|
||||
Open the <board-name-folder\>/test/src/wolfssl_demo.h file and enable one of the following definitions:
|
||||
|
||||
- #define CRYPT_TEST
|
||||
- #define BENCHMARK
|
||||
- #define TLS_CLIENT
|
||||
|
||||
Then build the test application.
|
||||
<br><br>
|
||||
|
||||
|
||||
## 7. Build and run the test application
|
||||
-----
|
||||
|
||||
Now that the test application is ready to build.
|
||||
|
||||
1. Build the wolfssl project on the project explorer, then the test project.
|
||||
|
||||
2. After a successful build, connect the target board to the emulator and supply external power.
|
||||
|
||||
3. Select "Run" menu> "Debug" to open the debug perspective.
|
||||
|
||||
4. The test application outputs the operating status to the standard output. Keep the "Renesas Debug Virtual Console" open for viewing this standard output.
|
||||
|
||||
5. Press the run button to run the test application.
|
||||
|
||||
6. CryptoTest, Benchmark or TLS_Client After displaying the execution result according to the selected behavior, it enters an infinite loop, so if you think that the output has stopped, stop debugging.
|
||||
<br><br>
|
||||
|
||||
## 8. Running test application as TLS_Client
|
||||
-----
|
||||
<br>
|
||||
### 8.1 Generate a server application
|
||||
|
||||
To operate as TLS_Client, an opposite application for TLS communication is required. A wolfSSL package provides a server sample application that you can use for this purpose. This program is generated by building wolfssl. You can build wolfSSL on Linux (including MacOS and WSL) with gcc installed or build using Visual Studio. The following introduces the build on WSL.
|
||||
<br><br>
|
||||
|
||||
```
|
||||
$ cd <wolfssl-folder>
|
||||
$ ./autogen.sh
|
||||
$ ./configure CFLAGS="-DWOLFSSL_STATIC_RSA -DHAVEAES_CBC"
|
||||
$ make
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
With the above build, <wolfssl-folder\>/examples/server/server
|
||||
Is generated. This executable acts as a TLS server application. If you execute it with the following options, it will be in the listening state for the connection from TLS_Client.
|
||||
<br><br>
|
||||
|
||||
```
|
||||
$ examples/server/server -b -d -i
|
||||
```
|
||||
<br>
|
||||
|
||||
For the test application, specify the IP address assigned to the server application.
|
||||
|
||||
Open wolf_client.c to specify ip address of the server in "#define SIMPLE_TLSSEVER_IP" like as:
|
||||
<br>
|
||||
|
||||
```
|
||||
-- <board-name-folder>/test/src/wolf_client.c --
|
||||
|
||||
...
|
||||
#define SIMPLE_TLSSEVER_IP 192.168.53.9
|
||||
...
|
||||
```
|
||||
<br>
|
||||
Save the file and rebuild the test application. When you run the test application, it makes a TLS connection with the opposite application, then exchanges a simple string and displays the following on the standard output.
|
||||
<br><br>
|
||||
|
||||
```
|
||||
cipher : ECDHE-RSA-AES128-GCM-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : ECDHE-RSA-AES128-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : AES128-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : AES256-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : ECDHE-RSA-AES128-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : ECDHE-RSA-AES128-GCM-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
```
|
||||
<br>
|
||||
|
||||
### 8.2 Change server certificate (change authentication method)
|
||||
<br>
|
||||
The above is an execution example when the server certificate presented by the server application contains the RSA public key (RSA authentication). TSIP can also handle cases where the server certificate contains an ECC public key (ECDSA authentication).
|
||||
|
||||
<br>
|
||||
If you want to use a cipher suite that includes ECDSA, you will need to change the settings of the test application and rebuild. Open common/ user_settings.h, enable the USE_ECC_CERT definition and rebuild.
|
||||
<br><br>
|
||||
|
||||
```
|
||||
-- <board-name-folder>/common/user_settings.h --
|
||||
|
||||
#define USE_ECC_CERT
|
||||
```
|
||||
<br>
|
||||
This definition causes the test application to use a RootCA certificate that can validate the server certificate containing the ECC public key presented by the server.
|
||||
|
||||
<br>
|
||||
In addition, the opposite server application also needs to specify the server certificate and private key file containing the ECC public key as an option, and then execute it as shown below.
|
||||
<br><br>
|
||||
|
||||
```
|
||||
$ ./examples/server/server -b -d -i -c ./certs/server-ecc.pem -k ./certs/ecc-key.pem
|
||||
```
|
||||
<br>
|
||||
The following is displayed as the execution result.
|
||||
<br> <br>
|
||||
|
||||
```
|
||||
cipher : ECDHE-ECDSA-AES128-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : ECDHE-ECDSA-AES128-GCM-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
```
|
||||
<br>
|
||||
|
||||
## 9. What you need to do to use the RootCA certificate prepared by the user
|
||||
----
|
||||
|
||||
In this sample program, the RootCA certificate required to operate as TLS_Client and the server certificate used by the sample TLS server application are certificates that can be used only for evaluation.
|
||||
If you want to use it for purposes beyond functional evaluation, you need to prepare the RootCA certificate yourself. with this,
|
||||
1. Provisioning key
|
||||
2. RSA key pair required for RootCA certificate validation
|
||||
3. The signature generated by the RootCA certificate with the private key in 2 above.
|
||||
|
||||
will become necessary. Please refer to the manual provided by Renesas for how to generate them.
|
||||
+ InstructionManualForExample_RSK+RX65N-2MB_JP.pdf (Japanese)
|
||||
+ InstructionManualForExample_RSK+RX65N-2MB_EN.pdf (English)
|
||||
@@ -3,248 +3,10 @@ Renesas RSK+RX65N-2MB 評価ボード用 wolfSSLサンプルプロジェクト
|
||||
|
||||
<br>
|
||||
|
||||
## 1. 概要
|
||||
-----
|
||||
|
||||
Renesas社製 RSK+RX65N-2MB 評価ボードをターゲットとしてwolfSSLを評価するためのサンプルプログラムを提供します。サンプルプログラムはリアルタイムOSを使わないベアメタル環境で動作し、IDEとしてe2 studioを使用するものです。本ドキュメントではサンプルプログラムのビルドから実行までの手順を説明します。
|
||||
Renesas社製 RSK+RX65N-2MB 評価ボードをターゲットとしてwolfSSLを評価するためのサンプルプログラムを提供します。サンプルプログラムに関するマニュアルは同梱の
|
||||
|
||||
提供するサンプルプログラムは次の3機能を評価できる単一のアプリケーションです:
|
||||
+ InstructionManualForExample_RSK+RX65N-2MB_JP.pdf (日本語版)
|
||||
+ InstructionManualForExample_RSK+RX65N-2MB_EN.pdf (英語版)
|
||||
|
||||
- CryptoTest: 各種暗号化オペレーション機能を自動テストするプログラム
|
||||
- Benchmark: 各種暗号化オペレーションの実行速度を測定するプログラム
|
||||
- TlsClient: 対向するTLSサーバーアプリケーションとTLS通信を行うプログラム
|
||||
|
||||
評価ボードを動作させる為のH/W設定、S/W設定は既に用意していますから、サンプルプロジェクトの動作までは最少の設定で済むようになっています。また、TLS通信において必要となる、RootCA証明書、サーバー側証明書もサンプル使用に限定したものが既に設定済みです。
|
||||
|
||||
以降のセクションはサンプルアプリケーションの実行までのステップを順に説明していきます。
|
||||
<br><br>
|
||||
|
||||
|
||||
## 2. ターゲットとしているH/W、コンポーネント、ライブラリ
|
||||
-----
|
||||
|
||||
このサンプルプログラムでは以下のハードウエアやソソフトウエアライブラリを使用しています。皆さんがご利用時にバージョンの新しいソフトウエアコンポーネントが利用可能であれば適宜更新の上ご利用ください。
|
||||
<br><br>
|
||||
|
||||
|要素|名称/バージョン|
|
||||
|:--|:--|
|
||||
|評価ボード|Renesas Starter Kit+ for RX65N-2MB|
|
||||
|Device|R5F565NEHxFC|
|
||||
|IDE| Renesas e2Studio Version:2021-10 |
|
||||
|エミュレーター| E1, E2エミュレーターLite |
|
||||
|Toolchain|CCRX v3.03.00|
|
||||
|TSIP| TSIP v1.14|
|
||||
<br>
|
||||
|
||||
本サンプルプログラムのプロジェクトには以下のFITコンポーネントを使用する設定ファイルが用意されています。
|
||||
しかし、FITコンポーネント群そのものは本サンプルアプリケーションの配布物としては含まれていません。皆さん自身でIDE内の操作によってダウンロードしていただく必要があります。一部のFITコンポーネント(TSIP)はIDE内から直接ダウンロードできず、Renesas社のダウンロードサイトから別途ダウンロードが必要なものがあります。
|
||||
<br><br>
|
||||
|
||||
|
||||
|
||||
|FITコンポーネント|バージョン|略称|
|
||||
|:--|:--|:--|
|
||||
|8ビットタイマー|1.9.0|Config_TMR0|
|
||||
|Board Support Packages|6.21|r_bsp|
|
||||
|CMT driver|4.90|r_cmt_rx|
|
||||
|Ethernet Driver|1.21|r_ether_rx|1.21|r_ether_rx|
|
||||
|Generic system timer for RX MCUs|1.01|r_sys_time_rx|
|
||||
|TCP/IP protocol stack[M3S-T4-Tiny] - RX Ethernet Driver Interface|1.09|r_t4_driver_rx|
|
||||
|TCP/IP protocol stack[M3S-T4-Tiny] for Renesas MCUs|2.10|r_t4_rx|
|
||||
|TSIP(Trusted Secure IP) driver|1.14|r_tsip_rx|
|
||||
|
||||
(注意)2021年12月現在、TIPSv1.14はFITコンポーネントとしてスマートコンフィギュレータパースペクティブのコンポーネントの追加操作では追加できないようです。後ほど説明する手動での追加方法を使って追加してください。<br>
|
||||
|
||||
|
||||
<br><br>
|
||||
|
||||
## 3. サンプルプログラムプロジェクトのe2Studioへのインポート
|
||||
----
|
||||
|
||||
サンプルプログラムは新規作成する必要はありません。すでにプロジェクトファイルが用意されていますからIDEから以下の手順でプロジェクトをインポートしてください。
|
||||
|
||||
|
||||
+ 1.e2studioの"ファイル"メニュー > "ファイル・システムからプロジェクトを開く..." > "ディレクトリ(R)..."インポート元ボタンを押して、プロジェクトのインポート元となるフォルダーを選択します。本READMEファイルが存在するフォルダ(Renesas/e2studio/\<MCU>/\<borad-name-folder\>/))を選択してください。
|
||||
|
||||
+ インポートできるプロジェクトが4つリストアップされますが、"smc", "test" と"wolfssl"の3プロジェクトにのみチェックを入れて”終了”ボタンを押してください。
|
||||
|
||||
プロジェクト・エクスプローラーにインポートしたsmc,test,wolfsslの3プロジェクトが表示されるはずです。
|
||||
<br><br>
|
||||
|
||||
## 4. FITモジュールの取得とスマートコンフィギュレータによるファイル生成
|
||||
----
|
||||
|
||||
FITモジュールは皆さん自身で取得していただく必要があります。以下の手順で取得してください。
|
||||
<br><br>
|
||||
|
||||
|
||||
1. プロジェクト・エクスプローラー上でsmcプロジェクトを開き**smc.scfg**ファイルをダブルクリックして、スマートコンフィギュレータパースペクティブを開きます。
|
||||
|
||||
2. ソフトウエアコンポーネント設定画面の"コンポーネント"タブを選択 > 画面右上の"コンポーネントの追加" ボタンを押して下さい。ソフトウエアコンポーネントの選択ダイアログが表示されます。ここで、画面下部の"最新版のFITドライバとミドルウエアをダウンロードする"を押して、モジュール群を取得しておいてください。ダウンロード先のフォルダは"基本設定..."を押して確認することができます。
|
||||
|
||||
3. TSIPコンポーネントは上記ステップ2の方法ではRenesas社の対応が遅れていて最新版が自動的には取得できないことがあります。その場合にはRenesas社のサイトから手動でダウンロードできます。ダウンロードしたコンポーネントのを解凍し、FITModulesフォルダに含まれているファイル群をステップ2のダウンロード先フォルダに格納してください。
|
||||
|
||||
4. 先に示したFITコンポーネントを一覧から選択して"終了"ボタンを押します。この操作を必要なFITコンポーネントを得るまで繰り返し行います。
|
||||
|
||||
5. ソフトウエアコンポーネント設定画面のコンポーネントタブを選択し、r_t4_rxコンポーネントを選択します。右の設定ペインに"# IP address for ch0, when DHCP disable."プロパティの値として、このボードのIPアドレスを皆さんの環境に合わせてて指定します(例:
|
||||
192.168.1.9)。
|
||||
|
||||
6. ソフトウエアコンポーネント設定画面の右上の”コードの生成"ボタンを押して、スマートコンフィギュレータにソースファイルを生成させます。smcプロジェクトの下にsrc/smc_genフォルダが生成され、ソースファイル、ライブラリ等が格納されされます。
|
||||
<br><br>
|
||||
|
||||
## 5. testプロジェクトへのsmc_genファイル群の追加
|
||||
----
|
||||
|
||||
testプロジェクトはサンプルアプリケーションのプロジェクトです。プロジェクト・エクスプローラー上でtestプロジェクトを開くとsrcフォルダが存在し、そこにサンプルアプリケーションのソースファイルが格納されています。このsrcフォルダ直下に4-5で生成したsmc_genフォルダごとコピー&ペーストしてソースファイルを追加します。
|
||||
|
||||
test/src/smc_gen
|
||||
|
||||
のようなフォルダ階層になることを確認してください。
|
||||
<br><br>
|
||||
|
||||
## 6. testアプリケーションの動作を選択する
|
||||
----
|
||||
testプロジェクトが唯一のサンプルアプリケーションですが、その動作を設定で切り替えることによって、
|
||||
|
||||
- CryptoTest: 各種暗号化オペレーション機能を自動テストするプログラム
|
||||
- Benchmark: 各種暗号化オペレーションの実行速度を測定するプログラム
|
||||
- TlsClient: 対向するTLSサーバーアプリケーションとTLS通信を行うプログラム
|
||||
|
||||
のいずれかの動作を行うよう指定できます。
|
||||
|
||||
設定はtest/src/wolfssl_demo.h ファイル内の、
|
||||
|
||||
- #define CRYPT_TEST
|
||||
- #define BENCHMARK
|
||||
- #define TLS_CLIENT
|
||||
|
||||
のいずれか一つを有効にしてアプリケーションをビルドすることで行います。
|
||||
<br><br>
|
||||
|
||||
|
||||
## 7. testアプリケーションのビルドと実行
|
||||
-----
|
||||
|
||||
testアプリケーションのビルドの準備が整ったので、ビルドを行います。
|
||||
|
||||
1.プロジェクト・エクスプローラー上のwolfsslプロジェクトをビルドし、次にtestプロジェクトをビルドします。
|
||||
|
||||
2.ビルドが成功したら、ターゲットボードとエミュレーターを接続し、外部電源を入力します。
|
||||
|
||||
3."実行"メニュー > "デバッグ"を選択し、デバッグパースペクティブを開きます。
|
||||
|
||||
4. testアプリケーションは標準出力に動作状況を出力します。この標準出力の表示用に、"Renesas Debug Virtual Console"を開いておきます。
|
||||
|
||||
5.実行ボタンを押してtestアプリケーションを動作させます。
|
||||
|
||||
6.CryptoTest、BenchmarkあるいはTLS_Client選択していた動作に応じた実行結果を表示したあと無限ループに入るので出力が停止したと思われたらデバッグを停止させます。
|
||||
<br><br>
|
||||
|
||||
## 8. TLS_Clientとしてのtestアプリケーションの実行
|
||||
-----
|
||||
<br>
|
||||
|
||||
### 8.1 TLS対向アプリケーションの生成と実行
|
||||
<br>
|
||||
|
||||
testアプリケーションをTLS_Clientとしての動作を行わせる場合には、TLS通信の相手方となる対向アプリケーションが必要となります。wolfSSLパッケージにはこの用途に使用できるTLSserverサンプルアプリケーションが用意されています。このプログラムはwolfsslをビルドすることで生成されます。wolfSSLのビルドにはgccがインストールされているLinux(MacOS, WSLも含む)でのビルドとVisualStudioを使ってのビルドが可能です。以下ではWSL上でのビルドを紹介します。
|
||||
<br><br>
|
||||
|
||||
```
|
||||
$ cd <wolfssl-folder>
|
||||
$ ./autogen.sh
|
||||
$ ./configure CFLAGS="-DWOLFSSL_STATIC_RSA -DHAVEAES_CBC"
|
||||
$ make
|
||||
```
|
||||
|
||||
<br>
|
||||
上記のビルドによって、<wolfssl-folder\>/examples/server/server
|
||||
が生成されます。この実行プログラムがサーバーアプリケーションとして機能します。以下のオプションを与えて実行させるとTLS_Clientからの接続を待ち受け状態になります。
|
||||
<br><br>
|
||||
|
||||
```
|
||||
$ examples/server/server -b -d -i
|
||||
```
|
||||
<br>
|
||||
testアプリケーションには、サーバーアプリケーションに割り当てられたIPアドレスを指定します。
|
||||
|
||||
wolf_client.cを開き、#define SIMPLE_TLSSEVER_IPにアドレスを指定します。
|
||||
|
||||
```
|
||||
-- wolf_client.c --
|
||||
|
||||
...
|
||||
#define SIMPLE_TLSSEVER_IP 192.168.53.9
|
||||
...
|
||||
```
|
||||
<br>
|
||||
ファイルをセーブしてtestアプリケーションを再ビルドしてください。testアプリケーションを実行すると、対向アプリケーションとの間でTLS接続が行われ、その後簡単な文字列を交換して標準出力に以下のような表示を行います。
|
||||
<br><br>
|
||||
|
||||
```
|
||||
cipher : ECDHE-RSA-AES128-GCM-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : ECDHE-RSA-AES128-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : AES128-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : AES256-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : ECDHE-RSA-AES128-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : ECDHE-RSA-AES128-GCM-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
```
|
||||
<br>
|
||||
|
||||
### 8.2 サーバー証明書の変更(認証方式の変更)
|
||||
|
||||
<br>
|
||||
上記はサーバーアプリケーションが提示すサーバー証明書にRSA公開鍵が含まれている(RSA認証)場合の実行例です。TSIPにはこのほかにサーバー証明書にECC公開鍵を含む場合(ECDSA認証)も扱えます。
|
||||
|
||||
<br>
|
||||
ECDSAを含む暗号化スイートを使用したい場合には、testアプリケーションの設定を変更して再ビルドが必要となります。\<board-name-folder\>/common/user_settings.h を開き、USE_ECC_CERT定義を有効化して再ビルドしてください。
|
||||
<br><br>
|
||||
|
||||
```
|
||||
#define USE_ECC_CERT
|
||||
```
|
||||
|
||||
<br>
|
||||
この定義により、testアプリケーションはサーバーの提示するECC公開鍵を含んだサーバー証明書を検証できるRootCA証明書を使うようになります。
|
||||
<br><br>
|
||||
|
||||
さらに対向するサーバーアプリケーションの方でも以下のようにECC公開鍵を含んだサーバー証明書と秘密鍵ファイルをオプションで指定して実行する必要があります。
|
||||
<br><br>
|
||||
|
||||
```
|
||||
$ ./examples/server/server -b -d -i -c ./certs/server-ecc.pem -k ./certs/ecc-key.pem
|
||||
```
|
||||
<br>
|
||||
実行結果として以下が表示されます。
|
||||
<br><br>
|
||||
|
||||
```
|
||||
cipher : ECDHE-ECDSA-AES128-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : ECDHE-ECDSA-AES128-GCM-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
```
|
||||
<br>
|
||||
|
||||
## 9. ユーザーが用意したRootCA証明書を利用する際に必要なこと
|
||||
-----
|
||||
|
||||
本サンプルプログラムでは、TLS_Clientとして動作する際に必要なRootCA証明書とサンプルTLSサーバーアプリケーションが使用するサーバー証明書などは評価用でのみ利用可能な証明書です。
|
||||
機能評価を超えた目的で利用する場合にはRootCA証明書をユーザー自身で用意する必要があります。それに伴い、
|
||||
1. Provisioning key
|
||||
2. RootCA証明書の検証の為に必要なRSA鍵ペア
|
||||
3. RootCA証明書を上記2の秘密鍵で生成した署名
|
||||
|
||||
が必要になります。それらの生成方法はRenesas社提供のマニュアルを参照してください。
|
||||
を参照ください。
|
||||
@@ -4,23 +4,14 @@
|
||||
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/README_EN.md
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/README_JP.md
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/InstructionManualForExample_RSK+RX65N-2MB_EN.pdf
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/InstructionManualForExample_RSK+RX65N-2MB_JP.pdf
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/resource/section.esi
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/wolfssl/.cproject
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/wolfssl/.project
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/wolfssl/wolfssl.rcpc
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/test/.cproject
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/test/.project
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/test/test_HardwareDebug.launch
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/test/test.rcpc
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/test/src/test_main.c
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/test/src/key_data.c
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/test/src/key_data.h
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/test/src/wolf_client.c
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/test/src/wolf_server.c
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/test/src/wolfssl_demo.h
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/common/wolfssl_dummy.c
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/common/strings.h
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/common/unistd.h
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/common/user_settings.h
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/smc/.cproject
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/smc/.project
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/smc/smc.scfg
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/wolfssl_demo/key_data.c
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/wolfssl_demo/key_data.h
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/wolfssl_demo/wolfssl_demo.c
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/wolfssl_demo/wolfssl_demo.h
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX65N/RSK/wolfssl_demo/user_settings.h
|
||||
|
||||
41
IDE/Renesas/e2studio/RX65N/RSK/resource/section.esi
Normal file
41
IDE/Renesas/e2studio/RX65N/RSK/resource/section.esi
Normal file
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="ASCII"?>
|
||||
<com.renesas.linkersection.model:SectionContainer xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:com.renesas.linkersection.model="http:///LinkerSection.ecore">
|
||||
<sections name="SU">
|
||||
<sectionAddress xsi:type="com.renesas.linkersection.model:FixedAddress" fixedAddress="4"/>
|
||||
</sections>
|
||||
<sections name="SI"/>
|
||||
<sections name="R_1"/>
|
||||
<sections name="R_2"/>
|
||||
<sections name="R"/>
|
||||
<sections name="RPFRAM2"/>
|
||||
<sections name="C_PKCS11_STORAGE*">
|
||||
<sectionAddress xsi:type="com.renesas.linkersection.model:FixedAddress" fixedAddress="1050624"/>
|
||||
</sections>
|
||||
<sections name="C_SYSTEM_CONFIG*">
|
||||
<sectionAddress xsi:type="com.renesas.linkersection.model:FixedAddress" fixedAddress="1067008"/>
|
||||
</sections>
|
||||
<sections name="B_ETHERNET_BUFFERS_1">
|
||||
<sectionAddress xsi:type="com.renesas.linkersection.model:FixedAddress" fixedAddress="8388608"/>
|
||||
</sections>
|
||||
<sections name="B_RX_DESC_1"/>
|
||||
<sections name="B_TX_DESC_1"/>
|
||||
<sections name="B"/>
|
||||
<sections name="B_1"/>
|
||||
<sections name="B_2"/>
|
||||
<sections name="C_1">
|
||||
<sectionAddress xsi:type="com.renesas.linkersection.model:FixedAddress" fixedAddress="4292870144"/>
|
||||
</sections>
|
||||
<sections name="C_2"/>
|
||||
<sections name="C"/>
|
||||
<sections name="C$*"/>
|
||||
<sections name="D*"/>
|
||||
<sections name="W*"/>
|
||||
<sections name="L"/>
|
||||
<sections name="P*"/>
|
||||
<sections name="EXCEPTVECT">
|
||||
<sectionAddress xsi:type="com.renesas.linkersection.model:FixedAddress" fixedAddress="4294967168"/>
|
||||
</sections>
|
||||
<sections name="RESETVECT">
|
||||
<sectionAddress xsi:type="com.renesas.linkersection.model:FixedAddress" fixedAddress="4294967292"/>
|
||||
</sections>
|
||||
</com.renesas.linkersection.model:SectionContainer>
|
||||
@@ -1,150 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="com.renesas.cdt.managedbuild.renesas.ccrx.hardwaredebug.configuration.1034911632">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.renesas.cdt.managedbuild.renesas.ccrx.hardwaredebug.configuration.1034911632" moduleId="org.eclipse.cdt.core.settings" name="HardwareDebug">
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="org.eclipse.cdt.core.PE" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.renesas.cdt.managedbuild.renesas.core.RenesasCompilerAssemblerErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.renesas.cdt.managedbuild.core.buildRunnerErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="com.renesas.cdt.managedbuild.core.toolchainInfo">
|
||||
<option id="toolchain.id" value="Renesas_RXC"/>
|
||||
<option id="toolchain.version" value="v3.02.00"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="abs" artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug" description="Debug on hardware" id="com.renesas.cdt.managedbuild.renesas.ccrx.hardwaredebug.configuration.1034911632" name="HardwareDebug" parent="com.renesas.cdt.managedbuild.renesas.ccrx.hardwaredebug.configuration">
|
||||
<folderInfo id="com.renesas.cdt.managedbuild.renesas.ccrx.hardwaredebug.configuration.1034911632." name="/" resourcePath="">
|
||||
<toolChain id="com.renesas.cdt.managedbuild.renesas.ccrx.hardwaredebug.toolChain.2083798146" name="Renesas CCRX Toolchain" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.hardwaredebug.toolChain">
|
||||
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF;org.eclipse.cdt.core.PE" id="com.renesas.cdt.managedbuild.renesas.ccrx.base.targetPlatform.1553425974" osList="win32" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.targetPlatform"/>
|
||||
<builder buildPath="${workspace_loc:/smc}/HardwareDebug" id="com.renesas.cdt.managedbuild.renesas.ccrx.base.builder.728775241" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="CCRX Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.builder"/>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.dsp.1074736849" name="DSP Assembler" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.dsp">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.noDebugInfo.1437047237" name="デバッグ情報を出力する (-no_debug_info)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.noDebugInfo" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian.850740926" name="出力するデータ値のエンディアン (-littleEndianData)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian.big" valueType="enumerated"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.common.189886433" name="Common" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.common">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.1998690625" name="命令セット・アーキテクチャ (-isa)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.rxv3" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.rxArchitecture.960776357" name="RX Architecture" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.rxArchitecture" useByScannerDiscovery="false" value="rxv3" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns.478847685" name="浮動小数点演算命令を使用する (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns.yes" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasFpu.217406660" name="Has FPU" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasFpu" useByScannerDiscovery="false" value="TRUE" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.doublePrecisionFPU.1863668418" name="倍精度浮動小数点処理命令を使用する (-dpfpu/-nodpfpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.doublePrecisionFPU" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceName.1644771309" name="Device Name" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceName" useByScannerDiscovery="false" value="R5F572NNHxFB" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceHistory.1014766670" name="Device history" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceHistory" useByScannerDiscovery="false" value="non_init;R5F572NNHxFB" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isaHistory.799048652" name="ISA history" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isaHistory" useByScannerDiscovery="false" value="non_init;com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.rxv3" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceCommand.401879791" name="Device Command" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceCommand" useByScannerDiscovery="false" value="R5F572NN" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.checkRtos.723360463" name="Check RTOS" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.checkRtos" useByScannerDiscovery="false" value="unusedRtos" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasDsp.1084188471" name="Has DSP" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasDsp" useByScannerDiscovery="false" value="false" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceFamily.1569119399" name="Device Family" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceFamily" useByScannerDiscovery="false" value="RX72N" valueType="string"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.compiler.1255239266" name="Compiler" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.compiler">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu.40700832" name="浮動小数点演算命令を使用する (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu.yes" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.include.1698327371" name="インクルード・ファイルを検索するフォルダ (-include)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.include" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value="${TCINSTALL}/include"/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/general}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/Config_TMR0}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_pincfg}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_bsp}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_config}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_cmt_rx}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_cmt_rx/src}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_ether_rx}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_sys_time_rx}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_sys_time_rx/src}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_t4_driver_rx}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_t4_driver_rx/src}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_t4_rx}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_t4_rx/lib}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_tsip_rx}""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userBefore.689082812" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userAfter.1291582485" name="追加するオプション(すべての指定オプションの後ろに追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC.1092400212" name="Cソース (-lang)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC.c99" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode.1134863351" name="プログラムの文字コード (-euc/-sjis/-latin1/-utf8/-big5/-gb2312)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode.utf8" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode.1384702193" name="出力する文字コード (-outcode)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode.utf8" valueType="enumerated"/>
|
||||
<inputType id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gcc.inputType.1318182307" name="Compiler Input C" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gcc.inputType"/>
|
||||
<inputType id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gpp.inputType.2014243112" name="Compiler Input CPP" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gpp.inputType"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.assembler.828471590" name="Assembler" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.assembler">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userBefore.1076957084" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userAfter.322327641" name="追加するオプション(すべての指定オプションの後ろに追加) " superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode.1981032357" name="プログラムの文字コード (-euc/-sjis/-latin1/-utf8/-big5/-gb2312)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode.utf8" valueType="enumerated"/>
|
||||
<inputType id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.inputType.1925809882" name="Assembler InputType" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.inputType"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.linker.1186652965" name="Linker" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.linker">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.rom.97438325" name="ROMからRAMへマップするセクション (-rom)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.rom" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="D=R"/>
|
||||
<listOptionValue builtIn="false" value="D_1=R_1"/>
|
||||
<listOptionValue builtIn="false" value="D_2=R_2"/>
|
||||
<listOptionValue builtIn="false" value="D_8=R_8"/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.linkerSection.319906735" name="セクション (-start)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.linkerSection" useByScannerDiscovery="false" value="SU,SI,B_1,R_1,B_2,R_2,B,R,B_8,R_8/04,C_1,C_2,C,C_8,C$*,D*,W*,L,P*/0FFC00000,EXCEPTVECT/0FFFFFF80,RESETVECT/0FFFFFFFC,B_ETHERNET_BUFFERS_1,B_RX_DESC_1,B_TX_DESC_1/00010000" valueType="string"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userBefore.1970509300" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userAfter.525178825" name="追加するオプション(すべての指定オプションの後ろに追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.vect.1813480503" name="可変ベクタテーブルのアドレス未設定ベクタ番号に指定するアドレス (-vect)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.vect" useByScannerDiscovery="false" value="_undefined_interrupt_source_isr" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.checkSection.122296241" name="セクションの割り付けアドレスをチェックする (-cpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.checkSection" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType.341427834" name="アドレス範囲指定方法 (-cpu(アドレス範囲指定方法))" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType.autoSpecify" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.noneLinkageOrderList.1967673887" name="(リンク順序のリスト) (-input/-library/-binary)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.noneLinkageOrderList" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="".\smc.lib""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.inputFile.702731379" name="リンクするリロケータブル・ファイル、ライブラリ・ファイルおよびバイナリ・ファイル (-input/-library/-binary)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.inputFile" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_tsip_rx/lib/ccrx/r_tsip_rx65n_little.lib}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_t4_rx/lib/ccrx/T4_Library_ether_ccrx_rxv1_little.lib}""/>
|
||||
</option>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.librarian.267645921" name="Library Generator" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.librarian">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu.1945977999" name="浮動小数点演算命令を使用する (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu.yes" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userBefore.1559216167" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userAfter.478801180" name="追加するオプション(すべての指定オプションの後ろに追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang.1104431523" name="C言語標準ライブラリ関数の構成 (-lang)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang.c99" valueType="enumerated"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.converter.135636800" name="Converter" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.converter">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userBefore.1334132823" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userAfter.1353925049" name="追加するオプション(すべての指定オプションの後ろに追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOfOutputFile.1953735364" name="出力ファイル形式 (-form)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOfOutputFile" value="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOFOutputFile.none" valueType="enumerated"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.rtosConfig.1515705145" name="RTOS Configurator" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.rtosConfig"/>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
<sourceEntries>
|
||||
<entry flags="VALUE_WORKSPACE_PATH" kind="sourcePath" name="src"/>
|
||||
</sourceEntries>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
<storageModule moduleId="com.renesas.cdt.managedbuild.core.boardInfo"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="smc.com.renesas.cdt.managedbuild.renesas.ccrx.projectType.586427983" name="実行可能" projectType="com.renesas.cdt.managedbuild.renesas.ccrx.projectType"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration">
|
||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
|
||||
</cproject>
|
||||
@@ -1,36 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>smc</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>com.renesas.smc.ui.pgsupport.SCContentBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<triggers>clean,full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>com.renesas.cdt.managedbuild.renesas.misrachecker.builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
@@ -1,935 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<smc>
|
||||
<general version="2.0.0.0">
|
||||
<configuration active="true" id="com.renesas.smc.toolchain.rxc.configuration.release">
|
||||
<property id="com.renesas.smc.service.project.buildArtefactType" values="com.renesas.smc.service.project.buildArtefactType.exe"/>
|
||||
<toolchain id="com.renesas.smc.toolchain.rxc.toolchain.rxc">
|
||||
<option id="com.renesas.smc.toolchain.option.buildArtefactType" key="com.renesas.smc.toolchain.option.buildArtefactType.exe"/>
|
||||
<option id="com.renesas.smc.toolchain.option.rtos" key="com.renesas.smc.toolchain.option.rtos.none"/>
|
||||
</toolchain>
|
||||
</configuration>
|
||||
<platform id="R5F565NEHxFC"/>
|
||||
<option id="board" value="カスタムユーザボード"/>
|
||||
</general>
|
||||
<tool id="Clock">
|
||||
<option enabled="true" id="vccinput" selection="textinputitem">
|
||||
<item enabled="true" id="textinputitem" input="3.3" value="3.300"/>
|
||||
</option>
|
||||
<option enabled="true" id="mainclockenable" selection="check">
|
||||
<item enabled="true" id="check"/>
|
||||
<item enabled="true" id="uncheck"/>
|
||||
</option>
|
||||
<option enabled="true" id="mainsourcebox" selection="srcR">
|
||||
<item enabled="true" id="srcR"/>
|
||||
<item enabled="true" id="srcEOI"/>
|
||||
</option>
|
||||
<option enabled="true" id="mainfrequency" selection="textinputitem">
|
||||
<item enabled="true" id="textinputitem" input="24" value="24.000000"/>
|
||||
</option>
|
||||
<option enabled="true" id="mainwaittime" selection="textinputitem">
|
||||
<item enabled="true" id="textinputitem" input="9980" value="9980.000000"/>
|
||||
</option>
|
||||
<option enabled="true" id="subclockenable" selection="uncheck">
|
||||
<item enabled="true" id="check"/>
|
||||
<item enabled="true" id="uncheck"/>
|
||||
</option>
|
||||
<option enabled="false" id="subfrequency" selection="textinputitem">
|
||||
<item enabled="true" id="textinputitem" input="" value="32.768"/>
|
||||
</option>
|
||||
<option enabled="false" id="subdrivecap" selection="standardCL">
|
||||
<item enabled="true" id="standardCL"/>
|
||||
<item enabled="true" id="lowCL"/>
|
||||
</option>
|
||||
<option enabled="false" id="subwaittime" selection="textinputitem">
|
||||
<item enabled="true" id="textinputitem" input="2000" value="2000.000000"/>
|
||||
</option>
|
||||
<option enabled="true" id="hococlockenable" selection="uncheck">
|
||||
<item enabled="true" id="check"/>
|
||||
<item enabled="true" id="uncheck"/>
|
||||
</option>
|
||||
<option enabled="false" id="hocooscenable" selection="uncheck">
|
||||
<item enabled="true" id="check"/>
|
||||
<item enabled="true" id="uncheck"/>
|
||||
</option>
|
||||
<option enabled="false" id="hocofrequency" selection="frq16">
|
||||
<item enabled="true" id="frq16"/>
|
||||
<item enabled="true" id="frq18"/>
|
||||
<item enabled="true" id="frq20"/>
|
||||
</option>
|
||||
<option enabled="true" id="lococlockenable" selection="uncheck">
|
||||
<item enabled="true" id="check"/>
|
||||
<item enabled="true" id="uncheck"/>
|
||||
</option>
|
||||
<option enabled="false" id="locofrequency" selection="textinputitem">
|
||||
<item enabled="true" id="textinputitem" input="" value="240"/>
|
||||
</option>
|
||||
<option enabled="true" id="iwdtclockenable" selection="uncheck">
|
||||
<item enabled="true" id="check"/>
|
||||
<item enabled="true" id="uncheck"/>
|
||||
</option>
|
||||
<option enabled="false" id="iwdtfrequency" selection="textinputitem">
|
||||
<item enabled="true" id="textinputitem" input="" value="120"/>
|
||||
</option>
|
||||
<option enabled="true" id="pllswitcher" selection="pllmain">
|
||||
<item enabled="true" id="pllmain" input="" value="24.0"/>
|
||||
<item enabled="false" id="pllhoco" input="" value="16"/>
|
||||
</option>
|
||||
<option enabled="true" id="plldivider" selection="div1-1">
|
||||
<item enabled="true" id="div1-1"/>
|
||||
<item enabled="true" id="div1-2"/>
|
||||
<item enabled="true" id="div1-3"/>
|
||||
</option>
|
||||
<option enabled="true" id="pllmul" selection="mul10-1">
|
||||
<item enabled="true" id="mul10-1"/>
|
||||
<item enabled="false" id="mul10_5-1"/>
|
||||
<item enabled="false" id="mul11-1"/>
|
||||
<item enabled="false" id="mul11_5-1"/>
|
||||
<item enabled="false" id="mul12-1"/>
|
||||
<item enabled="false" id="mul12_5-1"/>
|
||||
<item enabled="false" id="mul13-1"/>
|
||||
<item enabled="false" id="mul13_5-1"/>
|
||||
<item enabled="false" id="mul14-1"/>
|
||||
<item enabled="false" id="mul14_5-1"/>
|
||||
<item enabled="false" id="mul15-1"/>
|
||||
<item enabled="false" id="mul15_5-1"/>
|
||||
<item enabled="false" id="mul16-1"/>
|
||||
<item enabled="false" id="mul16_5-1"/>
|
||||
<item enabled="false" id="mul17-1"/>
|
||||
<item enabled="false" id="mul17_5-1"/>
|
||||
<item enabled="false" id="mul18-1"/>
|
||||
<item enabled="false" id="mul18_5-1"/>
|
||||
<item enabled="false" id="mul19-1"/>
|
||||
<item enabled="false" id="mul19_5-1"/>
|
||||
<item enabled="false" id="mul20-1"/>
|
||||
<item enabled="false" id="mul20_5-1"/>
|
||||
<item enabled="false" id="mul21-1"/>
|
||||
<item enabled="false" id="mul21_5-1"/>
|
||||
<item enabled="false" id="mul22-1"/>
|
||||
<item enabled="false" id="mul22_5-1"/>
|
||||
<item enabled="false" id="mul23-1"/>
|
||||
<item enabled="false" id="mul23_5-1"/>
|
||||
<item enabled="false" id="mul24-1"/>
|
||||
<item enabled="false" id="mul24_5-1"/>
|
||||
<item enabled="false" id="mul25-1"/>
|
||||
<item enabled="false" id="mul25_5-1"/>
|
||||
<item enabled="false" id="mul26-1"/>
|
||||
<item enabled="false" id="mul26_5-1"/>
|
||||
<item enabled="false" id="mul27-1"/>
|
||||
<item enabled="false" id="mul27_5-1"/>
|
||||
<item enabled="false" id="mul28-1"/>
|
||||
<item enabled="false" id="mul28_5-1"/>
|
||||
<item enabled="false" id="mul29-1"/>
|
||||
<item enabled="false" id="mul29_5-1"/>
|
||||
<item enabled="false" id="mul30-1"/>
|
||||
</option>
|
||||
<option enabled="true" id="sckswitcher" selection="pll">
|
||||
<item enabled="true" id="pll" input="" value="2.4E8"/>
|
||||
<item enabled="true" id="main" input="" value="2.4E7"/>
|
||||
<item enabled="false" id="sub" input="" value="32768.0"/>
|
||||
<item enabled="false" id="hoco" input="" value="16000000"/>
|
||||
<item enabled="false" id="loco" input="" value="240000"/>
|
||||
</option>
|
||||
<option enabled="true" id="fclkdivider" selection="comboBox1-4">
|
||||
<item enabled="false" id="comboBox1-1"/>
|
||||
<item enabled="false" id="comboBox1-2"/>
|
||||
<item enabled="true" id="comboBox1-4"/>
|
||||
<item enabled="true" id="comboBox1-8"/>
|
||||
<item enabled="true" id="comboBox1-16"/>
|
||||
<item enabled="true" id="comboBox1-32"/>
|
||||
<item enabled="true" id="comboBox1-64"/>
|
||||
</option>
|
||||
<option enabled="true" id="iclkdivider" selection="comboBox1-2">
|
||||
<item enabled="false" id="comboBox1-1"/>
|
||||
<item enabled="true" id="comboBox1-2"/>
|
||||
<item enabled="true" id="comboBox1-4"/>
|
||||
<item enabled="true" id="comboBox1-8"/>
|
||||
<item enabled="true" id="comboBox1-16"/>
|
||||
<item enabled="true" id="comboBox1-32"/>
|
||||
<item enabled="true" id="comboBox1-64"/>
|
||||
</option>
|
||||
<option enabled="true" id="pclkadivider" selection="comboBox1-2">
|
||||
<item enabled="false" id="comboBox1-1"/>
|
||||
<item enabled="true" id="comboBox1-2"/>
|
||||
<item enabled="true" id="comboBox1-4"/>
|
||||
<item enabled="true" id="comboBox1-8"/>
|
||||
<item enabled="true" id="comboBox1-16"/>
|
||||
<item enabled="true" id="comboBox1-32"/>
|
||||
<item enabled="true" id="comboBox1-64"/>
|
||||
</option>
|
||||
<option enabled="true" id="pclkbdivider" selection="comboBox1-4">
|
||||
<item enabled="false" id="comboBox1-1"/>
|
||||
<item enabled="false" id="comboBox1-2"/>
|
||||
<item enabled="true" id="comboBox1-4"/>
|
||||
<item enabled="true" id="comboBox1-8"/>
|
||||
<item enabled="true" id="comboBox1-16"/>
|
||||
<item enabled="true" id="comboBox1-32"/>
|
||||
<item enabled="true" id="comboBox1-64"/>
|
||||
</option>
|
||||
<option enabled="true" id="pclkcdivider" selection="comboBox1-4">
|
||||
<item enabled="false" id="comboBox1-1"/>
|
||||
<item enabled="false" id="comboBox1-2"/>
|
||||
<item enabled="true" id="comboBox1-4"/>
|
||||
<item enabled="true" id="comboBox1-8"/>
|
||||
<item enabled="true" id="comboBox1-16"/>
|
||||
<item enabled="true" id="comboBox1-32"/>
|
||||
<item enabled="false" id="comboBox1-64"/>
|
||||
</option>
|
||||
<option enabled="true" id="pclkddivider" selection="comboBox1-4">
|
||||
<item enabled="false" id="comboBox1-1"/>
|
||||
<item enabled="false" id="comboBox1-2"/>
|
||||
<item enabled="true" id="comboBox1-4"/>
|
||||
<item enabled="true" id="comboBox1-8"/>
|
||||
<item enabled="true" id="comboBox1-16"/>
|
||||
<item enabled="true" id="comboBox1-32"/>
|
||||
<item enabled="false" id="comboBox1-64"/>
|
||||
</option>
|
||||
<option enabled="true" id="bckdivider" selection="comboBox1-2">
|
||||
<item enabled="false" id="comboBox1-1"/>
|
||||
<item enabled="true" id="comboBox1-2"/>
|
||||
<item enabled="true" id="comboBox1-4"/>
|
||||
<item enabled="true" id="comboBox1-8"/>
|
||||
<item enabled="true" id="comboBox1-16"/>
|
||||
<item enabled="true" id="comboBox1-32"/>
|
||||
<item enabled="true" id="comboBox1-64"/>
|
||||
</option>
|
||||
<option enabled="true" id="bckselectorenable" selection="uncheck">
|
||||
<item enabled="true" id="check"/>
|
||||
<item enabled="true" id="uncheck"/>
|
||||
</option>
|
||||
<option enabled="false" id="bckselector" selection="comboBox1-2">
|
||||
<item enabled="false" id="comboBox1-1"/>
|
||||
<item enabled="true" id="comboBox1-2"/>
|
||||
</option>
|
||||
<option enabled="true" id="uckenable" selection="check">
|
||||
<item enabled="true" id="check"/>
|
||||
<item enabled="true" id="uncheck"/>
|
||||
</option>
|
||||
<option enabled="true" id="uckdivider" selection="comboBox1-5">
|
||||
<item enabled="false" id="comboBox1-2"/>
|
||||
<item enabled="false" id="comboBox1-3"/>
|
||||
<item enabled="false" id="comboBox1-4"/>
|
||||
<item enabled="true" id="comboBox1-5"/>
|
||||
</option>
|
||||
<option enabled="true" id="fclk" selection="textoutputitem">
|
||||
<item enabled="true" id="textoutputitem" input="" value="60.0"/>
|
||||
</option>
|
||||
<option enabled="true" id="iclk" selection="textoutputitem">
|
||||
<item enabled="true" id="textoutputitem" input="" value="120.0"/>
|
||||
</option>
|
||||
<option enabled="true" id="pclka" selection="textoutputitem">
|
||||
<item enabled="true" id="textoutputitem" input="" value="120.0"/>
|
||||
</option>
|
||||
<option enabled="true" id="pclkb" selection="textoutputitem">
|
||||
<item enabled="true" id="textoutputitem" input="" value="60.0"/>
|
||||
</option>
|
||||
<option enabled="true" id="pclkc" selection="textoutputitem">
|
||||
<item enabled="true" id="textoutputitem" input="" value="60.0"/>
|
||||
</option>
|
||||
<option enabled="true" id="pclkd" selection="textoutputitem">
|
||||
<item enabled="true" id="textoutputitem" input="" value="60.0"/>
|
||||
</option>
|
||||
<option enabled="true" id="bck" selection="textoutputitem">
|
||||
<item enabled="true" id="textoutputitem" input="" value="120.0"/>
|
||||
</option>
|
||||
<option enabled="false" id="bckpin" selection="textoutputitem">
|
||||
<item enabled="true" id="textoutputitem" input="" value="60.0"/>
|
||||
</option>
|
||||
<option enabled="false" id="sdclkenable" selection="uncheck">
|
||||
<item enabled="true" id="check"/>
|
||||
<item enabled="true" id="uncheck"/>
|
||||
</option>
|
||||
<option enabled="false" id="sdclk" selection="textoutputitem">
|
||||
<item enabled="true" id="textoutputitem" input="" value="120.0"/>
|
||||
</option>
|
||||
<option enabled="true" id="uclk" selection="textoutputitem">
|
||||
<item enabled="true" id="textoutputitem" input="" value="48.0"/>
|
||||
</option>
|
||||
<option enabled="false" id="caclclk" selection="textoutputitem">
|
||||
<item enabled="true" id="textoutputitem" input="" value="240"/>
|
||||
</option>
|
||||
<option enabled="false" id="cachclk" selection="textoutputitem">
|
||||
<item enabled="true" id="textoutputitem" input="" value="16"/>
|
||||
</option>
|
||||
<option enabled="false" id="cacsclk" selection="textoutputitem">
|
||||
<item enabled="true" id="textoutputitem" input="" value="32.768"/>
|
||||
</option>
|
||||
<option enabled="false" id="rtcsclkenable" selection="uncheck">
|
||||
<item enabled="true" id="check"/>
|
||||
<item enabled="true" id="uncheck"/>
|
||||
</option>
|
||||
<option enabled="false" id="rtcsclk" selection="textoutputitem">
|
||||
<item enabled="true" id="textoutputitem" input="" value="32.768"/>
|
||||
</option>
|
||||
<option enabled="false" id="cacilclk" selection="textoutputitem">
|
||||
<item enabled="true" id="textoutputitem" input="" value="120"/>
|
||||
</option>
|
||||
<option enabled="true" id="cacmclk" selection="textoutputitem">
|
||||
<item enabled="true" id="textoutputitem" input="" value="24.0"/>
|
||||
</option>
|
||||
</tool>
|
||||
<tool id="Interrupt">
|
||||
<Item currentVect="16" id="BSC_BUSERR" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="18" id="RAM_RAMERR" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="21" id="FCU_FIFERR" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="23" id="FCU_FRDYI" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="26" id="ICU_SWINT2" priority="1" usedState="使用中"/>
|
||||
<Item currentVect="27" id="ICU_SWINT" priority="1" usedState="使用中"/>
|
||||
<Item currentVect="28" id="CMT0_CMI0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="29" id="CMT1_CMI1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="30" id="CMTW0_CMWI0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="31" id="CMTW1_CMWI1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="34" id="USB0_D0FIFO0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="35" id="USB0_D1FIFO0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="38" id="RSPI0_SPRI0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="39" id="RSPI0_SPTI0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="40" id="RSPI1_SPRI1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="41" id="RSPI1_SPTI1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="42" id="QSPI_SPRI" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="43" id="QSPI_SPTI" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="44" id="SDHI_SBFAI" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="45" id="MMCIF_MBFAI" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="50" id="RIIC1_RXI1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="51" id="RIIC1_TXI1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="52" id="RIIC0_RXI0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="53" id="RIIC0_TXI0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="54" id="RIIC2_RXI2" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="55" id="RIIC2_TXI2" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="58" id="SCI0_RXI0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="59" id="SCI0_TXI0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="60" id="SCI1_RXI1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="61" id="SCI1_TXI1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="62" id="SCI2_RXI2" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="63" id="SCI2_TXI2" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="64" id="ICU_IRQ0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="65" id="ICU_IRQ1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="66" id="ICU_IRQ2" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="67" id="ICU_IRQ3" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="68" id="ICU_IRQ4" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="69" id="ICU_IRQ5" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="70" id="ICU_IRQ6" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="71" id="ICU_IRQ7" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="72" id="ICU_IRQ8" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="73" id="ICU_IRQ9" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="74" id="ICU_IRQ10" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="75" id="ICU_IRQ11" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="76" id="ICU_IRQ12" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="77" id="ICU_IRQ13" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="78" id="ICU_IRQ14" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="79" id="ICU_IRQ15" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="80" id="SCI3_RXI3" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="81" id="SCI3_TXI3" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="82" id="SCI4_RXI4" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="83" id="SCI4_TXI4" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="84" id="SCI5_RXI5" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="85" id="SCI5_TXI5" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="86" id="SCI6_RXI6" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="87" id="SCI6_TXI6" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="88" id="LVD1_LVD1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="89" id="LVD2_LVD2" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="90" id="USB0_USBR0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="92" id="RTC_ALM" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="93" id="RTC_PRD" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="95" id="IWDT_IWUNI" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="96" id="WDT_WUNI" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="97" id="PDC_PCDFI" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="98" id="SCI7_RXI7" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="99" id="SCI7_TXI7" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="100" id="SCI8_RXI8" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="101" id="SCI8_TXI8" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="102" id="SCI9_RXI9" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="103" id="SCI9_TXI9" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="104" id="SCI10_RXI10" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="105" id="SCI10_TXI10" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="106" groupchild="<br>1-ERS0<br>2-ERS1" id="BE0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="107" groupchild="<br>1-SDIOI" id="BL2" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="108" id="RSPI2_SPRI2" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="109" id="RSPI2_SPTI2" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="110" groupchild="<br>1-TEI0<br>2-ERI0<br>3-TEI1<br>4-ERI1<br>5-TEI2<br>6-ERI2<br>7-TEI3<br>8-ERI3<br>9-TEI4<br>10-ERI4<br>11-TEI5<br>12-ERI5<br>13-TEI6<br>14-ERI6<br>15-TEI7<br>16-ERI7<br>17-TEI12<br>18-ERI12<br>19-SCIX0<br>20-SCIX1<br>21-SCIX2<br>22-SCIX3<br>23-QSPSSLI<br>24-FERRI<br>25-MENDI<br>26-OVFI<br>27-DOPCI<br>28-PCFEI<br>29-PCERI" id="BL0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="111" groupchild="<br>1-CDETI<br>2-CACI<br>3-SDACI<br>4-CDETIO<br>5-ERRIO<br>6-ACCIO<br>7-OEI1<br>8-OEI2<br>9-OEI3<br>10-OEI4<br>11-TEI0<br>12-EEI0<br>13-TEI2<br>14-EEI2<br>15-S12CMPAI<br>16-S12CMPBI<br>17-S12CMPAI1<br>18-S12CMPBI1<br>19-TEI8<br>20-ERI8<br>21-TEI9<br>22-ERI9<br>23-TEI1<br>24-EEI1" id="BL1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="112" groupchild="<br>1-TEI10<br>2-ERI10<br>3-TEI11<br>4-ERI11<br>5-SPII0<br>6-SPEI0<br>7-SPII1<br>8-SPEI1<br>9-SPII2<br>10-SPEI2" id="AL0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="113" groupchild="<br>1-EINT0<br>2-VPOS<br>3-GR1UF<br>4-GR2UF<br>5-DRW_IRQ" id="AL1" priority="2" usedState="使用中"/>
|
||||
<Item currentVect="114" id="SCI11_RXI11" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="115" id="SCI11_TXI11" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="116" id="SCI12_RXI12" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="117" id="SCI12_TXI12" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="120" id="DMAC_DMAC0I" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="121" id="DMAC_DMAC1I" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="122" id="DMAC_DMAC2I" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="123" id="DMAC_DMAC3I" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="124" id="DMAC_DMAC74I" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="125" id="OST_OSTDI" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="126" id="EXDMAC_EXDMAC0I" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="127" id="EXDMAC_EXDMAC1I" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="128" defaultVect="128" id="CMT2_CMI2" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="129" defaultVect="129" id="CMT3_CMI3" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="130" defaultVect="130" id="TPU0_TGI0A" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="131" defaultVect="131" id="TPU0_TGI0B" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="132" defaultVect="132" id="TPU0_TGI0C" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="133" defaultVect="133" id="TPU0_TGI0D" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="134" defaultVect="134" id="TPU0_TCI0V" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="135" defaultVect="135" id="TPU1_TGI1B" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="136" defaultVect="136" id="TPU1_TCI1V" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="137" defaultVect="137" id="TPU1_TCI1U" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="138" defaultVect="138" id="TPU2_TGI2A" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="139" defaultVect="139" id="TPU2_TGI2B" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="140" defaultVect="140" id="TPU2_TCI2V" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="141" defaultVect="141" id="TPU2_TCI2U" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="142" defaultVect="142" id="TPU3_TGI3A" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="143" defaultVect="143" id="TPU3_TGI3B" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="144" defaultVect="144" id="TPU1_TGI1A" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="145" defaultVect="145" id="TPU3_TGI3C" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="146" defaultVect="146" id="TMR0_CMIA0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="147" defaultVect="147" id="TMR0_CMIB0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="148" defaultVect="148" id="TMR0_OVI0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="149" defaultVect="149" id="TMR1_CMIA1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="150" defaultVect="150" id="TMR1_CMIB1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="151" defaultVect="151" id="TMR1_OVI1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="152" defaultVect="152" id="TMR2_CMIA2" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="153" defaultVect="153" id="TMR2_CMIB2" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="154" defaultVect="154" id="TMR2_OVI2" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="155" defaultVect="155" id="TMR3_CMIA3" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="156" defaultVect="156" id="TMR3_CMIB3" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="157" defaultVect="157" id="TMR3_OVI3" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="158" defaultVect="158" id="TPU3_TGI3D" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="159" defaultVect="159" id="TPU3_TCI3V" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="160" defaultVect="160" id="TPU4_TGI4A" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="161" defaultVect="161" id="TPU4_TGI4B" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="162" defaultVect="162" id="TPU4_TCI4V" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="163" defaultVect="163" id="TPU4_TCI4U" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="164" defaultVect="164" id="TPU5_TGI5A" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="165" defaultVect="165" id="TPU5_TGI5B" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="166" defaultVect="166" id="TPU5_TCI5V" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="167" defaultVect="167" id="TPU5_TCI5U" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="168" defaultVect="168" id="CMTW0_IC0I0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="169" defaultVect="169" id="CMTW0_IC1I0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="170" defaultVect="170" id="CMTW0_OC0I0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="171" defaultVect="171" id="CMTW0_OC1I0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="172" defaultVect="172" id="CMTW1_IC0I1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="173" defaultVect="173" id="CMTW1_IC1I1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="174" defaultVect="174" id="CMTW1_OC0I1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="175" defaultVect="175" id="CMTW1_OC1I1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="176" defaultVect="176" id="RTC_CUP" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="177" defaultVect="177" id="CAN0_RXF0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="178" defaultVect="178" id="CAN0_TXF0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="179" defaultVect="179" id="CAN0_RXM0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="180" defaultVect="180" id="CAN0_TXM0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="181" defaultVect="181" id="CAN1_RXF1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="182" defaultVect="182" id="CAN1_TXF1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="183" defaultVect="183" id="CAN1_RXM1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="184" defaultVect="184" id="CAN1_TXM1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="185" defaultVect="185" id="USB0_USBI0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="186" defaultVect="186" id="S12AD_S12ADI" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="187" defaultVect="187" id="S12AD_S12GBADI" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="188" defaultVect="188" id="S12AD_S12GCADI" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="189" defaultVect="189" id="S12AD1_S12ADI1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="190" defaultVect="190" id="S12AD1_S12GBADI1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="191" defaultVect="191" id="S12AD1_S12GCADI1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="192" defaultVect="192" id="ELC_ELSR18I" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="193" defaultVect="193" id="ELC_ELSR19I" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="194" defaultVect="194" id="TSIP_PROC_BUSY" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="195" defaultVect="195" id="TSIP_ROMOK" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="196" defaultVect="196" id="TSIP_LONG_PLG" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="197" defaultVect="197" id="TSIP_TEST_BUSY" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="198" defaultVect="198" id="TSIP_WRRDY0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="199" defaultVect="199" id="TSIP_WRRDY1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="200" defaultVect="200" id="TSIP_WRRDY4" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="201" defaultVect="201" id="TSIP_RDRDY0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="202" defaultVect="202" id="TSIP_RDRDY1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="203" defaultVect="203" id="TSIP_INTEGRATE_WRRDY" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="204" defaultVect="204" id="TSIP_INTEGRATE_RDRDY" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="205" id="PERIB_INTB205" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="206" id="PERIB_INTB206" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="207" id="PERIB_INTB207" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="208" defaultVect="208" id="MTU1_TGIA1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="209" defaultVect="209" id="MTU0_TGIA0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="210" defaultVect="210" id="MTU0_TGIB0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="211" defaultVect="211" id="MTU0_TGIC0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="212" defaultVect="212" id="MTU0_TGID0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="213" defaultVect="213" id="MTU0_TCIV0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="214" defaultVect="214" id="MTU0_TGIE0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="215" defaultVect="215" id="MTU0_TGIF0" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="216" defaultVect="216" id="MTU1_TGIB1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="217" defaultVect="217" id="MTU1_TCIV1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="218" defaultVect="218" id="MTU1_TCIU1" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="219" defaultVect="219" id="MTU2_TGIA2" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="220" defaultVect="220" id="MTU2_TGIB2" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="221" defaultVect="221" id="MTU2_TCIV2" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="222" defaultVect="222" id="MTU2_TCIU2" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="223" defaultVect="223" id="MTU3_TGIA3" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="224" defaultVect="224" id="MTU3_TGIB3" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="225" defaultVect="225" id="MTU3_TGIC3" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="226" defaultVect="226" id="MTU3_TGID3" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="227" defaultVect="227" id="MTU3_TCIV3" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="228" defaultVect="228" id="MTU4_TGIA4" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="229" defaultVect="229" id="MTU4_TGIB4" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="230" defaultVect="230" id="MTU4_TGIC4" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="231" defaultVect="231" id="MTU4_TGID4" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="232" defaultVect="232" id="MTU4_TCIV4" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="233" defaultVect="233" id="MTU5_TGIU5" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="234" defaultVect="234" id="MTU5_TGIV5" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="235" defaultVect="235" id="MTU5_TGIW5" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="236" defaultVect="236" id="MTU6_TGIA6" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="237" defaultVect="237" id="MTU6_TGIB6" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="238" defaultVect="238" id="MTU6_TGIC6" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="239" defaultVect="239" id="MTU6_TGID6" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="240" defaultVect="240" id="MTU6_TCIV6" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="241" defaultVect="241" id="MTU7_TGIA7" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="242" defaultVect="242" id="MTU7_TGIB7" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="243" defaultVect="243" id="MTU7_TGIC7" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="244" defaultVect="244" id="MTU7_TGID7" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="245" defaultVect="245" id="MTU7_TCIV7" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="246" defaultVect="246" id="MTU8_TGIA8" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="247" defaultVect="247" id="MTU8_TGIB8" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="248" defaultVect="248" id="MTU8_TGIC8" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="249" defaultVect="249" id="MTU8_TGID8" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="250" defaultVect="250" id="MTU8_TCIV8" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="251" defaultVect="251" id="AES_AESRDY" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="252" defaultVect="252" id="AES_AESEND" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="253" id="PERIA_INTA253" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="254" id="PERIA_INTA254" priority="15" usedState="未使用"/>
|
||||
<Item currentVect="255" id="PERIA_INTA255" priority="15" usedState="未使用"/>
|
||||
</tool>
|
||||
<tool id="Pins" version="1.0.1.0">
|
||||
<pinItem allocation="92" comments="" direction="None" isUsedBySoftware="true" locked="false" status="0"/>
|
||||
<pinItem allocation="84" comments="" direction="None" id="ET0_RX_ER" isUsedBySoftware="true" locked="false" status="0"/>
|
||||
<pinItem allocation="81" comments="" direction="None" id="ET0_TX_EN" isUsedBySoftware="true" locked="false" status="0"/>
|
||||
<pinItem allocation="86" comments="" direction="None" id="ET0_RX_DV" isUsedBySoftware="true" locked="false" status="0"/>
|
||||
<pinItem allocation="82" comments="" direction="None" id="ET0_TX_CLK" isUsedBySoftware="true" locked="false" status="0"/>
|
||||
<pinItem allocation="22" comments="" direction="None" id="XTAL" isUsedBySoftware="true" locked="false" status="0"/>
|
||||
<pinItem allocation="74" comments="" direction="None" id="ET0_CRS" isUsedBySoftware="true" locked="false" status="0"/>
|
||||
<pinItem allocation="91" comments="" direction="None" id="ET0_ERXD3" isUsedBySoftware="true" locked="false" status="0"/>
|
||||
<pinItem allocation="89" comments="" direction="None" id="ET0_ERXD2" isUsedBySoftware="true" locked="false" status="0"/>
|
||||
<pinItem allocation="77" comments="" direction="None" id="ET0_ETXD3" isUsedBySoftware="true" locked="false" status="0"/>
|
||||
<pinItem allocation="88" comments="" direction="None" id="ET0_ERXD1" isUsedBySoftware="true" locked="false" status="0"/>
|
||||
<pinItem allocation="78" comments="" direction="None" id="ET0_ETXD2" isUsedBySoftware="true" locked="false" status="0"/>
|
||||
<pinItem allocation="87" comments="" direction="None" id="ET0_ERXD0" isUsedBySoftware="true" locked="false" status="0"/>
|
||||
<pinItem allocation="76" comments="" direction="None" id="ET0_COL" isUsedBySoftware="true" locked="false" status="0"/>
|
||||
<pinItem allocation="79" comments="" direction="None" id="ET0_ETXD1" isUsedBySoftware="true" locked="false" status="0"/>
|
||||
<pinItem allocation="80" comments="" direction="None" id="ET0_ETXD0" isUsedBySoftware="true" locked="false" status="0"/>
|
||||
<pinItem allocation="102" comments="" direction="None" id="ET0_MDIO" isUsedBySoftware="true" locked="false" status="0"/>
|
||||
<pinItem allocation="24" comments="" direction="None" id="EXTAL" isUsedBySoftware="true" locked="false" status="0"/>
|
||||
<pinItem allocation="101" comments="" direction="None" id="ET0_MDC" isUsedBySoftware="true" locked="false" status="0"/>
|
||||
<pinItem allocation="85" comments="" direction="None" id="ET0_RX_CLK" isUsedBySoftware="true" locked="false" status="0"/>
|
||||
</tool>
|
||||
<tool id="Summary" version="1.0.0.0">
|
||||
<option id="com.renesas.smc.code.path" value="src\smc_gen"/>
|
||||
<option id="com.renesas.smc.code.type" value="Normal Folder"/>
|
||||
</tool>
|
||||
<tool id="SWComponent" version="1.0.0.0">
|
||||
<configuration id="03734b5e-26a3-46b6-a61e-dddaaa04287d" inuse="true" name="Config_TMR0">
|
||||
<allocatable id="TMR0">
|
||||
<isocket id="CountingClock" selection="Clock.tool_clock_pclkb" value="6.0E7"/>
|
||||
<option enabled="true" id="CountMode" selection="8bitMode">
|
||||
<item id="8bitMode" input="" vlaue="0"/>
|
||||
<item id="16bitMode" input="" vlaue="0"/>
|
||||
</option>
|
||||
<option enabled="true" id="ClockSourceOption" selection="PCLK">
|
||||
<item id="PCLK" input="" vlaue="0"/>
|
||||
<item id="PCLK2" input="" vlaue="0"/>
|
||||
<item id="PCLK8" input="" vlaue="0"/>
|
||||
<item id="PCLK32" input="" vlaue="0"/>
|
||||
<item id="PCLK64" input="" vlaue="0"/>
|
||||
<item id="PCLK1024" input="" vlaue="0"/>
|
||||
<item id="PCLK8192" input="" vlaue="0"/>
|
||||
<item id="ExternalClockRising" input="" vlaue="0"/>
|
||||
<item id="ExternalClockFalling" input="" vlaue="0"/>
|
||||
<item id="ExternalClockBoth" input="" vlaue="0"/>
|
||||
</option>
|
||||
<option enabled="true" id="CounterClearOption" selection="Disabled">
|
||||
<item id="Disabled" input="" vlaue="0"/>
|
||||
<item id="ClearedMatchA" input="" vlaue="0"/>
|
||||
<item id="ClearedMatchB" input="" vlaue="0"/>
|
||||
<item id="ClearedRisingReset" input="" vlaue="0"/>
|
||||
<item id="ClearedResetHigh" input="" vlaue="0"/>
|
||||
</option>
|
||||
<option enabled="true" id="CompareMatchAValue" selection="CompareMatchAValue">
|
||||
<item id="CompareMatchAValue" input="2" vlaue="119"/>
|
||||
</option>
|
||||
<option enabled="true" id="MatchValueOptionA" selection="us">
|
||||
<item id="ms" input="" vlaue="0"/>
|
||||
<item id="us" input="" vlaue="0"/>
|
||||
<item id="ns" input="" vlaue="0"/>
|
||||
<item id="count" input="" vlaue="0"/>
|
||||
</option>
|
||||
<option enabled="true" id="S12ADEnable" selection="Disable">
|
||||
<item id="Disable" input="" vlaue="0"/>
|
||||
<item id="Enable" input="" vlaue="0"/>
|
||||
</option>
|
||||
<option enabled="true" id="CompareMatchBValue" selection="CompareMatchBValue">
|
||||
<item id="CompareMatchBValue" input="2" vlaue="119"/>
|
||||
</option>
|
||||
<option enabled="true" id="TMO0OutputEnable" selection="Disable">
|
||||
<item id="Disable" input="" vlaue="0"/>
|
||||
<item id="Enable" input="" vlaue="0"/>
|
||||
</option>
|
||||
<option enabled="true" id="OutputMatchA" selection="Nochange">
|
||||
<item id="Nochange" input="" vlaue="0"/>
|
||||
<item id="Output0" input="" vlaue="0"/>
|
||||
<item id="Output1" input="" vlaue="0"/>
|
||||
<item id="ToggleOutput" input="" vlaue="0"/>
|
||||
</option>
|
||||
<option enabled="true" id="OutputMatchB" selection="Nochange">
|
||||
<item id="Nochange" input="" vlaue="0"/>
|
||||
<item id="Output0" input="" vlaue="0"/>
|
||||
<item id="Output1" input="" vlaue="0"/>
|
||||
<item id="ToggleOutput" input="" vlaue="0"/>
|
||||
</option>
|
||||
<option enabled="true" id="TCORAEnable" selection="Disable">
|
||||
<item id="Disable" input="" vlaue="0"/>
|
||||
<item id="Enable" input="" vlaue="0"/>
|
||||
</option>
|
||||
<option enabled="true" id="TCORAOption" selection="Level15">
|
||||
<item id="Level0" input="" vlaue="0"/>
|
||||
<item id="Level1" input="" vlaue="0"/>
|
||||
<item id="Level2" input="" vlaue="0"/>
|
||||
<item id="Level3" input="" vlaue="0"/>
|
||||
<item id="Level4" input="" vlaue="0"/>
|
||||
<item id="Level5" input="" vlaue="0"/>
|
||||
<item id="Level6" input="" vlaue="0"/>
|
||||
<item id="Level7" input="" vlaue="0"/>
|
||||
<item id="Level8" input="" vlaue="0"/>
|
||||
<item id="Level9" input="" vlaue="0"/>
|
||||
<item id="Level10" input="" vlaue="0"/>
|
||||
<item id="Level11" input="" vlaue="0"/>
|
||||
<item id="Level12" input="" vlaue="0"/>
|
||||
<item id="Level13" input="" vlaue="0"/>
|
||||
<item id="Level14" input="" vlaue="0"/>
|
||||
<item id="Level15" input="" vlaue="0"/>
|
||||
</option>
|
||||
<option enabled="true" id="TCORBEnable" selection="Disable">
|
||||
<item id="Disable" input="" vlaue="0"/>
|
||||
<item id="Enable" input="" vlaue="0"/>
|
||||
</option>
|
||||
<option enabled="true" id="TCORBOption" selection="Level15">
|
||||
<item id="Level0" input="" vlaue="0"/>
|
||||
<item id="Level1" input="" vlaue="0"/>
|
||||
<item id="Level2" input="" vlaue="0"/>
|
||||
<item id="Level3" input="" vlaue="0"/>
|
||||
<item id="Level4" input="" vlaue="0"/>
|
||||
<item id="Level5" input="" vlaue="0"/>
|
||||
<item id="Level6" input="" vlaue="0"/>
|
||||
<item id="Level7" input="" vlaue="0"/>
|
||||
<item id="Level8" input="" vlaue="0"/>
|
||||
<item id="Level9" input="" vlaue="0"/>
|
||||
<item id="Level10" input="" vlaue="0"/>
|
||||
<item id="Level11" input="" vlaue="0"/>
|
||||
<item id="Level12" input="" vlaue="0"/>
|
||||
<item id="Level13" input="" vlaue="0"/>
|
||||
<item id="Level14" input="" vlaue="0"/>
|
||||
<item id="Level15" input="" vlaue="0"/>
|
||||
</option>
|
||||
<option enabled="true" id="TCNTEnable" selection="Disable">
|
||||
<item id="Disable" input="" vlaue="0"/>
|
||||
<item id="Enable" input="" vlaue="0"/>
|
||||
</option>
|
||||
<option enabled="true" id="TCNTOption" selection="Level15">
|
||||
<item id="Level0" input="" vlaue="0"/>
|
||||
<item id="Level1" input="" vlaue="0"/>
|
||||
<item id="Level2" input="" vlaue="0"/>
|
||||
<item id="Level3" input="" vlaue="0"/>
|
||||
<item id="Level4" input="" vlaue="0"/>
|
||||
<item id="Level5" input="" vlaue="0"/>
|
||||
<item id="Level6" input="" vlaue="0"/>
|
||||
<item id="Level7" input="" vlaue="0"/>
|
||||
<item id="Level8" input="" vlaue="0"/>
|
||||
<item id="Level9" input="" vlaue="0"/>
|
||||
<item id="Level10" input="" vlaue="0"/>
|
||||
<item id="Level11" input="" vlaue="0"/>
|
||||
<item id="Level12" input="" vlaue="0"/>
|
||||
<item id="Level13" input="" vlaue="0"/>
|
||||
<item id="Level14" input="" vlaue="0"/>
|
||||
<item id="Level15" input="" vlaue="0"/>
|
||||
</option>
|
||||
</allocatable>
|
||||
<component description="本MCU は、8 ビットのカウンタをベースにした2 チャネルの8 ビットタイマ(TMR)を2 ユニット(ユニット0、ユニット1)、合計4 チャネル内蔵しています。" detailDescription="" display="8 ビットタイマ" id="com.renesas.smc.tools.swcomponent.codegenerator.tmr" version="1.9.0"/>
|
||||
<allocator channelLevel0="0" channelLevel1="" channelLevel2="" channelLevel3="" channelLevel4="" channelLevel5="" description="8 ビットタイマ0" display="TMR0" id="com.renesas.smc.tools.swcomponent.codegenerator.tmr.rx651.tmr0" type="">
|
||||
<context>
|
||||
<option enabled="true" id="CountMode" selection="8bitMode">
|
||||
<item enabled="true" id="8bitMode"/>
|
||||
<item enabled="true" id="16bitMode"/>
|
||||
</option>
|
||||
</context>
|
||||
</allocator>
|
||||
<source description="コード生成に対応したコンポーネントは、設定に応じた周辺ドライバのコードを小さなコードサイズで出力します。" display="コード生成" id="com.renesas.smc.tools.swcomponent.codegenerator.source"/>
|
||||
</configuration>
|
||||
<configuration inuse="true" name="r_bsp">
|
||||
<component description="依存モジュール: なし The r_bsp package provides a foundation for code to be built on top of. It provides startup code, iodefines, and MCU information for different boards. There are 2 folders that make up the r_bsp package. The 'mcu' folder contains files that are common to a MCU group. These files provide functionality such as easy register access, CPU functions, and a file named 'mcu_info.h' for each MCU group. The 'mcu_info.h' file has information about the MCU on the board and is configured based on the information given in r_bsp_config.h. The information in 'mcu_info.h' is used to help configure Renesas middleware that uses the r_bsp package. The 'board' folder has a folder with startup code for each supported board. Which MCU and board is chosen is decided by the settings in 'platform.h'. The user can choose which board they are using by uncommenting the include path that applies to their board. For example, if you are using the RSK+RX64M then you would uncomment the #include "./board/generic_rx64m/r_bsp.h" include path. Users are encouraged to add their own boards to the 'board' directory. BSPs are configured by using the r_bsp_config.h file. Each board will have a reference configuration file named r_bsp_config_reference.h. The user should copy this file to their project, rename it to r_bsp_config.h, and use the options inside the file to configure the BSP for their project." detailDescription="Board Support Packages." display="r_bsp" id="r_bsp6.21" version="6.21">
|
||||
<gridItem id="BSP_CFG_USER_STACK_ENABLE" selectedIndex="1"/>
|
||||
<gridItem id="BSP_CFG_USTACK_BYTES" selectedIndex="0x2000"/>
|
||||
<gridItem id="BSP_CFG_ISTACK_BYTES" selectedIndex="0x400"/>
|
||||
<gridItem id="BSP_CFG_HEAP_BYTES" selectedIndex="0xc000"/>
|
||||
<gridItem id="BSP_CFG_IO_LIB_ENABLE" selectedIndex="1"/>
|
||||
<gridItem id="BSP_CFG_USER_CHARGET_ENABLED" selectedIndex="0"/>
|
||||
<gridItem id="BSP_CFG_USER_CHARGET_FUNCTION" selectedIndex="my_sw_charget_function"/>
|
||||
<gridItem id="BSP_CFG_USER_CHARPUT_ENABLED" selectedIndex="0"/>
|
||||
<gridItem id="BSP_CFG_USER_CHARPUT_FUNCTION" selectedIndex="my_sw_charput_function"/>
|
||||
<gridItem id="BSP_CFG_RUN_IN_USER_MODE" selectedIndex="0"/>
|
||||
<gridItem id="BSP_CFG_ID_CODE_LONG_1" selectedIndex="0xFFFFFFFF"/>
|
||||
<gridItem id="BSP_CFG_ID_CODE_LONG_2" selectedIndex="0xFFFFFFFF"/>
|
||||
<gridItem id="BSP_CFG_ID_CODE_LONG_3" selectedIndex="0xFFFFFFFF"/>
|
||||
<gridItem id="BSP_CFG_ID_CODE_LONG_4" selectedIndex="0xFFFFFFFF"/>
|
||||
<gridItem id="BSP_CFG_ROM_CACHE_ENABLE" selectedIndex="1"/>
|
||||
<gridItem id="BSP_CFG_TRUSTED_MODE_FUNCTION" selectedIndex="0xFFFFFFFF"/>
|
||||
<gridItem id="BSP_CFG_FAW_REG_VALUE" selectedIndex="0xFFFFFFFF"/>
|
||||
<gridItem id="BSP_CFG_ROMCODE_REG_VALUE" selectedIndex="0xFFFFFFFF"/>
|
||||
<gridItem id="BSP_CFG_CODE_FLASH_BANK_MODE" selectedIndex="1"/>
|
||||
<gridItem id="BSP_CFG_CODE_FLASH_START_BANK" selectedIndex="0"/>
|
||||
<gridItem id="BSP_CFG_USER_LOCKING_ENABLED" selectedIndex="0"/>
|
||||
<gridItem id="BSP_CFG_USER_LOCKING_TYPE" selectedIndex="bsp_lock_t"/>
|
||||
<gridItem id="BSP_CFG_USER_LOCKING_HW_LOCK_FUNCTION" selectedIndex="my_hw_locking_function"/>
|
||||
<gridItem id="BSP_CFG_USER_LOCKING_HW_UNLOCK_FUNCTION" selectedIndex="my_hw_unlocking_function"/>
|
||||
<gridItem id="BSP_CFG_USER_LOCKING_SW_LOCK_FUNCTION" selectedIndex="my_sw_locking_function"/>
|
||||
<gridItem id="BSP_CFG_USER_LOCKING_SW_UNLOCK_FUNCTION" selectedIndex="my_sw_unlocking_function"/>
|
||||
<gridItem id="BSP_CFG_USER_WARM_START_CALLBACK_PRE_INITC_ENABLED" selectedIndex="0"/>
|
||||
<gridItem id="BSP_CFG_USER_WARM_START_PRE_C_FUNCTION" selectedIndex="my_sw_warmstart_prec_function"/>
|
||||
<gridItem id="BSP_CFG_USER_WARM_START_CALLBACK_POST_INITC_ENABLED" selectedIndex="0"/>
|
||||
<gridItem id="BSP_CFG_USER_WARM_START_POST_C_FUNCTION" selectedIndex="my_sw_warmstart_postc_function"/>
|
||||
<gridItem id="BSP_CFG_PARAM_CHECKING_ENABLE" selectedIndex="1"/>
|
||||
<gridItem id="BSP_CFG_EBMAPCR_1ST_PRIORITY" selectedIndex="0"/>
|
||||
<gridItem id="BSP_CFG_EBMAPCR_2ND_PRIORITY" selectedIndex="3"/>
|
||||
<gridItem id="BSP_CFG_EBMAPCR_3RD_PRIORITY" selectedIndex="1"/>
|
||||
<gridItem id="BSP_CFG_EBMAPCR_4TH_PRIORITY" selectedIndex="2"/>
|
||||
<gridItem id="BSP_CFG_EBMAPCR_5TH_PRIORITY" selectedIndex="4"/>
|
||||
<gridItem id="BSP_CFG_FIT_IPL_MAX" selectedIndex="15"/>
|
||||
<gridItem id="BSP_CFG_SWINT_UNIT1_ENABLE" selectedIndex="1"/>
|
||||
<gridItem id="BSP_CFG_SWINT_UNIT2_ENABLE" selectedIndex="1"/>
|
||||
<gridItem id="BSP_CFG_SWINT_TASK_BUFFER_NUMBER" selectedIndex="8"/>
|
||||
<gridItem id="BSP_CFG_SWINT_IPR_INITIAL_VALUE" selectedIndex="1"/>
|
||||
<gridItem id="BSP_CFG_SCI_UART_TERMINAL_ENABLE" selectedIndex="0"/>
|
||||
<gridItem id="BSP_CFG_SCI_UART_TERMINAL_CHANNEL" selectedIndex="9"/>
|
||||
<gridItem id="BSP_CFG_SCI_UART_TERMINAL_BITRATE" selectedIndex="115200"/>
|
||||
<gridItem id="BSP_CFG_SCI_UART_TERMINAL_INTERRUPT_PRIORITY" selectedIndex="15"/>
|
||||
</component>
|
||||
<source description="Components supporting Firmware Integration Technology" display="Firmware Integration Technology" id="com.renesas.smc.tools.swcomponent.fit.source"/>
|
||||
<source description="Components supporting Firmware Integration Technology" display="Firmware Integration Technology" id="com.renesas.smc.tools.swcomponent.fit.source"/>
|
||||
</configuration>
|
||||
<configuration inuse="true" name="r_cmt_rx">
|
||||
<component description="依存モジュール: r_bsp バージョン 6.20 This module creates a timer tick using a CMT channel based on a frequency input by the user." detailDescription="CMT driver" display="r_cmt_rx" id="r_cmt_rx4.90" version="4.90">
|
||||
<gridItem id="CMT_RX_CFG_IPR" selectedIndex="5"/>
|
||||
</component>
|
||||
<source description="Components supporting Firmware Integration Technology" display="Firmware Integration Technology" id="com.renesas.smc.tools.swcomponent.fit.source"/>
|
||||
<source description="Components supporting Firmware Integration Technology" display="Firmware Integration Technology" id="com.renesas.smc.tools.swcomponent.fit.source"/>
|
||||
</configuration>
|
||||
<configuration inuse="true" name="r_ether_rx">
|
||||
<component description="依存モジュール: r_bsp バージョン 5.52 The Ethernet fit module provides a method to send and receive Ethernet / IEEE802.3 frame using Ethernet controller (ETHERC), Ethernet DMA controller (EDMAC)." detailDescription="Ethernet Driver." display="r_ether_rx" id="r_ether_rx1.21" version="1.21">
|
||||
<gridItem id="CLKOUT25M" selectedIndex="0"/>
|
||||
<gridItem id="ET0_TX_CLK" selectedIndex="1"/>
|
||||
<gridItem id="ET0_RX_CLK" selectedIndex="1"/>
|
||||
<gridItem id="ET0_TX_EN" selectedIndex="1"/>
|
||||
<gridItem id="ET0_ETXD3" selectedIndex="1"/>
|
||||
<gridItem id="ET0_ETXD2" selectedIndex="1"/>
|
||||
<gridItem id="ET0_ETXD1" selectedIndex="1"/>
|
||||
<gridItem id="ET0_ETXD0" selectedIndex="1"/>
|
||||
<gridItem id="ET0_TX_ER" selectedIndex="0"/>
|
||||
<gridItem id="ET0_RX_DV" selectedIndex="1"/>
|
||||
<gridItem id="ET0_ERXD3" selectedIndex="1"/>
|
||||
<gridItem id="ET0_ERXD2" selectedIndex="1"/>
|
||||
<gridItem id="ET0_ERXD1" selectedIndex="1"/>
|
||||
<gridItem id="ET0_ERXD0" selectedIndex="1"/>
|
||||
<gridItem id="ET0_RX_ER" selectedIndex="1"/>
|
||||
<gridItem id="ET0_CRS" selectedIndex="1"/>
|
||||
<gridItem id="ET0_COL" selectedIndex="1"/>
|
||||
<gridItem id="ET0_MDC" selectedIndex="1"/>
|
||||
<gridItem id="ET0_MDIO" selectedIndex="1"/>
|
||||
<gridItem id="PMGI0_MDC" selectedIndex="0"/>
|
||||
<gridItem id="PMGI0_MDIO" selectedIndex="0"/>
|
||||
<gridItem id="ET0_LINKSTA" selectedIndex="0"/>
|
||||
<gridItem id="ET0_EXOUT" selectedIndex="0"/>
|
||||
<gridItem id="ET0_WOL" selectedIndex="0"/>
|
||||
<gridItem id="ETHERC0_MII" selectedIndex="1"/>
|
||||
<gridItem id="CLKOUT25M" selectedIndex="0"/>
|
||||
<gridItem id="REF50CK0" selectedIndex="0"/>
|
||||
<gridItem id="RMII0_TXD_EN" selectedIndex="0"/>
|
||||
<gridItem id="RMII0_TXD1" selectedIndex="0"/>
|
||||
<gridItem id="RMII0_TXD0" selectedIndex="0"/>
|
||||
<gridItem id="RMII0_RXD1" selectedIndex="0"/>
|
||||
<gridItem id="RMII0_RXD0" selectedIndex="0"/>
|
||||
<gridItem id="RMII0_RX_ER" selectedIndex="0"/>
|
||||
<gridItem id="RMII0_CRS_DV" selectedIndex="0"/>
|
||||
<gridItem id="ET0_MDC" selectedIndex="1"/>
|
||||
<gridItem id="ET0_MDIO" selectedIndex="1"/>
|
||||
<gridItem id="PMGI0_MDC" selectedIndex="0"/>
|
||||
<gridItem id="PMGI0_MDIO" selectedIndex="0"/>
|
||||
<gridItem id="ET0_LINKSTA" selectedIndex="0"/>
|
||||
<gridItem id="ET0_EXOUT" selectedIndex="0"/>
|
||||
<gridItem id="ET0_WOL" selectedIndex="0"/>
|
||||
<gridItem id="ETHERC0_RMII" selectedIndex="0"/>
|
||||
<gridItem id="CLKOUT25M" selectedIndex="0"/>
|
||||
<gridItem id="ET1_TX_CLK" selectedIndex="0"/>
|
||||
<gridItem id="ET1_RX_CLK" selectedIndex="0"/>
|
||||
<gridItem id="ET1_TX_EN" selectedIndex="0"/>
|
||||
<gridItem id="ET1_ETXD3" selectedIndex="0"/>
|
||||
<gridItem id="ET1_ETXD2" selectedIndex="0"/>
|
||||
<gridItem id="ET1_ETXD1" selectedIndex="0"/>
|
||||
<gridItem id="ET1_ETXD0" selectedIndex="0"/>
|
||||
<gridItem id="ET1_TX_ER" selectedIndex="0"/>
|
||||
<gridItem id="ET1_RX_DV" selectedIndex="0"/>
|
||||
<gridItem id="ET1_ERXD3" selectedIndex="0"/>
|
||||
<gridItem id="ET1_ERXD2" selectedIndex="0"/>
|
||||
<gridItem id="ET1_ERXD1" selectedIndex="0"/>
|
||||
<gridItem id="ET1_ERXD0" selectedIndex="0"/>
|
||||
<gridItem id="ET1_RX_ER" selectedIndex="0"/>
|
||||
<gridItem id="ET1_CRS" selectedIndex="0"/>
|
||||
<gridItem id="ET1_COL" selectedIndex="0"/>
|
||||
<gridItem id="ET1_MDC" selectedIndex="0"/>
|
||||
<gridItem id="ET1_MDIO" selectedIndex="0"/>
|
||||
<gridItem id="PMGI1_MDC" selectedIndex="0"/>
|
||||
<gridItem id="PMGI1_MDIO" selectedIndex="0"/>
|
||||
<gridItem id="ET1_LINKSTA" selectedIndex="0"/>
|
||||
<gridItem id="ET1_EXOUT" selectedIndex="0"/>
|
||||
<gridItem id="ET1_WOL" selectedIndex="0"/>
|
||||
<gridItem id="ETHERC1_MII" selectedIndex="0"/>
|
||||
<gridItem id="CLKOUT25M" selectedIndex="0"/>
|
||||
<gridItem id="REF50CK1" selectedIndex="0"/>
|
||||
<gridItem id="RMII1_TXD_EN" selectedIndex="0"/>
|
||||
<gridItem id="RMII1_TXD1" selectedIndex="0"/>
|
||||
<gridItem id="RMII1_TXD0" selectedIndex="0"/>
|
||||
<gridItem id="RMII1_RXD1" selectedIndex="0"/>
|
||||
<gridItem id="RMII1_RXD0" selectedIndex="0"/>
|
||||
<gridItem id="RMII1_RX_ER" selectedIndex="0"/>
|
||||
<gridItem id="RMII1_CRS_DV" selectedIndex="0"/>
|
||||
<gridItem id="ET1_MDC" selectedIndex="0"/>
|
||||
<gridItem id="ET1_MDIO" selectedIndex="0"/>
|
||||
<gridItem id="PMGI1_MDC" selectedIndex="0"/>
|
||||
<gridItem id="PMGI1_MDIO" selectedIndex="0"/>
|
||||
<gridItem id="ET1_LINKSTA" selectedIndex="0"/>
|
||||
<gridItem id="ET1_EXOUT" selectedIndex="0"/>
|
||||
<gridItem id="ET1_WOL" selectedIndex="0"/>
|
||||
<gridItem id="ETHERC1_RMII" selectedIndex="0"/>
|
||||
<gridItem id="ETHER_CFG_MODE_SEL" selectedIndex="0"/>
|
||||
<gridItem id="ETHER_CFG_CH0_PHY_ADDRESS" selectedIndex="0"/>
|
||||
<gridItem id="ETHER_CFG_CH1_PHY_ADDRESS" selectedIndex="1"/>
|
||||
<gridItem id="ETHER_CFG_EMAC_RX_DESCRIPTORS" selectedIndex="1"/>
|
||||
<gridItem id="ETHER_CFG_EMAC_TX_DESCRIPTORS" selectedIndex="1"/>
|
||||
<gridItem id="ETHER_CFG_BUFSIZE" selectedIndex="1536"/>
|
||||
<gridItem id="ETHER_CFG_AL1_INT_PRIORTY" selectedIndex="1"/>
|
||||
<gridItem id="ETHER_CFG_CH0_PHY_ACCESS" selectedIndex="0"/>
|
||||
<gridItem id="ETHER_CFG_CH1_PHY_ACCESS" selectedIndex="1"/>
|
||||
<gridItem id="ETHER_CFG_PHY_MII_WAIT" selectedIndex="8"/>
|
||||
<gridItem id="ETHER_CFG_PHY_DELAY_RESET" selectedIndex="0x00020000L"/>
|
||||
<gridItem id="ETHER_CFG_LINK_PRESENT" selectedIndex="0"/>
|
||||
<gridItem id="ETHER_CFG_USE_LINKSTA" selectedIndex="0"/>
|
||||
<gridItem id="ETHER_CFG_USE_PHY_KSZ8041NL" selectedIndex="0"/>
|
||||
<gridItem id="ETHER_CFG_NON_BLOCKING" selectedIndex="0"/>
|
||||
<gridItem id="ETHER_CFG_PMGI_CLOCK" selectedIndex="2500000"/>
|
||||
<gridItem id="ETHER_CFG_PMGI_ENABLE_PREAMBLE" selectedIndex="0"/>
|
||||
<gridItem id="ETHER_CFG_PMGI_HOLD_TIME" selectedIndex="0"/>
|
||||
<gridItem id="ETHER_CFG_PMGI_CAPTURE_TIME" selectedIndex="0"/>
|
||||
<gridItem id="ETHER_CFG_PMGI_INT_PRIORTY" selectedIndex="1"/>
|
||||
</component>
|
||||
<source description="Components supporting Firmware Integration Technology" display="Firmware Integration Technology" id="com.renesas.smc.tools.swcomponent.fit.source"/>
|
||||
<source description="Components supporting Firmware Integration Technology" display="Firmware Integration Technology" id="com.renesas.smc.tools.swcomponent.fit.source"/>
|
||||
</configuration>
|
||||
<configuration inuse="true" name="r_sys_time_rx">
|
||||
<component description="依存モジュール: r_bsp バージョン 5.20 依存モジュール: r_cmt_rx バージョン 4.00 Generic system timer for RX MCUs using CMT module." detailDescription="Generic system timer for RX MCUs using CMT module." display="r_sys_time_rx" id="r_sys_time_rx1.01" version="1.01"/>
|
||||
<source description="Components supporting Firmware Integration Technology" display="Firmware Integration Technology" id="com.renesas.smc.tools.swcomponent.fit.source"/>
|
||||
<source description="Components supporting Firmware Integration Technology" display="Firmware Integration Technology" id="com.renesas.smc.tools.swcomponent.fit.source"/>
|
||||
</configuration>
|
||||
<configuration inuse="true" name="r_t4_driver_rx">
|
||||
<component description="依存モジュール: r_bsp バージョン 5.61 依存モジュール: r_ether_rx バージョン 1.21 依存モジュール: r_sys_time_rx バージョン 1.01 依存モジュール: r_t4_rx バージョン 2.10 Convert the TCP/IP(T4) - RX Ethernet Driver Interface." detailDescription="TCP/IP protocol stack [M3S-T4-Tiny] - RX Ethernet Driver Interface" display="r_t4_driver_rx" id="r_t4_driver_rx1.09" version="1.09"/>
|
||||
<source description="Components supporting Firmware Integration Technology" display="Firmware Integration Technology" id="com.renesas.smc.tools.swcomponent.fit.source"/>
|
||||
<source description="Components supporting Firmware Integration Technology" display="Firmware Integration Technology" id="com.renesas.smc.tools.swcomponent.fit.source"/>
|
||||
</configuration>
|
||||
<configuration inuse="true" name="r_t4_rx">
|
||||
<component description="依存モジュール: r_t4_driver_rx バージョン 1.09 T4 is TCP/IP protocol stack that has small footprint for Renesas MCUs." detailDescription="TCP/IP protocol stack [M3S-T4-Tiny] for Renesas MCUs" display="r_t4_rx" id="r_t4_rx2.10" version="2.10">
|
||||
<gridItem id="T4_CFG_SYSTEM_CHANNEL_NUMBER" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_SYSTEM_DHCP" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_FIXED_IP_ADDRESS_CH0" selectedIndex="192,168,1,34"/>
|
||||
<gridItem id="T4_CFG_FIXED_SABNET_MASK_CH0" selectedIndex="255,255,255,0"/>
|
||||
<gridItem id="T4_CFG_FIXED_GATEWAY_ADDRESS_CH0" selectedIndex="0,0,0,0"/>
|
||||
<gridItem id="T4_CFG_FIXED_IP_ADDRESS_CH1" selectedIndex="192,168,0,10"/>
|
||||
<gridItem id="T4_CFG_FIXED_SABNET_MASK_CH1" selectedIndex="255,255,255,0"/>
|
||||
<gridItem id="T4_CFG_FIXED_GATEWAY_ADDRESS_CH1" selectedIndex="0,0,0,0"/>
|
||||
<gridItem id="T4_CFG_ETHER_CH0_MAC_ADDRESS" selectedIndex="0x74,0x90,0x50,0x10,0xFE,0x77"/>
|
||||
<gridItem id="T4_CFG_ETHER_CH1_MAC_ADDRESS" selectedIndex="0x74,0x90,0x50,0x00,0x79,0x79"/>
|
||||
<gridItem id="T4_CFG_SYSTEM_CALLBACK_FUNCTION_USE" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_SYSTEM_CALLBACK_FUNCTION_NAME_TMP" selectedIndex="system_callback"/>
|
||||
<gridItem id="T4_CFG_TCP_REPID1_PORT_NUMBER" selectedIndex="1024"/>
|
||||
<gridItem id="T4_CFG_TCP_REPID2_PORT_NUMBER" selectedIndex="1025"/>
|
||||
<gridItem id="T4_CFG_TCP_REPID3_PORT_NUMBER" selectedIndex="1026"/>
|
||||
<gridItem id="T4_CFG_TCP_REPID4_PORT_NUMBER" selectedIndex="1027"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID1_CHANNEL" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID1_RECEIVE_WINDOW_SIZE" selectedIndex="1460"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID1_CALLBACK_FUNCTION_USE" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID1_CALLBACK_FUNCTION_NAME_TMP" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID1_KEEPALIVE_ENABLE" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID2_CHANNEL" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID2_RECEIVE_WINDOW_SIZE" selectedIndex="1460"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID2_CALLBACK_FUNCTION_USE" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID2_CALLBACK_FUNCTION_NAME_TMP" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID2_KEEPALIVE_ENABLE" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID3_CHANNEL" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID3_RECEIVE_WINDOW_SIZE" selectedIndex="1460"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID3_CALLBACK_FUNCTION_USE" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID3_CALLBACK_FUNCTION_NAME_TMP" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID3_KEEPALIVE_ENABLE" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID4_CHANNEL" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID4_RECEIVE_WINDOW_SIZE" selectedIndex="1460"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID4_CALLBACK_FUNCTION_USE" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID4_CALLBACK_FUNCTION_NAME_TMP" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID4_KEEPALIVE_ENABLE" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID5_CHANNEL" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID5_RECEIVE_WINDOW_SIZE" selectedIndex="1460"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID5_CALLBACK_FUNCTION_USE" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID5_CALLBACK_FUNCTION_NAME_TMP" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID5_KEEPALIVE_ENABLE" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID6_CHANNEL" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID6_RECEIVE_WINDOW_SIZE" selectedIndex="1460"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID6_CALLBACK_FUNCTION_USE" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID6_CALLBACK_FUNCTION_NAME_TMP" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_TCP_CEPID6_KEEPALIVE_ENABLE" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_TCP_MSS" selectedIndex="1460"/>
|
||||
<gridItem id="T4_CFG_TCP_2MSL_TIME" selectedIndex="60"/>
|
||||
<gridItem id="T4_CFG_TCP_MAX_TIMEOUT_PERIOD" selectedIndex="600"/>
|
||||
<gridItem id="T4_CFG_TCP_DIVIDE_SENDING_PACKET" selectedIndex="1"/>
|
||||
<gridItem id="T4_CFG_TCP_KEEPALIVE_START" selectedIndex="7200"/>
|
||||
<gridItem id="T4_CFG_TCP_KEEPALIVE_INTERVAL" selectedIndex="10"/>
|
||||
<gridItem id="T4_CFG_TCP_KEEPALIVE_COUNT" selectedIndex="10"/>
|
||||
<gridItem id="T4_CFG_UDP_CEPID1_CHANNEL" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_UDP_CEPID1_PORT_NUMBER" selectedIndex="1365"/>
|
||||
<gridItem id="T4_CFG_UDP_CEPID1_CALLBACK_FUNCTION_USE" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_UDP_CEPID1_CALLBACK_FUNCTION_NAME_TMP" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_UDP_CEPID2_CHANNEL" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_UDP_CEPID2_PORT_NUMBER" selectedIndex="1366"/>
|
||||
<gridItem id="T4_CFG_UDP_CEPID2_CALLBACK_FUNCTION_USE" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_UDP_CEPID2_CALLBACK_FUNCTION_NAME_TMP" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_UDP_CEPID3_CHANNEL" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_UDP_CEPID3_PORT_NUMBER" selectedIndex="1367"/>
|
||||
<gridItem id="T4_CFG_UDP_CEPID3_CALLBACK_FUNCTION_USE" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_UDP_CEPID3_CALLBACK_FUNCTION_NAME_TMP" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_UDP_CEPID4_CHANNEL" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_UDP_CEPID4_PORT_NUMBER" selectedIndex="1368"/>
|
||||
<gridItem id="T4_CFG_UDP_CEPID4_CALLBACK_FUNCTION_USE" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_UDP_CEPID4_CALLBACK_FUNCTION_NAME_TMP" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_UDP_CEPID5_CHANNEL" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_UDP_CEPID5_PORT_NUMBER" selectedIndex="1369"/>
|
||||
<gridItem id="T4_CFG_UDP_CEPID5_CALLBACK_FUNCTION_USE" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_UDP_CEPID5_CALLBACK_FUNCTION_NAME_TMP" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_UDP_CEPID6_CHANNEL" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_UDP_CEPID6_PORT_NUMBER" selectedIndex="1370"/>
|
||||
<gridItem id="T4_CFG_UDP_CEPID6_CALLBACK_FUNCTION_USE" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_UDP_CEPID6_CALLBACK_FUNCTION_NAME_TMP" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_UDP_MULTICAST_TTL" selectedIndex="1"/>
|
||||
<gridItem id="T4_CFG_UDP_BEHAVIOR_OF_RECEIVED_ZERO_CHECKSUM" selectedIndex="0"/>
|
||||
<gridItem id="T4_CFG_IP_ARP_CACHE_TABLE_COUNT" selectedIndex="3"/>
|
||||
</component>
|
||||
<source description="Components supporting Firmware Integration Technology" display="Firmware Integration Technology" id="com.renesas.smc.tools.swcomponent.fit.source"/>
|
||||
<source description="Components supporting Firmware Integration Technology" display="Firmware Integration Technology" id="com.renesas.smc.tools.swcomponent.fit.source"/>
|
||||
</configuration>
|
||||
<configuration inuse="true" name="r_tsip_rx">
|
||||
<component description="依存モジュール: r_bsp バージョン 6.11 Support functions: AES, GCM, CCM, CMAC, SHA, MD5, Triple-DES, ARC4, RSA, ECC, Random number generate, Key management, secure boot/secure firmware update. The ".l" in version number means library version." detailDescription="TSIP(Trusted Secure IP) driver." display="r_tsip_rx" id="r_tsip_rx1.14.l" version="1.14.l"/>
|
||||
<source description="Components supporting Firmware Integration Technology" display="Firmware Integration Technology" id="com.renesas.smc.tools.swcomponent.fit.source"/>
|
||||
<source description="Components supporting Firmware Integration Technology" display="Firmware Integration Technology" id="com.renesas.smc.tools.swcomponent.fit.source"/>
|
||||
</configuration>
|
||||
</tool>
|
||||
<tool id="System">
|
||||
<section id="ocd">
|
||||
<option enabled="true" id="debugIF" selection="unused">
|
||||
<item enabled="true" id="unused"/>
|
||||
<item enabled="true" id="fine"/>
|
||||
<item enabled="true" id="jtag"/>
|
||||
<item enabled="true" id="jtagTrace"/>
|
||||
</option>
|
||||
</section>
|
||||
</tool>
|
||||
</smc>
|
||||
@@ -1,361 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
|
||||
<storageModule moduleId="org.eclipse.cdt.core.settings">
|
||||
<cconfiguration id="com.renesas.cdt.managedbuild.renesas.ccrx.hardwaredebug.configuration.1378385971">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.renesas.cdt.managedbuild.renesas.ccrx.hardwaredebug.configuration.1378385971" moduleId="org.eclipse.cdt.core.settings" name="HardwareDebug">
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="org.eclipse.cdt.core.PE" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.renesas.cdt.managedbuild.renesas.core.RenesasCompilerAssemblerErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.renesas.cdt.managedbuild.core.buildRunnerErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="com.renesas.cdt.managedbuild.core.toolchainInfo">
|
||||
<option id="toolchain.id" value="Renesas_RXC"/>
|
||||
<option id="toolchain.version" value="v3.03.00"/>
|
||||
<option id="toolchain.enable" value="true"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="abs" artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug" description="Debug on hardware" errorParsers="org.eclipse.cdt.core.GmakeErrorParser;com.renesas.cdt.managedbuild.renesas.core.RenesasCompilerAssemblerErrorParser;com.renesas.cdt.managedbuild.core.buildRunnerErrorParser" id="com.renesas.cdt.managedbuild.renesas.ccrx.hardwaredebug.configuration.1378385971" name="HardwareDebug" parent="com.renesas.cdt.managedbuild.renesas.ccrx.hardwaredebug.configuration">
|
||||
<folderInfo id="com.renesas.cdt.managedbuild.renesas.ccrx.hardwaredebug.configuration.1378385971." name="/" resourcePath="">
|
||||
<toolChain id="com.renesas.cdt.managedbuild.renesas.ccrx.hardwaredebug.toolChain.1637393351" name="Renesas CCRX Toolchain" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.hardwaredebug.toolChain">
|
||||
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF;org.eclipse.cdt.core.PE" id="com.renesas.cdt.managedbuild.renesas.ccrx.base.targetPlatform.808325012" osList="win32" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.targetPlatform"/>
|
||||
<builder buildPath="${workspace_loc:/test}/HardwareDebug" id="com.renesas.cdt.managedbuild.renesas.ccrx.base.builder.65531188" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="CCRX Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.builder"/>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.dsp.1710373085" name="DSP Assembler" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.dsp">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.noDebugInfo.390598726" name="デバッグ情報を出力する (-no_debug_info)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.noDebugInfo" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian.2145260692" name="出力するデータ値のエンディアン (-littleEndianData)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian.big" valueType="enumerated"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.common.385785132" name="Common" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.common">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.968417281" name="命令セット・アーキテクチャ (-isa)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.rxv2" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.rxArchitecture.1826562770" name="RX Architecture" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.rxArchitecture" useByScannerDiscovery="false" value="rxv2" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns.2015650112" name="浮動小数点演算命令を使用する (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns.yes" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasFpu.1065149525" name="Has FPU" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasFpu" useByScannerDiscovery="false" value="TRUE" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceName.1439501151" name="Device Name" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceName" useByScannerDiscovery="false" value="R5F565NEHxFC" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceHistory.141103170" name="Device history" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceHistory" useByScannerDiscovery="false" value="R5F572NNHxFB;R5F565NEHxFC" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isaHistory.13818145" name="ISA history" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isaHistory" useByScannerDiscovery="false" value="non_init;com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.rxv2;com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.dependMicrocontroller;com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.rxv2;com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.rxv1;com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.rxv3;com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.dependMicrocontroller;com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.rxv3;com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.dependMicrocontroller;com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.rxv3;com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.rxv2" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceCommand.624156745" name="Device Command" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceCommand" useByScannerDiscovery="false" value="R5F565NE" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.checkRtos.198501700" name="Check RTOS" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.checkRtos" useByScannerDiscovery="false" value="unusedRtos" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasDsp.898504242" name="Has DSP" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasDsp" useByScannerDiscovery="false" value="false" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceFamily.2015079094" name="Device Family" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceFamily" useByScannerDiscovery="false" value="RX65N" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.roundTo.534655334" name="浮動小数点定数演算の丸め方式 (-round)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.roundTo" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.roundTo.zero" valueType="enumerated"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.compiler.220371913" name="Compiler" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.compiler">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu.1764475068" name="浮動小数点演算命令を使用する (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu.yes" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.include.477145288" name="インクルード・ファイルを検索するフォルダ (-include)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.include" useByScannerDiscovery="false" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value="${TCINSTALL}/include"/>
|
||||
<listOptionValue builtIn="false" value=""${ProjDirPath}/../common""/>
|
||||
<listOptionValue builtIn="false" value=""${ProjDirPath}/../../../../../../""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/Config_TMR0}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_bsp}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_config}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_tsip_rx}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_cmt_rx}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_cmt_rx/src}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_t4_driver_rx}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_t4_driver_rx/src}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_t4_rx}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_t4_rx/lib}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_ether_rx}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_sys_time_rx}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_sys_time_rx/src}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/general}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_pincfg}""/>
|
||||
<listOptionValue builtIn="false" value="${ProjDirPath}/generate"/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.define.511269805" name="プリプロセッサ・マクロの定義 (-define)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.define" useByScannerDiscovery="false" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="DEBUG_CONSOLE"/>
|
||||
<listOptionValue builtIn="false" value="WOLFSSL_USER_SETTINGS"/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userBefore.165256012" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userAfter.850666858" name="追加するオプション(すべての指定オプションの後ろに追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC.897672730" name="Cソース (-lang)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC.c99" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode.862144636" name="プログラムの文字コード (-euc/-sjis/-latin1/-utf8/-big5/-gb2312)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode.utf8" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode.48690443" name="出力する文字コード (-outcode)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode.utf8" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.optimize.1557621233" name="最適化レベル (-optimize)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.optimize" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.optimize.level0" valueType="enumerated"/>
|
||||
<inputType id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gcc.inputType.1722484558" name="Compiler Input C" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gcc.inputType"/>
|
||||
<inputType id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gpp.inputType.709788007" name="Compiler Input CPP" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gpp.inputType"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.assembler.1564576801" name="Assembler" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.assembler">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userBefore.1555827005" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userAfter.912893655" name="追加するオプション(すべての指定オプションの後ろに追加) " superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode.864537553" name="プログラムの文字コード (-euc/-sjis/-latin1/-utf8/-big5/-gb2312)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode.utf8" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.include.1616986135" name="インクルード・ファイルを検索するフォルダ (-include)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.include" useByScannerDiscovery="false" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/general}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_pincfg}""/>
|
||||
</option>
|
||||
<inputType id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.inputType.502444415" name="Assembler InputType" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.inputType"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.linker.1333901009" name="Linker" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.linker">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.rom.2020069967" name="ROMからRAMへマップするセクション (-rom)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.rom" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="D=R"/>
|
||||
<listOptionValue builtIn="false" value="D_1=R_1"/>
|
||||
<listOptionValue builtIn="false" value="D_2=R_2"/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.linkerSection.2043161263" name="セクション (-start)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.linkerSection" useByScannerDiscovery="false" value="SU,SI,B_1,R_1,B_2,R_2,B,R/04,B_ETHERNET_BUFFERS_1,B_RX_DESC_1,B_TX_DESC_1/020000,C_1,C_2,C,C$*,D*,W*,L,P/0FFE00000,EXCEPTVECT/0FFFFFF80,RESETVECT/0FFFFFFFC" valueType="string"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userBefore.1452234640" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userAfter.1724535779" name="追加するオプション(すべての指定オプションの後ろに追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.vect.47410515" name="可変ベクタテーブルのアドレス未設定ベクタ番号に指定するアドレス (-vect)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.vect" useByScannerDiscovery="false" value="_undefined_interrupt_source_isr" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.checkSection.239094904" name="セクションの割り付けアドレスをチェックする (-cpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.checkSection" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType.1942768497" name="アドレス範囲指定方法 (-cpu(アドレス範囲指定方法))" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType.autoSpecify" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.noneLinkageOrderList.1237940973" name="(リンク順序のリスト) (-input/-library/-binary)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.noneLinkageOrderList" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="".\src\benchmark.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src\key_data.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/Config_TMR0\Config_TMR0.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/Config_TMR0\Config_TMR0_user.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/general\r_cg_hardware_setup.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/general\r_smc_cgc.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/general\r_smc_cgc_user.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/general\r_smc_interrupt.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_bsp/board/generic_rx65n\hwsetup.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_bsp/mcu/all\dbsct.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_bsp/mcu/all\lowlvl.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_bsp/mcu/all\lowsrc.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_bsp/mcu/all\mcu_locks.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_bsp/mcu/all\r_bsp_common.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_bsp/mcu/all\r_bsp_cpu.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_bsp/mcu/all\r_bsp_interrupts.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_bsp/mcu/all\r_bsp_locking.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_bsp/mcu/all\r_bsp_mcu_startup.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_bsp/mcu/all\r_bsp_software_interrupt.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_bsp/mcu/all\r_rx_intrinsic_functions.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_bsp/mcu/all\resetprg.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_bsp/mcu/all\sbrk.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_bsp/mcu/rx65n\mcu_clocks.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_bsp/mcu/rx65n\mcu_init.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_bsp/mcu/rx65n\mcu_interrupts.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_bsp/mcu/rx65n\mcu_mapped_interrupts.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_bsp/mcu/rx65n\vecttbl.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_cmt_rx/src\r_cmt_rx.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_ether_rx/src/phy\phy.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_ether_rx/src\r_ether_rx.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_ether_rx/src/targets/rx65n\r_ether_setting_rx65n.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_pincfg\Pin.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_pincfg\r_ether_rx_pinset.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_sys_time_rx/src\r_sys_time_rx.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_t4_driver_rx/src\ether_callback.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_t4_driver_rx/src\t4_driver.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_t4_driver_rx/src\timer.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src/smc_gen/r_t4_rx/src\config_tcpudp.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src\test.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src\test_main.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src\wolf_client.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src\wolf_server.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\src\wolfssl_dummy.obj""/>
|
||||
<listOptionValue builtIn="false" value="".\test.lib""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_t4_rx/lib/ccrx/T4_Library_ether_ccrx_rxv1_little_debug.lib}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_tsip_rx/lib/ccrx/r_tsip_rx65n_little.lib}""/>
|
||||
<listOptionValue builtIn="false" value=""${ProjDirPath}/../wolfssl/Debug/wolfssl.lib""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.inputFile.1438206933" name="リンクするリロケータブル・ファイル、ライブラリ・ファイルおよびバイナリ・ファイル (-input/-library/-binary)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.inputFile" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_t4_rx/lib/ccrx/T4_Library_ether_ccrx_rxv1_little_debug.lib}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_tsip_rx/lib/ccrx/r_tsip_rx65n_little.lib}""/>
|
||||
<listOptionValue builtIn="false" value=""${ProjDirPath}/../wolfssl/Debug/wolfssl.lib""/>
|
||||
</option>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.librarian.1723543812" name="Library Generator" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.librarian">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu.1397073307" name="浮動小数点演算命令を使用する (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu.yes" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userBefore.1773409552" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userAfter.946493093" name="追加するオプション(すべての指定オプションの後ろに追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang.338617005" name="C言語標準ライブラリ関数の構成 (-lang)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang.c99" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.headCtype.1293885198" name="ctype.h(C89/C99):文字操作用ライブラリ (-head=ctype)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.headCtype" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.optimize.832008177" name="最適化レベル (-optimize)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.optimize" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.optimize.level0" valueType="enumerated"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.converter.1917108303" name="Converter" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.converter">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userBefore.109845398" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userAfter.289006348" name="追加するオプション(すべての指定オプションの後ろに追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOfOutputFile.172365501" name="出力ファイル形式 (-form)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOfOutputFile" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOFOutputFile.none" valueType="enumerated"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.rtosConfig.318974000" name="RTOS Configurator" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.rtosConfig"/>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
<sourceEntries>
|
||||
<entry excluding="ether" flags="VALUE_WORKSPACE_PATH" kind="sourcePath" name="src"/>
|
||||
</sourceEntries>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
<storageModule moduleId="com.renesas.cdt.managedbuild.core.boardInfo"/>
|
||||
</cconfiguration>
|
||||
<cconfiguration id="com.renesas.cdt.managedbuild.renesas.ccrx.debug.configuration.992474000">
|
||||
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.renesas.cdt.managedbuild.renesas.ccrx.debug.configuration.992474000" moduleId="org.eclipse.cdt.core.settings" name="Debug">
|
||||
<externalSettings/>
|
||||
<extensions>
|
||||
<extension id="org.eclipse.cdt.core.PE" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
|
||||
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.renesas.cdt.managedbuild.renesas.core.RenesasCompilerAssemblerErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
<extension id="com.renesas.cdt.managedbuild.core.buildRunnerErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
|
||||
</extensions>
|
||||
</storageModule>
|
||||
<storageModule moduleId="com.renesas.cdt.managedbuild.core.toolchainInfo">
|
||||
<option id="toolchain.id" value="Renesas_RXC"/>
|
||||
<option id="toolchain.version" value="v3.01.00"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<configuration artifactExtension="abs" artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug" description="Debug" id="com.renesas.cdt.managedbuild.renesas.ccrx.debug.configuration.992474000" name="Debug" parent="com.renesas.cdt.managedbuild.renesas.ccrx.debug.configuration">
|
||||
<folderInfo id="com.renesas.cdt.managedbuild.renesas.ccrx.debug.configuration.992474000." name="/" resourcePath="">
|
||||
<toolChain id="com.renesas.cdt.managedbuild.renesas.ccrx.debug.toolChain.1794956243" name="Renesas CCRX Toolchain" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.debug.toolChain">
|
||||
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF;org.eclipse.cdt.core.PE" id="com.renesas.cdt.managedbuild.renesas.ccrx.base.targetPlatform.617132481" osList="win32" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.targetPlatform"/>
|
||||
<builder buildPath="${workspace_loc:/test}/Debug" id="com.renesas.cdt.managedbuild.renesas.ccrx.base.builder.117543810" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="CCRX Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.builder"/>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.dsp.1744140894" name="DSP Assembler" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.dsp">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.noDebugInfo.1464228342" name="デバッグ情報を出力する (-no_debug_info)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.noDebugInfo" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian.733005442" name="出力するデータ値のエンディアン (-littleEndianData)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.endian.big" valueType="enumerated"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.common.1294844059" name="Common" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.common">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.644795578" name="命令セット・アーキテクチャ (-isa)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.rxv2" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.rxArchitecture.1771586719" name="RX Architecture" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.rxArchitecture" useByScannerDiscovery="false" value="rxv2" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns.1045346284" name="浮動小数点演算命令を使用する (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns.yes" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasFpu.229476184" name="Has FPU" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasFpu" useByScannerDiscovery="false" value="TRUE" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceName.748972653" name="Device Name" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceName" useByScannerDiscovery="false" value="R5F565NEHxFC" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceHistory.780008434" name="Device history" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceHistory" useByScannerDiscovery="false" value="R5F565NEHxFP;R5F565NEHxFC" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isaHistory.783836823" name="ISA history" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isaHistory" useByScannerDiscovery="false" value="non_init;com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.rxv2" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceCommand.1221884092" name="Device Command" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceCommand" useByScannerDiscovery="false" value="R5F565NE" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.checkRtos.1001057208" name="Check RTOS" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.checkRtos" useByScannerDiscovery="false" value="unusedRtos" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasDsp.963664750" name="Has DSP" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasDsp" useByScannerDiscovery="false" value="false" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceFamily.1280023203" name="Device Family" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceFamily" useByScannerDiscovery="false" value="RX65N" valueType="string"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.compiler.278830907" name="Compiler" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.compiler">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu.2144484247" name="浮動小数点演算命令を使用する (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu.yes" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.include.545347560" name="インクルード・ファイルを検索するフォルダ (-include)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.include" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value="${TCINSTALL}/include"/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_bsp}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_config}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_tsip_rx}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_tsip_rx/src/targets/rx231}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_tsip_rx/src/targets/rx66t}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_tsip_rx/src/targets/rx65n}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_cmt_rx}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_cmt_rx/src}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_t4_driver_rx}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_t4_driver_rx/src}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_t4_rx}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_t4_rx/lib}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_ether_rx}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_sys_time_rx}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_sys_time_rx/src}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/general}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_pincfg}""/>
|
||||
<listOptionValue builtIn="false" value="${ProjDirPath}/generate"/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.define.935611572" name="プリプロセッサ・マクロの定義 (-define)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.define" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="DEBUG_CONSOLE"/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userBefore.878126292" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userAfter.443993930" name="追加するオプション(すべての指定オプションの後ろに追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC.47850385" name="Cソース (-lang)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC.c99" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode.24533273" name="プログラムの文字コード (-euc/-sjis/-latin1/-utf8/-big5/-gb2312)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.inputCharCode.utf8" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode.542364588" name="出力する文字コード (-outcode)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.outcode.utf8" valueType="enumerated"/>
|
||||
<inputType id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gcc.inputType.1919404628" name="Compiler Input C" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gcc.inputType"/>
|
||||
<inputType id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gpp.inputType.293530100" name="Compiler Input CPP" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.gpp.inputType"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.assembler.607581328" name="Assembler" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.assembler">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userBefore.622904140" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userAfter.67379527" name="追加するオプション(すべての指定オプションの後ろに追加) " superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode.1186358257" name="プログラムの文字コード (-euc/-sjis/-latin1/-utf8/-big5/-gb2312)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.characterCode.utf8" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.include.1360045103" name="インクルード・ファイルを検索するフォルダ (-include)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.option.include" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/general}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_pincfg}""/>
|
||||
</option>
|
||||
<inputType id="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.inputType.1482916460" name="Assembler InputType" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.assembler.inputType"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.linker.1516159151" name="Linker" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.linker">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.rom.1765662172" name="ROMからRAMへマップするセクション (-rom)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.rom" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="D=R"/>
|
||||
<listOptionValue builtIn="false" value="D_1=R_1"/>
|
||||
<listOptionValue builtIn="false" value="D_2=R_2"/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.linkerSection.1046231838" name="セクション (-start)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.linkerSection" useByScannerDiscovery="false" value="SU,SI,B_1,R_1,B_2,R_2,B,R/04,C_1,C_2,C,C$*,D*,W*,L,P*/0FFE00000,EXCEPTVECT/0FFFFFF80,RESETVECT/0FFFFFFFC,B_ETHERNET_BUFFERS_1,B_RX_DESC_1,B_TX_DESC_1/00010000" valueType="string"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userBefore.1651005552" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userAfter.40118921" name="追加するオプション(すべての指定オプションの後ろに追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.vect.1524833684" name="可変ベクタテーブルのアドレス未設定ベクタ番号に指定するアドレス (-vect)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.vect" useByScannerDiscovery="false" value="_undefined_interrupt_source_isr" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.checkSection.1914971075" name="セクションの割り付けアドレスをチェックする (-cpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.checkSection" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType.1670384649" name="アドレス範囲指定方法 (-cpu(アドレス範囲指定方法))" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.memoryType.autoSpecify" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.noneLinkageOrderList.1556433699" name="(リンク順序のリスト) (-input/-library/-binary)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.noneLinkageOrderList" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value="".\test.lib""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.inputFile.856176867" name="リンクするリロケータブル・ファイル、ライブラリ・ファイルおよびバイナリ・ファイル (-input/-library/-binary)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.linker.option.inputFile" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/src/smc_gen/r_t4_rx/lib/T4_Library_rxv1_ether_little.lib}""/>
|
||||
</option>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.librarian.1598250045" name="Library Generator" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.librarian">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu.665362864" name="浮動小数点演算命令を使用する (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.fpu.yes" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userBefore.413642487" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userAfter.322853429" name="追加するオプション(すべての指定オプションの後ろに追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang.1591825359" name="C言語標準ライブラリ関数の構成 (-lang)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.librarian.option.lang.c99" valueType="enumerated"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.converter.175269062" name="Converter" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.converter">
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userBefore.1586351233" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userBefore" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userAfter.900284814" name="追加するオプション(すべての指定オプションの後ろに追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.userAfter" useByScannerDiscovery="false" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOfOutputFile.376126009" name="出力ファイル形式 (-form)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOfOutputFile" value="com.renesas.cdt.managedbuild.renesas.ccrx.converter.option.typeOFOutputFile.none" valueType="enumerated"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.rtosConfig.1118615463" name="RTOS Configurator" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.rtosConfig"/>
|
||||
</toolChain>
|
||||
</folderInfo>
|
||||
<sourceEntries>
|
||||
<entry excluding="ether" flags="VALUE_WORKSPACE_PATH" kind="sourcePath" name="src"/>
|
||||
</sourceEntries>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
<storageModule moduleId="com.renesas.cdt.managedbuild.core.boardInfo"/>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
<project id="test.com.renesas.cdt.managedbuild.renesas.ccrx.projectType.1611298680" name="実行可能" projectType="com.renesas.cdt.managedbuild.renesas.ccrx.projectType"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="scannerConfiguration">
|
||||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="refreshScope" versionNumber="2">
|
||||
<configuration configurationName="HardwareDebug">
|
||||
<resource resourceType="PROJECT" workspacePath="/test"/>
|
||||
</configuration>
|
||||
<configuration configurationName="Debug">
|
||||
<resource resourceType="PROJECT" workspacePath="/test"/>
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
|
||||
</cproject>
|
||||
@@ -1,59 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>test</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
|
||||
<triggers>clean,full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
|
||||
<triggers>full,incremental,</triggers>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>com.renesas.cdt.managedbuild.renesas.misrachecker.builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.cdt.core.cnature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
|
||||
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
|
||||
</natures>
|
||||
<linkedResources>
|
||||
<link>
|
||||
<name>src/benchmark.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>$%7BPARENT-6-PROJECT_LOC%7D/wolfcrypt/benchmark/benchmark.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>src/benchmark.h</name>
|
||||
<type>1</type>
|
||||
<locationURI>$%7BPARENT-6-PROJECT_LOC%7D/wolfcrypt/benchmark/benchmark.h</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>src/test.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-6-PROJECT_LOC/wolfcrypt/test/test.c</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>src/wolfssl_dummy.c</name>
|
||||
<type>1</type>
|
||||
<locationURI>$%7BPARENT-1-PROJECT_LOC%7D/common/wolfssl_dummy.c</locationURI>
|
||||
</link>
|
||||
</linkedResources>
|
||||
<variableList>
|
||||
<variable>
|
||||
<name>copy_PARENT</name>
|
||||
<value>$%7BPARENT-3-ECLIPSE_HOME%7D/workspace/wolfssl</value>
|
||||
</variable>
|
||||
</variableList>
|
||||
</projectDescription>
|
||||
@@ -1,179 +0,0 @@
|
||||
/* key_data.c
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
#include "key_data.h"
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
TSIP v1.09 or later
|
||||
--------------------------------------------------------------------------*/
|
||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS) && (WOLFSSL_RENESAS_TSIP_VER >=109)
|
||||
|
||||
const st_key_block_data_t g_key_block_data =
|
||||
{
|
||||
/* uint8_t encrypted_provisioning_key[R_TSIP_AES_CBC_IV_BYTE_SIZE * 2]; */
|
||||
{
|
||||
0xE9, 0x67, 0x79, 0xF7, 0x38, 0x73, 0xC8, 0x59, 0x94, 0x62, 0x7D, 0xB9,
|
||||
0x83, 0xDE, 0x59, 0x4A, 0x92, 0x53, 0x6B, 0x14, 0x1B, 0x2A, 0x99, 0xDF,
|
||||
0x95, 0xFD, 0x35, 0x84, 0x93, 0xCE, 0xDB, 0x10
|
||||
},
|
||||
/* uint8_t iv[R_TSIP_AES_CBC_IV_BYTE_SIZE]; */
|
||||
{
|
||||
0xF6, 0xA9, 0x83, 0x5A, 0xA1, 0x65, 0x1D, 0x28, 0xC8, 0x1A, 0xA6, 0x9D,
|
||||
0x34, 0xB2, 0x4D, 0x92
|
||||
},
|
||||
/*
|
||||
* uint8_t
|
||||
* encrypted_user_rsa2048_ne_key[R_TSIP_RSA2048_NE_KEY_BYTE_SIZE + 16];
|
||||
*/
|
||||
{
|
||||
0x34, 0x59, 0xFF, 0xFE, 0xAA, 0xE9, 0x26, 0x60, 0x8C, 0xB8, 0x76, 0xD2,
|
||||
0x98, 0x65, 0x72, 0x3B, 0x19, 0x78, 0xB8, 0x9B, 0x0D, 0xD4, 0xFC, 0x2A,
|
||||
0xF8, 0x54, 0x3B, 0x75, 0x0E, 0x40, 0x21, 0xF5, 0xF2, 0x6D, 0x3F, 0x60,
|
||||
0xD2, 0xDF, 0xE7, 0xDB, 0x67, 0xF1, 0xC7, 0x66, 0x5F, 0x37, 0xAF, 0x9D,
|
||||
0x08, 0xE7, 0xFD, 0xEF, 0x63, 0xA9, 0x78, 0x73, 0x1A, 0xE2, 0x47, 0x91,
|
||||
0xB5, 0xA0, 0xCE, 0xA2, 0xC7, 0x4F, 0x8A, 0xE5, 0x03, 0x6F, 0xC5, 0xB8,
|
||||
0xC4, 0x40, 0x12, 0x2D, 0x37, 0x2F, 0xF2, 0xC5, 0x73, 0x2D, 0xF8, 0xBF,
|
||||
0x4A, 0xDC, 0xB7, 0x98, 0xDF, 0xE8, 0xED, 0xF8, 0x3B, 0x24, 0x8A, 0x01,
|
||||
0xAE, 0x64, 0x89, 0x9C, 0x79, 0x66, 0x99, 0xE4, 0xF8, 0xC1, 0x3E, 0x04,
|
||||
0x56, 0x1E, 0x6E, 0xBA, 0x2D, 0xAA, 0xB9, 0xE8, 0xA0, 0xC2, 0x27, 0xCF,
|
||||
0x7C, 0x0F, 0xAD, 0x0A, 0x22, 0xEE, 0x61, 0xA8, 0x32, 0xBE, 0xEE, 0xE7,
|
||||
0x3F, 0x5D, 0xE5, 0xBD, 0x75, 0x6B, 0x35, 0xC1, 0x77, 0xCC, 0x7D, 0x0E,
|
||||
0x2E, 0x26, 0x67, 0xC4, 0x0E, 0x84, 0x34, 0xBD, 0x33, 0xB3, 0x0C, 0xD9,
|
||||
0x07, 0xE5, 0x8E, 0x3E, 0x7E, 0xCC, 0x56, 0x5D, 0x23, 0x5A, 0x96, 0x83,
|
||||
0x0C, 0xD9, 0x7F, 0xB0, 0xF7, 0x53, 0xD9, 0x5C, 0xE2, 0x1B, 0xDA, 0x63,
|
||||
0x62, 0x19, 0x16, 0x9D, 0x75, 0x7B, 0xBB, 0x7E, 0xC9, 0xB5, 0xAD, 0x7D,
|
||||
0xBB, 0x5A, 0xFA, 0xA5, 0x5B, 0x54, 0xA1, 0x93, 0x6D, 0x53, 0x3C, 0x85,
|
||||
0x69, 0x00, 0x15, 0x40, 0x0E, 0x54, 0xD2, 0xBA, 0xB5, 0x80, 0x1C, 0x25,
|
||||
0x85, 0x0E, 0x60, 0x87, 0x2A, 0x1A, 0xE7, 0x60, 0xCB, 0x6A, 0xF5, 0xAF,
|
||||
0x84, 0x4B, 0xB7, 0x0D, 0x0C, 0xC0, 0xB5, 0x02, 0xB2, 0x38, 0x9D, 0x7C,
|
||||
0xFA, 0x31, 0xF3, 0x50, 0xB3, 0x32, 0x69, 0x3A, 0x3C, 0x7A, 0xA5, 0x67,
|
||||
0x19, 0x66, 0xD5, 0x62, 0xA3, 0xF2, 0xF7, 0x77, 0x73, 0xF6, 0xE7, 0x8D,
|
||||
0x51, 0x0C, 0x19, 0xA3, 0x0F, 0x8C, 0x79, 0xE0, 0x7C, 0xCF, 0x8A, 0x03,
|
||||
0x70, 0xC7, 0x25, 0x9D, 0xCE, 0x89, 0x77, 0x8E, 0x4C, 0xE6, 0x97, 0xC8
|
||||
},
|
||||
/* uint8_t encrypted_user_update_key[R_TSIP_AES256_KEY_BYTE_SIZE + 16]; */
|
||||
{
|
||||
0x69, 0xDB, 0xC6, 0x86, 0xA5, 0x06, 0x22, 0x59, 0x11, 0x14, 0x73, 0x56,
|
||||
0x3A, 0x9E, 0x44, 0xC3, 0x9C, 0xA8, 0x76, 0xC6, 0xF6, 0xE8, 0xD8, 0xE2,
|
||||
0x17, 0x66, 0x90, 0x65, 0x08, 0xB5, 0x39, 0x7F, 0xD5, 0xC5, 0x6F, 0xD1,
|
||||
0xCB, 0xFB, 0xB2, 0x76, 0x33, 0xA1, 0x22, 0x0F, 0xBE, 0x83, 0x91, 0x24
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
/* Public key type of CA root cert: 0: RSA-2048 2: ECDSA-P256*/
|
||||
#if defined(USE_ECC_CERT)
|
||||
const uint32_t encrypted_user_key_type =
|
||||
R_TSIP_TLS_PUBLIC_KEY_TYPE_ECDSA_P256;
|
||||
#else
|
||||
const uint32_t encrypted_user_key_type =
|
||||
R_TSIP_TLS_PUBLIC_KEY_TYPE_RSA2048;
|
||||
#endif
|
||||
|
||||
const unsigned char ca_ecc_cert_der_sig[] =
|
||||
{
|
||||
0x81, 0x87, 0x55, 0x02, 0x9c, 0xf8, 0x0b, 0x5c, 0x69, 0xba, 0x4b, 0xe9,
|
||||
0x51, 0x19, 0x7b, 0x3c, 0x22, 0xaf, 0x6b, 0xd5, 0x23, 0x80, 0x64, 0xb8,
|
||||
0x1e, 0xe7, 0x99, 0xab, 0x89, 0x6d, 0xff, 0x93, 0xe1, 0xb5, 0xd8, 0x8d,
|
||||
0x7f, 0x53, 0xe7, 0x74, 0x8a, 0xd6, 0x06, 0x6a, 0x61, 0x2a, 0xab, 0x4a,
|
||||
0x65, 0x0d, 0x28, 0xbd, 0xc7, 0x92, 0x70, 0xd8, 0x79, 0xdc, 0xf7, 0xd2,
|
||||
0xf7, 0xf9, 0xa9, 0x13, 0x16, 0x5f, 0x4d, 0x4b, 0xae, 0x12, 0x5b, 0xfe,
|
||||
0x08, 0x09, 0x26, 0x1f, 0xae, 0x15, 0xd9, 0x16, 0x51, 0x4a, 0x92, 0xfe,
|
||||
0x61, 0xeb, 0x6a, 0x82, 0x8c, 0xf8, 0xa8, 0x94, 0x26, 0x81, 0x9b, 0xb8,
|
||||
0x74, 0xd6, 0x32, 0x2b, 0x6f, 0xa6, 0xad, 0x9a, 0x91, 0x63, 0xe6, 0x03,
|
||||
0x5f, 0x25, 0xee, 0xc2, 0xfd, 0x54, 0x58, 0x13, 0xee, 0x53, 0xae, 0xe3,
|
||||
0xda, 0x6b, 0xb5, 0x08, 0x45, 0xbe, 0xf2, 0xa8, 0x22, 0x92, 0x53, 0x8c,
|
||||
0xa4, 0xd9, 0xb6, 0x4e, 0xb9, 0xbf, 0x76, 0xb0, 0x96, 0x9f, 0xd7, 0xf6,
|
||||
0x53, 0xf3, 0x65, 0xf0, 0xe7, 0xff, 0xe8, 0x93, 0x2d, 0xc2, 0x08, 0x91,
|
||||
0xf8, 0x27, 0x33, 0x92, 0x95, 0x23, 0x1e, 0x6e, 0xd1, 0x91, 0x50, 0xc6,
|
||||
0x06, 0xb1, 0x16, 0x69, 0xee, 0xcf, 0xad, 0xc9, 0x4b, 0xf2, 0x38, 0x65,
|
||||
0x1d, 0xa9, 0xff, 0xd3, 0xf4, 0xd5, 0x84, 0xa9, 0xdd, 0xa7, 0x04, 0x77,
|
||||
0x64, 0xb5, 0xed, 0xe8, 0x0c, 0x15, 0x77, 0x7e, 0xfc, 0x02, 0xdd, 0x4e,
|
||||
0xf1, 0xd1, 0x36, 0xfe, 0xac, 0x3f, 0x5c, 0xd3, 0xdf, 0x51, 0xa3, 0x5c,
|
||||
0x8d, 0xed, 0x9f, 0x8d, 0xc8, 0xa7, 0xff, 0x46, 0xbc, 0x1d, 0x83, 0x12,
|
||||
0x4f, 0x49, 0xaa, 0xf5, 0xd1, 0x04, 0xc8, 0xee, 0x95, 0xda, 0xa0, 0x61,
|
||||
0x28, 0xff, 0x25, 0x8c, 0xfc, 0x35, 0x8f, 0xdc, 0x00, 0x47, 0x01, 0xfd,
|
||||
0x7c, 0xed, 0x05, 0xff
|
||||
};
|
||||
const int sizeof_ca_ecc_cert_sig = sizeof(ca_ecc_cert_der_sig);
|
||||
|
||||
/* ./ca-cert.der.sign, */
|
||||
const unsigned char ca_cert_der_sig[] =
|
||||
{
|
||||
0x0E, 0xC3, 0x9B, 0x77, 0xF8, 0x58, 0x08, 0x9E, 0x5D, 0x1E, 0x03, 0x8D,
|
||||
0x60, 0xD1, 0xF6, 0x3E, 0x3D, 0xFF, 0x89, 0x4C, 0x91, 0x5C, 0x00, 0xEB,
|
||||
0x05, 0xE5, 0x65, 0x62, 0x17, 0xFB, 0xD4, 0x52, 0x69, 0x9D, 0xB8, 0x07,
|
||||
0xAF, 0xA9, 0x4C, 0xA5, 0xB9, 0x8D, 0x52, 0xC0, 0xF3, 0x34, 0x13, 0x67,
|
||||
0x40, 0xAA, 0xE1, 0xA3, 0x9E, 0x5D, 0x0F, 0xCE, 0x87, 0xB0, 0x10, 0xB4,
|
||||
0x79, 0x8F, 0x84, 0x21, 0x81, 0xC2, 0xF9, 0xF7, 0xDB, 0xCB, 0x8F, 0xE4,
|
||||
0x9B, 0xF5, 0x85, 0x9D, 0x11, 0x04, 0xFB, 0xA7, 0xFD, 0x13, 0x6F, 0x02,
|
||||
0xA5, 0xBF, 0xE0, 0x89, 0x62, 0x5E, 0x24, 0x95, 0xF6, 0x01, 0x7D, 0x7F,
|
||||
0xB5, 0xD1, 0xDD, 0xF3, 0x3B, 0xD5, 0x04, 0x54, 0xE1, 0x8E, 0xA8, 0x3D,
|
||||
0x30, 0xB3, 0x35, 0x76, 0xAF, 0xA7, 0x94, 0xD7, 0x59, 0x82, 0x38, 0x2C,
|
||||
0xD6, 0x95, 0x57, 0xD1, 0xD5, 0x62, 0xB1, 0x69, 0x60, 0xCD, 0x3F, 0x7D,
|
||||
0x0E, 0x9F, 0x00, 0x21, 0x04, 0xFE, 0x43, 0xBD, 0x7D, 0x3D, 0xA7, 0x6B,
|
||||
0xC5, 0x82, 0x92, 0xDE, 0xB7, 0xA3, 0xD4, 0x7D, 0x3C, 0x14, 0x46, 0x28,
|
||||
0x50, 0xCA, 0x86, 0x9F, 0x66, 0x4C, 0xB0, 0x46, 0x46, 0x4D, 0x31, 0xD6,
|
||||
0x7B, 0xEC, 0xBA, 0xED, 0xA1, 0xF9, 0x88, 0x68, 0xB9, 0xA9, 0xDA, 0x88,
|
||||
0x63, 0x01, 0x95, 0x5B, 0x78, 0x38, 0x03, 0xD6, 0xDF, 0x86, 0xC4, 0x3E,
|
||||
0x3B, 0xCF, 0xED, 0x8B, 0x2A, 0x41, 0x49, 0x65, 0x3E, 0x2F, 0x45, 0x71,
|
||||
0xD8, 0x0B, 0xF1, 0xF0, 0xC7, 0xB5, 0x2E, 0xBE, 0xF0, 0x71, 0xDE, 0x40,
|
||||
0xB0, 0x54, 0x25, 0xD7, 0x4A, 0x86, 0xF1, 0xB9, 0xF6, 0xAB, 0x07, 0x07,
|
||||
0x21, 0x7C, 0x15, 0x7B, 0x1F, 0xCF, 0xE4, 0x1F, 0x0B, 0xEB, 0x0E, 0x96,
|
||||
0xE5, 0x59, 0x34, 0xC6, 0x4B, 0x1B, 0xF6, 0xC7, 0x6C, 0x4C, 0x16, 0x43,
|
||||
0x72, 0xAF, 0x82, 0x1E
|
||||
};
|
||||
const int sizeof_ca_cert_sig = sizeof(ca_cert_der_sig);
|
||||
/* ./client-cert.der.sign, */
|
||||
const unsigned char client_cert_der_sign[] =
|
||||
{
|
||||
0x5D, 0x1F, 0x89, 0x41, 0xEC, 0x47, 0xC8, 0x90, 0x61, 0x79,
|
||||
0x8A, 0x16, 0x1F, 0x31, 0x96, 0x67, 0xD9, 0x3C, 0xEC, 0x6B,
|
||||
0x58, 0xC6, 0x5A, 0xED, 0x99, 0xB3, 0xEF, 0x27, 0x6F, 0x04,
|
||||
0x8C, 0xD9, 0x68, 0xB1, 0xD6, 0x23, 0x15, 0x84, 0x00, 0xE1,
|
||||
0x27, 0xD1, 0x1F, 0x68, 0xB7, 0x3F, 0x13, 0x53, 0x8A, 0x95,
|
||||
0x5A, 0x20, 0x7C, 0xB2, 0x76, 0x5B, 0xDC, 0xE0, 0xA6, 0x21,
|
||||
0x7C, 0x49, 0xCF, 0x93, 0xBA, 0xD5, 0x12, 0x9F, 0xEE, 0x90,
|
||||
0x5B, 0x3F, 0xA3, 0x9D, 0x13, 0x72, 0xAC, 0x72, 0x16, 0xFE,
|
||||
0x1D, 0xBE, 0xEB, 0x8E, 0xC7, 0xDC, 0xC4, 0xF8, 0x1A, 0xD8,
|
||||
0xA0, 0xA4, 0xF6, 0x04, 0x30, 0xF6, 0x7E, 0xB6, 0xC8, 0xE1,
|
||||
0xAB, 0x88, 0x37, 0x08, 0x63, 0x72, 0xAA, 0x46, 0xCC, 0xCA,
|
||||
0xF0, 0x9E, 0x02, 0x1E, 0x65, 0x67, 0xFF, 0x2C, 0x9D, 0x81,
|
||||
0x6C, 0x1E, 0xF1, 0x54, 0x05, 0x68, 0x68, 0x18, 0x72, 0x26,
|
||||
0x55, 0xB6, 0x2C, 0x95, 0xC0, 0xC9, 0xB2, 0xA7, 0x0B, 0x60,
|
||||
0xD7, 0xEB, 0x1D, 0x08, 0x1A, 0xA2, 0x54, 0x15, 0x89, 0xCB,
|
||||
0x83, 0x21, 0x5D, 0x15, 0x9B, 0x38, 0xAC, 0x89, 0x63, 0xD5,
|
||||
0x4B, 0xF4, 0x8B, 0x47, 0x93, 0x78, 0x43, 0xCB, 0x9B, 0x71,
|
||||
0xBF, 0x94, 0x76, 0xB5, 0xCE, 0x35, 0xA9, 0x1A, 0xD5, 0xA5,
|
||||
0xD8, 0x19, 0xA6, 0x04, 0x39, 0xB1, 0x09, 0x8C, 0x65, 0x02,
|
||||
0x58, 0x3A, 0x95, 0xEF, 0xA2, 0xC3, 0x85, 0x18, 0x61, 0x23,
|
||||
0x2D, 0xC5, 0xCD, 0x62, 0xC1, 0x19, 0x31, 0xE5, 0x36, 0x95,
|
||||
0x22, 0xDB, 0x3E, 0x1A, 0x3C, 0xE8, 0xC6, 0x2E, 0xDF, 0xD9,
|
||||
0x2F, 0x84, 0xC1, 0xF0, 0x38, 0x2B, 0xE5, 0x73, 0x35, 0x4F,
|
||||
0x05, 0xE2, 0xA5, 0x60, 0x79, 0xB0, 0x23, 0xDC, 0x56, 0x4C,
|
||||
0xE7, 0xD9, 0x1F, 0xCF, 0x6A, 0xFC, 0x55, 0xEB, 0xAA, 0x48,
|
||||
0x3E, 0x95, 0x2A, 0x10, 0x01, 0x05
|
||||
};
|
||||
const int sizeof_client_cert_der_sign = sizeof(client_cert_der_sign);
|
||||
|
||||
uint32_t s_inst1[R_TSIP_SINST_WORD_SIZE] = { 0 };
|
||||
uint32_t s_inst2[R_TSIP_SINST2_WORD_SIZE]= { 0 };
|
||||
#endif
|
||||
@@ -1,276 +0,0 @@
|
||||
/* test_main.c
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
|
||||
#include "stdio.h"
|
||||
#include "stdint.h"
|
||||
#include <wolfssl/wolfcrypt/settings.h>
|
||||
#include "wolfssl/wolfcrypt/types.h"
|
||||
#include "wolfssl_demo.h"
|
||||
|
||||
void main(void);
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(TLS_CLIENT) || defined(TLS_SERVER)
|
||||
#include "r_t4_itcpip.h"
|
||||
#include "r_sys_time_rx_if.h"
|
||||
#include "Pin.h"
|
||||
|
||||
#define T4_WORK_SIZE (14800)
|
||||
static UW tcpudp_work[(T4_WORK_SIZE / 4) + 1];
|
||||
#endif
|
||||
|
||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS)
|
||||
#include "key_data.h"
|
||||
#include <wolfssl/wolfcrypt/port/Renesas/renesas-tsip-crypt.h>
|
||||
|
||||
extern const st_key_block_data_t g_key_block_data;
|
||||
user_PKCbInfo guser_PKCbInfo;
|
||||
#endif
|
||||
|
||||
static long tick;
|
||||
static void timeTick(void *pdata)
|
||||
{
|
||||
tick++;
|
||||
}
|
||||
|
||||
typedef struct func_args {
|
||||
int argc;
|
||||
char** argv;
|
||||
int return_code;
|
||||
} func_args;
|
||||
|
||||
|
||||
void wolfcrypt_test(func_args args);
|
||||
int benchmark_test(void *args);
|
||||
|
||||
double current_time(int reset)
|
||||
{
|
||||
if(reset) tick = 0 ;
|
||||
return ((double)tick/FREQ) ;
|
||||
}
|
||||
|
||||
#if defined(TLS_CLIENT) || defined(TLS_SERVER)
|
||||
|
||||
int SetTsiptlsKey()
|
||||
{
|
||||
#if defined(WOLFSSL_RENESAS_TSIP) && (WOLFSSL_RENESAS_TSIP_VER >=109)
|
||||
|
||||
#if defined(TLS_CLIENT)
|
||||
|
||||
#if defined(USE_ECC_CERT)
|
||||
/* Root CA cert has ECC-P256 public key */
|
||||
tsip_inform_cert_sign((const byte *)ca_ecc_cert_der_sig);
|
||||
#else
|
||||
/* Root CA cert has RSA public key */
|
||||
tsip_inform_cert_sign((const byte *)ca_cert_der_sig);
|
||||
#endif
|
||||
|
||||
tsip_inform_user_keys_ex(
|
||||
(byte*)&g_key_block_data.encrypted_provisioning_key,
|
||||
(byte*)&g_key_block_data.iv,
|
||||
(byte*)&g_key_block_data.encrypted_user_rsa2048_ne_key,
|
||||
encrypted_user_key_type);
|
||||
|
||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS)
|
||||
guser_PKCbInfo.user_key_id = 0;
|
||||
#endif
|
||||
|
||||
#elif defined(TLS_SERVER)
|
||||
|
||||
tsip_inform_cert_sign((const byte *)client_cert_der_sign);
|
||||
tsip_inform_user_keys_ex(
|
||||
(byte *)&g_key_block_data.encrypted_provisioning_key,
|
||||
(byte *)&g_key_block_data.iv,
|
||||
(byte *)&g_key_block_data.encrypted_user_rsa2048_ne_key,
|
||||
encrypted_user_key_type);
|
||||
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
#if defined(TLS_CLIENT)
|
||||
|
||||
tsip_inform_cert_sign((const byte *)ca_cert_sig);
|
||||
tsip_inform_user_keys((byte*)&g_key_block_data.encrypted_session_key,
|
||||
(byte*)&g_key_block_data.iv,
|
||||
(byte*)&g_key_block_data.encrypted_user_rsa2048_ne_key);
|
||||
|
||||
#elif defined(TLS_SERVER)
|
||||
|
||||
tsip_inform_cert_sign((const byte *)client_cert_der_sign);
|
||||
tsip_inform_user_keys((byte*)&g_key_block_data.encrypted_session_key,
|
||||
(byte*)&g_key_block_data.iv,
|
||||
(byte*)&g_key_block_data.encrypted_user_rsa2048_ne_key);
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
int Open_tcp( )
|
||||
{
|
||||
ER ercd;
|
||||
W size;
|
||||
sys_time_err_t sys_ercd;
|
||||
char ver[128];
|
||||
|
||||
/* cast from uint8_t to char* */
|
||||
strcpy(ver, (char*)R_t4_version.library);
|
||||
|
||||
sys_ercd = R_SYS_TIME_Open();
|
||||
if (sys_ercd != SYS_TIME_SUCCESS) {
|
||||
printf("ERROR : R_SYS_TIME_Open() failed\n");
|
||||
return -1;
|
||||
}
|
||||
R_Pins_Create();
|
||||
/* start LAN controller */
|
||||
ercd = lan_open();
|
||||
/* initialize TCP/IP */
|
||||
size = tcpudp_get_ramsize();
|
||||
if (size > (sizeof(tcpudp_work))) {
|
||||
printf("size > (sizeof(tcpudp_work))!\n");
|
||||
return -1;
|
||||
}
|
||||
ercd = tcpudp_open(tcpudp_work);
|
||||
if (ercd != E_OK) {
|
||||
printf("ERROR : tcpudp_open failed\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void Close_tcp()
|
||||
{
|
||||
/* end TCP/IP */
|
||||
tcpudp_close();
|
||||
lan_close();
|
||||
R_SYS_TIME_Close();
|
||||
}
|
||||
#endif
|
||||
|
||||
void main(void)
|
||||
{
|
||||
(void)timeTick;
|
||||
|
||||
#if defined(CRYPT_TEST) || defined(BENCHMARK)
|
||||
#if defined(CRYPT_TEST)
|
||||
int ret;
|
||||
func_args args = { 0 };
|
||||
|
||||
if ((ret = wolfCrypt_Init()) != 0) {
|
||||
printf("wolfCrypt_Init failed %d\n", ret);
|
||||
}
|
||||
|
||||
printf("Start wolfCrypt Test\n");
|
||||
wolfcrypt_test(args);
|
||||
printf("End wolfCrypt Test\n");
|
||||
|
||||
if ((ret = wolfCrypt_Cleanup()) != 0) {
|
||||
printf("wolfCrypt_Cleanup failed %d\n", ret);
|
||||
}
|
||||
#endif
|
||||
#if defined(BENCHMARK)
|
||||
#include "r_cmt_rx_if.h"
|
||||
|
||||
uint32_t channel;
|
||||
R_CMT_CreatePeriodic(FREQ, &timeTick, &channel);
|
||||
|
||||
printf("Start wolfCrypt Benchmark\n");
|
||||
benchmark_test(NULL);
|
||||
printf("End wolfCrypt Benchmark\n");
|
||||
#endif
|
||||
#elif defined(TLS_CLIENT)
|
||||
#include "r_cmt_rx_if.h"
|
||||
|
||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS)
|
||||
|
||||
#ifdef USE_ECC_CERT
|
||||
const char* cipherlist[] = {
|
||||
"ECDHE-ECDSA-AES128-GCM-SHA256",
|
||||
"ECDHE-ECDSA-AES128-SHA256"
|
||||
};
|
||||
const int cipherlist_sz = 2;
|
||||
|
||||
#else
|
||||
const char* cipherlist[] = {
|
||||
"ECDHE-RSA-AES128-GCM-SHA256",
|
||||
"ECDHE-RSA-AES128-SHA256",
|
||||
"AES128-SHA",
|
||||
"AES128-SHA256",
|
||||
"AES256-SHA",
|
||||
"AES256-SHA256"
|
||||
};
|
||||
const int cipherlist_sz = 6;
|
||||
|
||||
#endif
|
||||
|
||||
#else
|
||||
const char* cipherlist[] = { NULL };
|
||||
const int cipherlist_sz = 0;
|
||||
|
||||
#endif
|
||||
int i = 0;
|
||||
|
||||
Open_tcp();
|
||||
|
||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS)
|
||||
SetTsiptlsKey();
|
||||
#endif
|
||||
|
||||
do {
|
||||
if(cipherlist_sz > 0 ) printf("cipher : %s\n", cipherlist[i]);
|
||||
|
||||
wolfSSL_TLS_client_init(cipherlist[i]);
|
||||
|
||||
wolfSSL_TLS_client();
|
||||
|
||||
i++;
|
||||
} while (i < cipherlist_sz);
|
||||
|
||||
Close_tcp();
|
||||
#elif defined(TLS_SERVER)
|
||||
|
||||
Open_tcp();
|
||||
#if defined(WOLFSSL_RENESAS_TSIP)
|
||||
SetTsiptlsKey();
|
||||
#endif
|
||||
|
||||
wolfSSL_TLS_server_init();
|
||||
wolfSSL_TLS_server();
|
||||
|
||||
Close_tcp();
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
void abort(void)
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
@@ -1,224 +0,0 @@
|
||||
/* wolf_client.c
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "r_t4_itcpip.h"
|
||||
#include "wolfssl/wolfcrypt/settings.h"
|
||||
#include "wolfssl/ssl.h"
|
||||
#include "wolfssl/certs_test.h"
|
||||
#include "key_data.h"
|
||||
#include "wolfssl_demo.h"
|
||||
|
||||
|
||||
#define SIMPLE_TLSSEVER_IP "192.168.1.7"
|
||||
#define SIMPLE_TLSSERVER_PORT "11111"
|
||||
|
||||
ER t4_tcp_callback(ID cepid, FN fncd , VP p_parblk);
|
||||
|
||||
static WOLFSSL_CTX *client_ctx;
|
||||
|
||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS)
|
||||
uint32_t g_encrypted_root_public_key[140];
|
||||
static TsipUserCtx userContext;
|
||||
#endif
|
||||
|
||||
static int my_IORecv(WOLFSSL* ssl, char* buff, int sz, void* ctx)
|
||||
{
|
||||
int ret;
|
||||
ID cepid;
|
||||
|
||||
if(ctx != NULL)
|
||||
cepid = *(ID *)ctx;
|
||||
else
|
||||
return WOLFSSL_CBIO_ERR_GENERAL;
|
||||
|
||||
ret = tcp_rcv_dat(cepid, buff, sz, TMO_FEVR);
|
||||
if(ret > 0)
|
||||
return ret;
|
||||
else
|
||||
return WOLFSSL_CBIO_ERR_GENERAL;
|
||||
}
|
||||
|
||||
static int my_IOSend(WOLFSSL* ssl, char* buff, int sz, void* ctx)
|
||||
{
|
||||
int ret;
|
||||
ID cepid;
|
||||
|
||||
if(ctx != NULL)
|
||||
cepid = *(ID *)ctx;
|
||||
else
|
||||
return WOLFSSL_CBIO_ERR_GENERAL;
|
||||
|
||||
ret = tcp_snd_dat(cepid, buff, sz, TMO_FEVR);
|
||||
if(ret == sz)
|
||||
return ret;
|
||||
else
|
||||
return WOLFSSL_CBIO_ERR_GENERAL;
|
||||
}
|
||||
|
||||
static int getIPaddr(char *arg)
|
||||
{
|
||||
int a1, a2, a3, a4;
|
||||
if(sscanf(arg, "%d.%d.%d.%d", &a1, &a2, &a3, &a4) == 4)
|
||||
return (a1 << 24) | (a2 << 16) | (a3 << 8) | a4;
|
||||
else return 0;
|
||||
}
|
||||
|
||||
static int getPort(char *arg)
|
||||
{
|
||||
int port;
|
||||
if(sscanf(arg, "%d", &port) == 1)
|
||||
return port;
|
||||
else return 0;
|
||||
}
|
||||
|
||||
void wolfSSL_TLS_client_init(const char* cipherlist)
|
||||
{
|
||||
|
||||
#ifndef NO_FILESYSTEM
|
||||
#ifdef USE_ECC_CERT
|
||||
char *cert = "./certs/ca-ecc-cert.pem";
|
||||
#else
|
||||
char *cert = "./certs/ca-cert.pem";
|
||||
#endif
|
||||
#else
|
||||
#if defined(USE_ECC_CERT) && defined(USE_CERT_BUFFERS_256)
|
||||
const unsigned char *cert = ca_ecc_cert_der_256;
|
||||
#define SIZEOF_CERT sizeof_ca_ecc_cert_der_256
|
||||
#else
|
||||
const unsigned char *cert = ca_cert_der_2048;
|
||||
#define SIZEOF_CERT sizeof_ca_cert_der_2048
|
||||
#endif
|
||||
#endif
|
||||
|
||||
wolfSSL_Init();
|
||||
#ifdef DEBUG_WOLFSSL
|
||||
wolfSSL_Debugging_ON();
|
||||
#endif
|
||||
|
||||
/* Create and initialize WOLFSSL_CTX */
|
||||
if ((client_ctx = wolfSSL_CTX_new(wolfTLSv1_2_client_method_ex((void *)NULL))) == NULL) {
|
||||
printf("ERROR: failed to create WOLFSSL_CTX\n");
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef WOLFSSL_RENESAS_TSIP_TLS
|
||||
tsip_set_callbacks(client_ctx);
|
||||
#endif
|
||||
|
||||
#if !defined(NO_FILESYSTEM)
|
||||
if (wolfSSL_CTX_load_verify_locations(client_ctx, cert, 0) != SSL_SUCCESS) {
|
||||
printf("ERROR: can't load \"%s\"\n", cert);
|
||||
return NULL;
|
||||
}
|
||||
#else
|
||||
if (wolfSSL_CTX_load_verify_buffer(client_ctx, cert, SIZEOF_CERT, SSL_FILETYPE_ASN1) != SSL_SUCCESS){
|
||||
printf("ERROR: can't load certificate data\n");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Register callbacks */
|
||||
wolfSSL_SetIORecv(client_ctx, my_IORecv);
|
||||
wolfSSL_SetIOSend(client_ctx, my_IOSend);
|
||||
|
||||
/* use specific cipher */
|
||||
if (cipherlist != NULL &&
|
||||
wolfSSL_CTX_set_cipher_list(client_ctx, cipherlist) != WOLFSSL_SUCCESS) {
|
||||
wolfSSL_CTX_free(client_ctx); client_ctx = NULL;
|
||||
printf("client can't set cipher list");
|
||||
}
|
||||
}
|
||||
|
||||
void wolfSSL_TLS_client( )
|
||||
{
|
||||
ID cepid = 1;
|
||||
ER ercd;
|
||||
int ret;
|
||||
WOLFSSL_CTX *ctx = (WOLFSSL_CTX *)client_ctx;
|
||||
WOLFSSL *ssl;
|
||||
|
||||
#define BUFF_SIZE 256
|
||||
static const char sendBuff[]= "Hello Server\n" ;
|
||||
|
||||
char rcvBuff[BUFF_SIZE] = {0};
|
||||
|
||||
static T_IPV4EP my_addr = { 0, 0 };
|
||||
|
||||
T_IPV4EP dst_addr;
|
||||
|
||||
if((dst_addr.ipaddr = getIPaddr(SIMPLE_TLSSEVER_IP)) == 0){
|
||||
printf("ERROR: IP address\n");
|
||||
return;
|
||||
}
|
||||
if((dst_addr.portno = getPort(SIMPLE_TLSSERVER_PORT)) == 0){
|
||||
printf("ERROR: IP address\n");
|
||||
return;
|
||||
}
|
||||
|
||||
if((ercd = tcp_con_cep(cepid, &my_addr, &dst_addr, TMO_FEVR)) != E_OK) {
|
||||
printf("ERROR TCP Connect: %d\n", ercd);
|
||||
return;
|
||||
}
|
||||
|
||||
if((ssl = wolfSSL_new(ctx)) == NULL) {
|
||||
printf("ERROR wolfSSL_new: %d\n", wolfSSL_get_error(ssl, 0));
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef WOLFSSL_RENESAS_TSIP_TLS
|
||||
tsip_set_callback_ctx(ssl, &userContext);
|
||||
#endif
|
||||
|
||||
/* set callback context */
|
||||
wolfSSL_SetIOReadCtx(ssl, (void *)&cepid);
|
||||
wolfSSL_SetIOWriteCtx(ssl, (void *)&cepid);
|
||||
|
||||
|
||||
if(wolfSSL_connect(ssl) != SSL_SUCCESS) {
|
||||
printf("ERROR SSL connect: %d\n", wolfSSL_get_error(ssl, 0));
|
||||
return;
|
||||
}
|
||||
|
||||
if (wolfSSL_write(ssl, sendBuff, strlen(sendBuff)) != strlen(sendBuff)) {
|
||||
printf("ERROR SSL write: %d\n", wolfSSL_get_error(ssl, 0));
|
||||
return;
|
||||
}
|
||||
|
||||
if ((ret=wolfSSL_read(ssl, rcvBuff, BUFF_SIZE)) < 0) {
|
||||
printf("ERROR SSL read: %d\n", wolfSSL_get_error(ssl, 0));
|
||||
return;
|
||||
}
|
||||
|
||||
rcvBuff[ret] = '\0' ;
|
||||
printf("Received: %s\n\n", rcvBuff);
|
||||
|
||||
/* frees all data before client termination */
|
||||
wolfSSL_free(ssl);
|
||||
wolfSSL_CTX_free(ctx);
|
||||
wolfSSL_Cleanup();
|
||||
|
||||
tcp_sht_cep(cepid);
|
||||
tcp_cls_cep(cepid, TMO_FEVR);
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -1,207 +0,0 @@
|
||||
/* wolf_server.c
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "r_t4_itcpip.h"
|
||||
|
||||
#include "wolfssl/wolfcrypt/settings.h"
|
||||
#include "wolfssl/ssl.h"
|
||||
#include "wolfssl/certs_test.h"
|
||||
#include "wolfssl_demo.h"
|
||||
|
||||
static WOLFSSL_CTX *server_ctx;
|
||||
static byte doCliCertCheck;
|
||||
|
||||
static int my_IORecv(WOLFSSL* ssl, char* buff, int sz, void* ctx)
|
||||
{
|
||||
int ret;
|
||||
ID cepid;
|
||||
|
||||
if(ctx != NULL)
|
||||
cepid = *(ID *)ctx;
|
||||
else
|
||||
return WOLFSSL_CBIO_ERR_GENERAL;
|
||||
|
||||
ret = tcp_rcv_dat(cepid, buff, sz, TMO_FEVR);
|
||||
if(ret == sz)
|
||||
return ret;
|
||||
else
|
||||
return WOLFSSL_CBIO_ERR_GENERAL;
|
||||
}
|
||||
|
||||
static int my_IOSend(WOLFSSL* ssl, char* buff, int sz, void* ctx)
|
||||
{
|
||||
int ret;
|
||||
ID cepid;
|
||||
|
||||
if(ctx != NULL)
|
||||
cepid = *(ID *)ctx;
|
||||
else
|
||||
return WOLFSSL_CBIO_ERR_GENERAL;
|
||||
|
||||
ret = tcp_snd_dat(cepid, buff, sz, TMO_FEVR);
|
||||
if(ret == sz)
|
||||
return ret;
|
||||
else
|
||||
return WOLFSSL_CBIO_ERR_GENERAL;
|
||||
}
|
||||
|
||||
|
||||
void wolfSSL_TLS_server_init(byte doClientCheck)
|
||||
{
|
||||
|
||||
int ret;
|
||||
|
||||
|
||||
#ifndef NO_FILESYSTEM
|
||||
#ifdef USE_ECC_CERT
|
||||
char *cert = "./certs/server-ecc-cert.pem";
|
||||
char *key = "./certs/server-ecc-key.pem";
|
||||
#else
|
||||
char *cert = "./certs/server-cert.pem";
|
||||
char *key = "./certs/server-key.pem";
|
||||
#endif
|
||||
char *clientCert = "./certs/client-cert.pem";
|
||||
#else
|
||||
#if defined(USE_ECC_CERT) && defined(USE_CERT_BUFFERS_256)
|
||||
const unsigned char *cert = serv_ecc_der_256;
|
||||
#define sizeof_cert sizeof_serv_ecc_der_256
|
||||
const unsigned char *key = NULL;
|
||||
#define sizeof_key NULL
|
||||
const unsigned char *clientCert = NULL;
|
||||
#define sizeof_clicert NULL
|
||||
#else
|
||||
const unsigned char *cert = server_cert_der_2048;
|
||||
#define sizeof_cert sizeof_server_cert_der_2048
|
||||
const unsigned char *key = server_key_der_2048;
|
||||
#define sizeof_key sizeof_server_key_der_2048
|
||||
const unsigned char *clientCert = client_cert_der_2048;
|
||||
#define sizeof_clicert sizeof_client_cert_der_2048
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
wolfSSL_Init();
|
||||
#ifdef DEBUG_WOLFSSL
|
||||
wolfSSL_Debugging_ON();
|
||||
#endif
|
||||
|
||||
/* Create and initialize WOLFSSL_CTX */
|
||||
if ((server_ctx = wolfSSL_CTX_new(wolfSSLv23_server_method_ex((void *)NULL)))
|
||||
== NULL) {
|
||||
printf("ERROR: failed to create WOLFSSL_CTX\n");
|
||||
return;
|
||||
}
|
||||
|
||||
#if !defined(NO_FILESYSTEM)
|
||||
ret = wolfSSL_CTX_use_certificate_file(server_ctx, cert, 0);
|
||||
#else
|
||||
ret = wolfSSL_CTX_use_certificate_buffer(server_ctx, cert,
|
||||
sizeof_cert, SSL_FILETYPE_ASN1);
|
||||
#endif
|
||||
if (ret != SSL_SUCCESS) {
|
||||
printf("Error %d loading server-cert!\n", ret);
|
||||
return;
|
||||
}
|
||||
|
||||
/* Load server key into WOLFSSL_CTX */
|
||||
#if !defined(NO_FILESYSTEM)
|
||||
ret = wolfSSL_CTX_use_PrivateKey_file(server_ctx, key, 0);
|
||||
#else
|
||||
ret = wolfSSL_CTX_use_PrivateKey_buffer(server_ctx, key, sizeof_key,
|
||||
SSL_FILETYPE_ASN1);
|
||||
#endif
|
||||
if (ret != SSL_SUCCESS) {
|
||||
printf("Error %d loading server-key!\n", ret);
|
||||
return;
|
||||
}
|
||||
#if defined(WOLFSSL_RENESAS_TSIP)
|
||||
doCliCertCheck = 1;
|
||||
#endif
|
||||
if (doCliCertCheck) {
|
||||
wolfSSL_CTX_set_verify(server_ctx, WOLFSSL_VERIFY_PEER |
|
||||
WOLFSSL_VERIFY_FAIL_IF_NO_PEER_CERT, 0);
|
||||
#if !defined(NO_FILESYSTEM)
|
||||
if (wolfSSL_CTX_load_verify_locations(server_ctx, clientCert, 0)
|
||||
!= WOLFSSL_SUCCESS)
|
||||
#else
|
||||
if (wolfSSL_CTX_load_verify_buffer(server_ctx, clientCert,
|
||||
sizeof_clicert,
|
||||
SSL_FILETYPE_ASN1) != SSL_SUCCESS)
|
||||
#endif
|
||||
printf("can't load ca file, Please run from wolfSSL home dir\n");
|
||||
}
|
||||
|
||||
/* Register callbacks */
|
||||
wolfSSL_SetIORecv(server_ctx, my_IORecv);
|
||||
wolfSSL_SetIOSend(server_ctx, my_IOSend);
|
||||
|
||||
}
|
||||
|
||||
void wolfSSL_TLS_server( )
|
||||
{
|
||||
ID cepid = 1;
|
||||
ID repid = 1;
|
||||
ER ercd;
|
||||
WOLFSSL_CTX *ctx = (WOLFSSL_CTX *)server_ctx;
|
||||
|
||||
WOLFSSL *ssl;
|
||||
int len;
|
||||
#define BUFF_SIZE 256
|
||||
char buff[BUFF_SIZE];
|
||||
T_IPV4EP dst_addr = {0, 0};
|
||||
|
||||
if((ercd = tcp_acp_cep(cepid, repid, &dst_addr, TMO_FEVR)) != E_OK) {
|
||||
printf("ERROR TCP Accept: %d\n", ercd);
|
||||
return;
|
||||
}
|
||||
|
||||
if((ssl = wolfSSL_new(ctx)) == NULL) {
|
||||
printf("ERROR: failed wolfSSL_new\n");
|
||||
return;
|
||||
}
|
||||
|
||||
wolfSSL_SetIOReadCtx(ssl, (void *)&cepid);
|
||||
wolfSSL_SetIOWriteCtx(ssl, (void *)&cepid);
|
||||
|
||||
if (wolfSSL_accept(ssl) < 0) {
|
||||
printf("ERROR: SSL Accept(%d)\n", wolfSSL_get_error(ssl, 0));
|
||||
return;
|
||||
}
|
||||
|
||||
if ((len = wolfSSL_read(ssl, buff, sizeof(buff) - 1)) < 0) {
|
||||
printf("ERROR: SSL Read(%d)\n", wolfSSL_get_error(ssl, 0));
|
||||
return;
|
||||
}
|
||||
|
||||
buff[len] = '\0';
|
||||
printf("Received: %s\n", buff);
|
||||
|
||||
if (wolfSSL_write(ssl, buff, len) != len) {
|
||||
printf("ERROR: SSL Write(%d)\n", wolfSSL_get_error(ssl, 0));
|
||||
return;
|
||||
}
|
||||
|
||||
wolfSSL_free(ssl);
|
||||
wolfSSL_CTX_free(ctx);
|
||||
wolfSSL_Cleanup();
|
||||
tcp_sht_cep(cepid);
|
||||
}
|
||||
@@ -1,569 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<MicomToolCommonProjectFile Version="1.00">
|
||||
<CreatorType Name="e2studio" Version=""/>
|
||||
<Placeholders>
|
||||
<PlaceholderPrefix>${</PlaceholderPrefix>
|
||||
<PlaceholderPostfix>}</PlaceholderPostfix>
|
||||
</Placeholders>
|
||||
<Project Name="test" Type="Application">
|
||||
<Files>
|
||||
<Category Name="generate">
|
||||
<Path>generate\dbsct.c</Path>
|
||||
<Path>generate\hwsetup.c</Path>
|
||||
<Path>generate\intprg.c</Path>
|
||||
<Path>generate\iodefine.h</Path>
|
||||
<Path>generate\resetprg.c</Path>
|
||||
<Path>generate\sbrk.c</Path>
|
||||
<Path>generate\sbrk.h</Path>
|
||||
<Path>generate\stacksct.h</Path>
|
||||
<Path>generate\typedefine.h</Path>
|
||||
<Path>generate\vect.h</Path>
|
||||
<Path>generate\vecttbl.c</Path>
|
||||
</Category>
|
||||
<Category Name="src">
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\benchmark\benchmark.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\benchmark\benchmark.h</Path>
|
||||
<Path>src\key_data.c</Path>
|
||||
<Path>src\key_data.h</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\test\test.c</Path>
|
||||
<Path>src\test_main.c</Path>
|
||||
<Path>src\wolf_client.c</Path>
|
||||
<Path>src\wolf_server.c</Path>
|
||||
<Path>src\wolfssl_demo.h</Path>
|
||||
<Path>..\common\wolfssl_dummy.c</Path>
|
||||
<Category Name="smc_gen">
|
||||
<Category Name="Config_TMR0">
|
||||
<Path>src\smc_gen\Config_TMR0\Config_TMR0.c</Path>
|
||||
<Path>src\smc_gen\Config_TMR0\Config_TMR0.h</Path>
|
||||
<Path>src\smc_gen\Config_TMR0\Config_TMR0_user.c</Path>
|
||||
</Category>
|
||||
<Category Name="general">
|
||||
<Path>src\smc_gen\general\r_cg_hardware_setup.c</Path>
|
||||
<Path>src\smc_gen\general\r_cg_macrodriver.h</Path>
|
||||
<Path>src\smc_gen\general\r_cg_tmr.h</Path>
|
||||
<Path>src\smc_gen\general\r_cg_userdefine.h</Path>
|
||||
<Path>src\smc_gen\general\r_smc_cgc.c</Path>
|
||||
<Path>src\smc_gen\general\r_smc_cgc.h</Path>
|
||||
<Path>src\smc_gen\general\r_smc_cgc_user.c</Path>
|
||||
<Path>src\smc_gen\general\r_smc_entry.h</Path>
|
||||
<Path>src\smc_gen\general\r_smc_interrupt.c</Path>
|
||||
<Path>src\smc_gen\general\r_smc_interrupt.h</Path>
|
||||
</Category>
|
||||
<Category Name="r_bsp">
|
||||
<Path>src\smc_gen\r_bsp\platform.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\readme.txt</Path>
|
||||
<Category Name="board">
|
||||
<Category Name="generic_rx65n">
|
||||
<Path>src\smc_gen\r_bsp\board\generic_rx65n\hwsetup.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\board\generic_rx65n\hwsetup.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\board\generic_rx65n\r_bsp.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\board\generic_rx65n\r_bsp_config_reference.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\board\generic_rx65n\r_bsp_interrupt_config_reference.h</Path>
|
||||
</Category>
|
||||
<Category Name="user">
|
||||
<Path>src\smc_gen\r_bsp\board\user\r_bsp.h</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="doc">
|
||||
<Category Name="en">
|
||||
<Path>src\smc_gen\r_bsp\doc\en\r01an1685ej0621-rx-bsp.pdf</Path>
|
||||
</Category>
|
||||
<Category Name="ja">
|
||||
<Path>src\smc_gen\r_bsp\doc\ja\r01an1685jj0621-rx-bsp.pdf</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="mcu">
|
||||
<Category Name="all">
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\dbsct.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\fsp_common_api.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\lowlvl.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\lowlvl.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\lowsrc.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\lowsrc.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\mcu_locks.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_bsp_common.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_bsp_common.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_bsp_cpu.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_bsp_interrupts.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_bsp_interrupts.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_bsp_locking.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_bsp_mcu_startup.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_bsp_mcu_startup.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_bsp_software_interrupt.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_bsp_software_interrupt.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_fsp_error.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_rtos.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_rx_compiler.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_rx_intrinsic_functions.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_rx_intrinsic_functions.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_typedefs.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\resetprg.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\sbrk.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\sbrk.h</Path>
|
||||
</Category>
|
||||
<Category Name="rx65n">
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx65n\mcu_clocks.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx65n\mcu_clocks.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx65n\mcu_info.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx65n\mcu_init.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx65n\mcu_init.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx65n\mcu_interrupts.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx65n\mcu_interrupts.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx65n\mcu_locks.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx65n\mcu_mapped_interrupts.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx65n\mcu_mapped_interrupts.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx65n\mcu_mapped_interrupts_private.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx65n\r_bsp_cpu.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx65n\r_bsp_locking.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx65n\vecttbl.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx65n\vecttbl.h</Path>
|
||||
<Category Name="register_access">
|
||||
<Category Name="ccrx">
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx65n\register_access\ccrx\iodefine.h</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
</Category>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="r_cmt_rx">
|
||||
<Path>src\smc_gen\r_cmt_rx\r_cmt_rx_if.h</Path>
|
||||
<Path>src\smc_gen\r_cmt_rx\readme.txt</Path>
|
||||
<Category Name="doc">
|
||||
<Category Name="en">
|
||||
<Path>src\smc_gen\r_cmt_rx\doc\en\r01an1856ej0490-rx-timer.pdf</Path>
|
||||
</Category>
|
||||
<Category Name="ja">
|
||||
<Path>src\smc_gen\r_cmt_rx\doc\ja\r01an1856jj0490-rx-timer.pdf</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="src">
|
||||
<Path>src\smc_gen\r_cmt_rx\src\r_cmt_rx.c</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="r_config">
|
||||
<Path>src\smc_gen\r_config\r_bsp_config.h</Path>
|
||||
<Path>src\smc_gen\r_config\r_bsp_config_readme.txt</Path>
|
||||
<Path>src\smc_gen\r_config\r_bsp_interrupt_config.h</Path>
|
||||
<Path>src\smc_gen\r_config\r_cmt_rx_config.h</Path>
|
||||
<Path>src\smc_gen\r_config\r_ether_rx_config.h</Path>
|
||||
<Path>src\smc_gen\r_config\r_sys_time_rx_config.h</Path>
|
||||
<Path>src\smc_gen\r_config\r_t4_driver_rx_config.h</Path>
|
||||
<Path>src\smc_gen\r_config\r_t4_rx_config.h</Path>
|
||||
<Path>src\smc_gen\r_config\r_tsip_rx_config.h</Path>
|
||||
</Category>
|
||||
<Category Name="r_ether_rx">
|
||||
<Path>src\smc_gen\r_ether_rx\r_ether_rx_if.h</Path>
|
||||
<Path>src\smc_gen\r_ether_rx\readme.txt</Path>
|
||||
<Category Name="doc">
|
||||
<Category Name="en">
|
||||
<Path>src\smc_gen\r_ether_rx\doc\en\r01an2009ej0121-rx-ether.pdf</Path>
|
||||
</Category>
|
||||
<Category Name="ja">
|
||||
<Path>src\smc_gen\r_ether_rx\doc\ja\r01an2009jj0121-rx-ether.pdf</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="ref">
|
||||
<Path>src\smc_gen\r_ether_rx\ref\r_ether_rx_config_reference.h</Path>
|
||||
</Category>
|
||||
<Category Name="src">
|
||||
<Path>src\smc_gen\r_ether_rx\src\r_ether_rx.c</Path>
|
||||
<Path>src\smc_gen\r_ether_rx\src\r_ether_rx_private.h</Path>
|
||||
<Category Name="phy">
|
||||
<Path>src\smc_gen\r_ether_rx\src\phy\phy.c</Path>
|
||||
<Path>src\smc_gen\r_ether_rx\src\phy\phy.h</Path>
|
||||
</Category>
|
||||
<Category Name="targets">
|
||||
<Category Name="rx65n">
|
||||
<Path>src\smc_gen\r_ether_rx\src\targets\rx65n\r_ether_setting_rx65n.c</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="r_pincfg">
|
||||
<Path>src\smc_gen\r_pincfg\Pin.c</Path>
|
||||
<Path>src\smc_gen\r_pincfg\Pin.h</Path>
|
||||
<Path>src\smc_gen\r_pincfg\r_ether_rx_pinset.c</Path>
|
||||
<Path>src\smc_gen\r_pincfg\r_ether_rx_pinset.h</Path>
|
||||
<Path>src\smc_gen\r_pincfg\r_pinset.h</Path>
|
||||
</Category>
|
||||
<Category Name="r_sys_time_rx">
|
||||
<Path>src\smc_gen\r_sys_time_rx\r_sys_time_rx_if.h</Path>
|
||||
<Path>src\smc_gen\r_sys_time_rx\readme.txt</Path>
|
||||
<Category Name="doc">
|
||||
<Category Name="en">
|
||||
<Path>src\smc_gen\r_sys_time_rx\doc\en\r20an0431ej0101-rx-middle.pdf</Path>
|
||||
</Category>
|
||||
<Category Name="ja">
|
||||
<Path>src\smc_gen\r_sys_time_rx\doc\ja\r20an0431jj0101-rx-middle.pdf</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="ref">
|
||||
<Path>src\smc_gen\r_sys_time_rx\ref\r_sys_time_rx_config_reference.h</Path>
|
||||
</Category>
|
||||
<Category Name="src">
|
||||
<Path>src\smc_gen\r_sys_time_rx\src\r_sys_time_rx.c</Path>
|
||||
<Path>src\smc_gen\r_sys_time_rx\src\r_sys_time_rx_private.h</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="r_t4_driver_rx">
|
||||
<Path>src\smc_gen\r_t4_driver_rx\readme.txt</Path>
|
||||
<Category Name="doc">
|
||||
<Category Name="en">
|
||||
<Path>src\smc_gen\r_t4_driver_rx\doc\en\r20an0311ej0109-rx-t4.pdf</Path>
|
||||
</Category>
|
||||
<Category Name="ja">
|
||||
<Path>src\smc_gen\r_t4_driver_rx\doc\ja\r20an0311jj0109-rx-t4.pdf</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="ref">
|
||||
<Path>src\smc_gen\r_t4_driver_rx\ref\r_t4_driver_rx_config_reference.h</Path>
|
||||
</Category>
|
||||
<Category Name="src">
|
||||
<Path>src\smc_gen\r_t4_driver_rx\src\ether_callback.c</Path>
|
||||
<Path>src\smc_gen\r_t4_driver_rx\src\t4_driver.c</Path>
|
||||
<Path>src\smc_gen\r_t4_driver_rx\src\timer.c</Path>
|
||||
<Path>src\smc_gen\r_t4_driver_rx\src\timer.h</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="r_t4_rx">
|
||||
<Path>src\smc_gen\r_t4_rx\readme.txt</Path>
|
||||
<Category Name="doc">
|
||||
<Category Name="en">
|
||||
<Path>src\smc_gen\r_t4_rx\doc\en\r20an0051ej0210-rx-t4.pdf</Path>
|
||||
<Path>src\smc_gen\r_t4_rx\doc\en\r20uw0031ej0111-t4tiny.pdf</Path>
|
||||
<Path>src\smc_gen\r_t4_rx\doc\en\r20uw0032ej0109-t4tiny.pdf</Path>
|
||||
</Category>
|
||||
<Category Name="ja">
|
||||
<Path>src\smc_gen\r_t4_rx\doc\ja\r20an0051jj0210-rx-t4.pdf</Path>
|
||||
<Path>src\smc_gen\r_t4_rx\doc\ja\r20uw0031jj0111-t4tiny.pdf</Path>
|
||||
<Path>src\smc_gen\r_t4_rx\doc\ja\r20uw0032jj0109-t4tiny.pdf</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="lib">
|
||||
<Path>src\smc_gen\r_t4_rx\lib\r_mw_version.h</Path>
|
||||
<Path>src\smc_gen\r_t4_rx\lib\r_stdint.h</Path>
|
||||
<Path>src\smc_gen\r_t4_rx\lib\r_t4_itcpip.h</Path>
|
||||
</Category>
|
||||
<Category Name="ref">
|
||||
<Path>src\smc_gen\r_t4_rx\ref\r_t4_rx_config_reference.h</Path>
|
||||
</Category>
|
||||
<Category Name="src">
|
||||
<Path>src\smc_gen\r_t4_rx\src\config_tcpudp.c</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="r_tsip_rx">
|
||||
<Path>src\smc_gen\r_tsip_rx\r_tsip_rx_if.h</Path>
|
||||
<Path>src\smc_gen\r_tsip_rx\readme.txt</Path>
|
||||
<Category Name="doc">
|
||||
<Category Name="en">
|
||||
<Path>src\smc_gen\r_tsip_rx\doc\en\r20an0548ej0114-rx-tsip-security.pdf</Path>
|
||||
</Category>
|
||||
<Category Name="ja">
|
||||
<Path>src\smc_gen\r_tsip_rx\doc\ja\r20an0548jj0114-rx-tsip-security.pdf</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="ref">
|
||||
<Path>src\smc_gen\r_tsip_rx\ref\r_tsip_rx_config_reference.h</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
</Category>
|
||||
</Category>
|
||||
</Files>
|
||||
<Device Category="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.cpu.rx600" Series="RX">R5F565NEHxFC</Device>
|
||||
<BuildOptions Name="CC-RX" Version="v3.03.00">
|
||||
<BuildMode Active="True" Name="HardwareDebug">
|
||||
<GeneralOptions/>
|
||||
<CompileOptions>
|
||||
<Option>-isa=rxv2</Option>
|
||||
<Option>-fpu</Option>
|
||||
<Option>-round=zero</Option>
|
||||
<Option>-include="${ProjDirPath}\..\common"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\Config_TMR0"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_bsp"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_config"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_tsip_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_cmt_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_cmt_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_driver_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_driver_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_rx\lib"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_ether_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_sys_time_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_sys_time_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\general"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_pincfg"</Option>
|
||||
<Option>-include="${ProjDirPath}\generate"</Option>
|
||||
<Option>-define=DEBUG_CONSOLE,WOLFSSL_USER_SETTINGS</Option>
|
||||
<Option>-utf8</Option>
|
||||
<Option>-nomessage</Option>
|
||||
<Option>-debug</Option>
|
||||
<Option>-outcode=utf8</Option>
|
||||
<Option>-optimize=0</Option>
|
||||
<Option>-nologo</Option>
|
||||
<Option>-lang=c99</Option>
|
||||
<Option>-lang=cpp</Option>
|
||||
<Option>-output=obj=${CONFIGDIR}\${FILELEAF}.obj</Option>
|
||||
<Option>-obj_path=${CONFIGDIR}</Option>
|
||||
</CompileOptions>
|
||||
<AssembleOptions>
|
||||
<Option>-isa=rxv2</Option>
|
||||
<Option>-fpu</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\general"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_pincfg"</Option>
|
||||
<Option>-utf8</Option>
|
||||
<Option>-debug</Option>
|
||||
<Option>-nologo</Option>
|
||||
<Option>-output=${CONFIGDIR}</Option>
|
||||
</AssembleOptions>
|
||||
<LinkOptions>
|
||||
<Option>-output="${ProjName}.abs"</Option>
|
||||
<Option>-form=absolute</Option>
|
||||
<Option>-nomessage</Option>
|
||||
<Option>-vect=_undefined_interrupt_source_isr</Option>
|
||||
<Option>-list=${ProjName}.map</Option>
|
||||
<Option>-nooptimize</Option>
|
||||
<Option>-rom=D=R,D_1=R_1,D_2=R_2</Option>
|
||||
<Option>-cpu=RAM=00000000-0003ffff,FIX=00080000-00083fff,FIX=00086000-00087fff,FIX=00088000-0009ffff,FIX=000a0000-000a3fff,RAM=000a4000-000a5fff,FIX=000a6000-000bffff,FIX=000c0000-000dffff,FIX=000e0000-000fffff,ROM=00100000-00107fff,FIX=007fc000-007fcfff,FIX=007fe000-007fffff,RAM=00800000-0085ffff,RAM=fe7f5d00-fe7f5d7f,RAM=fe7f7d70-fe7f7d9f,ROM=ffe00000-ffffffff</Option>
|
||||
<Option>-nologo</Option>
|
||||
<Option>-library="${ProjDirPath}/../${ProjName}/src/smc_gen/r_t4_rx/lib/ccrx/T4_Library_ether_ccrx_rxv1_little_debug.lib"</Option>
|
||||
<Option>-library="${ProjDirPath}/../${ProjName}/src/smc_gen/r_tsip_rx/lib/ccrx/r_tsip_rx65n_little.lib"</Option>
|
||||
<Option>-library="${ProjDirPath}/../wolfssl/Debug/wolfssl.lib"</Option>
|
||||
<Option>-start=SU,SI,B_1,R_1,B_2,R_2,B,R/04,B_ETHERNET_BUFFERS_1,B_RX_DESC_1,B_TX_DESC_1/020000,C_1,C_2,C,C$*,D*,W*,L,P/0FFE00000,EXCEPTVECT/0FFFFFF80,RESETVECT/0FFFFFFFC</Option>
|
||||
<PreLinker>Auto</PreLinker>
|
||||
</LinkOptions>
|
||||
<LibraryGenerateOptions>
|
||||
<Option>-isa=rxv2</Option>
|
||||
<Option>-fpu</Option>
|
||||
<Option>-round=zero</Option>
|
||||
<Option>-lang=c99</Option>
|
||||
<Option>-head=runtime,ctype,stdio,stdlib,string,new</Option>
|
||||
<Option>-output="${ProjName}.lib"</Option>
|
||||
<Option>-optimize=0</Option>
|
||||
<Option>-nologo</Option>
|
||||
<GenerateMode>BuildOptionChanged</GenerateMode>
|
||||
</LibraryGenerateOptions>
|
||||
<LinkOrder>
|
||||
<Path>HardwareDebug\benchmark.obj</Path>
|
||||
<Path>HardwareDebug\key_data.obj</Path>
|
||||
<Path>HardwareDebug\Config_TMR0.obj</Path>
|
||||
<Path>HardwareDebug\Config_TMR0_user.obj</Path>
|
||||
<Path>HardwareDebug\r_cg_hardware_setup.obj</Path>
|
||||
<Path>HardwareDebug\r_smc_cgc.obj</Path>
|
||||
<Path>HardwareDebug\r_smc_cgc_user.obj</Path>
|
||||
<Path>HardwareDebug\r_smc_interrupt.obj</Path>
|
||||
<Path>HardwareDebug\hwsetup.obj</Path>
|
||||
<Path>HardwareDebug\dbsct.obj</Path>
|
||||
<Path>HardwareDebug\lowlvl.obj</Path>
|
||||
<Path>HardwareDebug\lowsrc.obj</Path>
|
||||
<Path>HardwareDebug\mcu_locks.obj</Path>
|
||||
<Path>HardwareDebug\r_bsp_common.obj</Path>
|
||||
<Path>HardwareDebug\r_bsp_cpu.obj</Path>
|
||||
<Path>HardwareDebug\r_bsp_interrupts.obj</Path>
|
||||
<Path>HardwareDebug\r_bsp_locking.obj</Path>
|
||||
<Path>HardwareDebug\r_bsp_mcu_startup.obj</Path>
|
||||
<Path>HardwareDebug\r_bsp_software_interrupt.obj</Path>
|
||||
<Path>HardwareDebug\r_rx_intrinsic_functions.obj</Path>
|
||||
<Path>HardwareDebug\resetprg.obj</Path>
|
||||
<Path>HardwareDebug\sbrk.obj</Path>
|
||||
<Path>HardwareDebug\mcu_clocks.obj</Path>
|
||||
<Path>HardwareDebug\mcu_init.obj</Path>
|
||||
<Path>HardwareDebug\mcu_interrupts.obj</Path>
|
||||
<Path>HardwareDebug\mcu_mapped_interrupts.obj</Path>
|
||||
<Path>HardwareDebug\vecttbl.obj</Path>
|
||||
<Path>HardwareDebug\r_cmt_rx.obj</Path>
|
||||
<Path>HardwareDebug\phy.obj</Path>
|
||||
<Path>HardwareDebug\r_ether_rx.obj</Path>
|
||||
<Path>HardwareDebug\r_ether_setting_rx65n.obj</Path>
|
||||
<Path>HardwareDebug\Pin.obj</Path>
|
||||
<Path>HardwareDebug\r_ether_rx_pinset.obj</Path>
|
||||
<Path>HardwareDebug\r_sys_time_rx.obj</Path>
|
||||
<Path>HardwareDebug\ether_callback.obj</Path>
|
||||
<Path>HardwareDebug\t4_driver.obj</Path>
|
||||
<Path>HardwareDebug\timer.obj</Path>
|
||||
<Path>HardwareDebug\config_tcpudp.obj</Path>
|
||||
<Path>HardwareDebug\test.obj</Path>
|
||||
<Path>HardwareDebug\test_main.obj</Path>
|
||||
<Path>HardwareDebug\wolf_client.obj</Path>
|
||||
<Path>HardwareDebug\wolf_server.obj</Path>
|
||||
<Path>HardwareDebug\wolfssl_dummy.obj</Path>
|
||||
<Path>HardwareDebug\test.lib</Path>
|
||||
</LinkOrder>
|
||||
<NoTargetFile Target="generate\dbsct.c"/>
|
||||
<NoTargetFile Target="generate\hwsetup.c"/>
|
||||
<NoTargetFile Target="generate\intprg.c"/>
|
||||
<NoTargetFile Target="generate\resetprg.c"/>
|
||||
<NoTargetFile Target="generate\sbrk.c"/>
|
||||
<NoTargetFile Target="generate\vecttbl.c"/>
|
||||
<CommonOptions>
|
||||
<IncludePathForC>"${ProjDirPath}\..\common"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\Config_TMR0"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_bsp"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_config"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_tsip_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_cmt_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_cmt_rx\src"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_driver_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_driver_rx\src"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_rx\lib"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_ether_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_sys_time_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_sys_time_rx\src"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\general"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_pincfg"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\generate"</IncludePathForC>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\${ProjName}\src\smc_gen\general"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_pincfg"</IncludePathForAsm>
|
||||
<MacroForC>DEBUG_CONSOLE</MacroForC>
|
||||
<MacroForC>WOLFSSL_USER_SETTINGS</MacroForC>
|
||||
</CommonOptions>
|
||||
</BuildMode>
|
||||
<BuildMode Active="False" Name="Debug">
|
||||
<GeneralOptions/>
|
||||
<CompileOptions>
|
||||
<Option>-isa=rxv2</Option>
|
||||
<Option>-fpu</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_bsp"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_config"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_tsip_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_tsip_rx\src\targets\rx231"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_tsip_rx\src\targets\rx66t"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_tsip_rx\src\targets\rx65n"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_cmt_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_cmt_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_driver_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_driver_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_rx\lib"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_ether_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_sys_time_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_sys_time_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\general"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_pincfg"</Option>
|
||||
<Option>-include="${ProjDirPath}\generate"</Option>
|
||||
<Option>-define=DEBUG_CONSOLE</Option>
|
||||
<Option>-utf8</Option>
|
||||
<Option>-nomessage</Option>
|
||||
<Option>-debug</Option>
|
||||
<Option>-outcode=utf8</Option>
|
||||
<Option>-nologo</Option>
|
||||
<Option>-lang=c99</Option>
|
||||
<Option>-lang=cpp</Option>
|
||||
<Option>-output=obj=${CONFIGDIR}\${FILELEAF}.obj</Option>
|
||||
<Option>-obj_path=${CONFIGDIR}</Option>
|
||||
</CompileOptions>
|
||||
<AssembleOptions>
|
||||
<Option>-isa=rxv2</Option>
|
||||
<Option>-fpu</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\general"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\${ProjName}\src\smc_gen\r_pincfg"</Option>
|
||||
<Option>-utf8</Option>
|
||||
<Option>-debug</Option>
|
||||
<Option>-nologo</Option>
|
||||
<Option>-output=${CONFIGDIR}</Option>
|
||||
</AssembleOptions>
|
||||
<LinkOptions>
|
||||
<Option>-output="${ProjName}.abs"</Option>
|
||||
<Option>-form=absolute</Option>
|
||||
<Option>-nomessage</Option>
|
||||
<Option>-vect=_undefined_interrupt_source_isr</Option>
|
||||
<Option>-list=${ProjName}.map</Option>
|
||||
<Option>-nooptimize</Option>
|
||||
<Option>-rom=D=R,D_1=R_1,D_2=R_2</Option>
|
||||
<Option>-cpu=RAM=00000000-0003ffff,FIX=00080000-00083fff,FIX=00086000-00087fff,FIX=00088000-0009ffff,FIX=000a0000-000a3fff,RAM=000a4000-000a5fff,FIX=000a6000-000bffff,FIX=000c0000-000dffff,FIX=000e0000-000fffff,ROM=00100000-00107fff,FIX=007fc000-007fcfff,FIX=007fe000-007fffff,RAM=00800000-0085ffff,RAM=fe7f5d00-fe7f5d7f,RAM=fe7f7d70-fe7f7d9f,ROM=ffe00000-ffffffff</Option>
|
||||
<Option>-nologo</Option>
|
||||
<Option>-library="${ProjDirPath}/../${ProjName}/src/smc_gen/r_t4_rx/lib/T4_Library_rxv1_ether_little.lib"</Option>
|
||||
<Option>-start=SU,SI,B_1,R_1,B_2,R_2,B,R/04,C_1,C_2,C,C$*,D*,W*,L,P*/0FFE00000,EXCEPTVECT/0FFFFFF80,RESETVECT/0FFFFFFFC,B_ETHERNET_BUFFERS_1,B_RX_DESC_1,B_TX_DESC_1/00010000</Option>
|
||||
<PreLinker>Auto</PreLinker>
|
||||
</LinkOptions>
|
||||
<LibraryGenerateOptions>
|
||||
<Option>-isa=rxv2</Option>
|
||||
<Option>-fpu</Option>
|
||||
<Option>-lang=c99</Option>
|
||||
<Option>-head=runtime,stdio,stdlib,string,new</Option>
|
||||
<Option>-output="${ProjName}.lib"</Option>
|
||||
<Option>-nologo</Option>
|
||||
<GenerateMode>BuildOptionChanged</GenerateMode>
|
||||
</LibraryGenerateOptions>
|
||||
<LinkOrder>
|
||||
<Path>Debug\benchmark.obj</Path>
|
||||
<Path>Debug\key_data.obj</Path>
|
||||
<Path>Debug\Config_TMR0.obj</Path>
|
||||
<Path>Debug\Config_TMR0_user.obj</Path>
|
||||
<Path>Debug\r_cg_hardware_setup.obj</Path>
|
||||
<Path>Debug\r_smc_cgc.obj</Path>
|
||||
<Path>Debug\r_smc_cgc_user.obj</Path>
|
||||
<Path>Debug\r_smc_interrupt.obj</Path>
|
||||
<Path>Debug\hwsetup.obj</Path>
|
||||
<Path>Debug\dbsct.obj</Path>
|
||||
<Path>Debug\lowlvl.obj</Path>
|
||||
<Path>Debug\lowsrc.obj</Path>
|
||||
<Path>Debug\mcu_locks.obj</Path>
|
||||
<Path>Debug\r_bsp_common.obj</Path>
|
||||
<Path>Debug\r_bsp_cpu.obj</Path>
|
||||
<Path>Debug\r_bsp_interrupts.obj</Path>
|
||||
<Path>Debug\r_bsp_locking.obj</Path>
|
||||
<Path>Debug\r_bsp_mcu_startup.obj</Path>
|
||||
<Path>Debug\r_bsp_software_interrupt.obj</Path>
|
||||
<Path>Debug\r_rx_intrinsic_functions.obj</Path>
|
||||
<Path>Debug\resetprg.obj</Path>
|
||||
<Path>Debug\sbrk.obj</Path>
|
||||
<Path>Debug\mcu_clocks.obj</Path>
|
||||
<Path>Debug\mcu_init.obj</Path>
|
||||
<Path>Debug\mcu_interrupts.obj</Path>
|
||||
<Path>Debug\mcu_mapped_interrupts.obj</Path>
|
||||
<Path>Debug\vecttbl.obj</Path>
|
||||
<Path>Debug\r_cmt_rx.obj</Path>
|
||||
<Path>Debug\phy.obj</Path>
|
||||
<Path>Debug\r_ether_rx.obj</Path>
|
||||
<Path>Debug\r_ether_setting_rx65n.obj</Path>
|
||||
<Path>Debug\Pin.obj</Path>
|
||||
<Path>Debug\r_ether_rx_pinset.obj</Path>
|
||||
<Path>Debug\r_sys_time_rx.obj</Path>
|
||||
<Path>Debug\ether_callback.obj</Path>
|
||||
<Path>Debug\t4_driver.obj</Path>
|
||||
<Path>Debug\timer.obj</Path>
|
||||
<Path>Debug\config_tcpudp.obj</Path>
|
||||
<Path>Debug\test.obj</Path>
|
||||
<Path>Debug\test_main.obj</Path>
|
||||
<Path>Debug\wolf_client.obj</Path>
|
||||
<Path>Debug\wolf_server.obj</Path>
|
||||
<Path>Debug\wolfssl_dummy.obj</Path>
|
||||
<Path>Debug\test.lib</Path>
|
||||
</LinkOrder>
|
||||
<NoTargetFile Target="generate\dbsct.c"/>
|
||||
<NoTargetFile Target="generate\hwsetup.c"/>
|
||||
<NoTargetFile Target="generate\intprg.c"/>
|
||||
<NoTargetFile Target="generate\resetprg.c"/>
|
||||
<NoTargetFile Target="generate\sbrk.c"/>
|
||||
<NoTargetFile Target="generate\vecttbl.c"/>
|
||||
<CommonOptions>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_bsp"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_config"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_tsip_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_tsip_rx\src\targets\rx231"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_tsip_rx\src\targets\rx66t"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_tsip_rx\src\targets\rx65n"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_cmt_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_cmt_rx\src"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_driver_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_driver_rx\src"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_t4_rx\lib"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_ether_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_sys_time_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_sys_time_rx\src"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\general"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_pincfg"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\generate"</IncludePathForC>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\${ProjName}\src\smc_gen\general"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\${ProjName}\src\smc_gen\r_pincfg"</IncludePathForAsm>
|
||||
<MacroForC>DEBUG_CONSOLE</MacroForC>
|
||||
</CommonOptions>
|
||||
</BuildMode>
|
||||
</BuildOptions>
|
||||
</Project>
|
||||
</MicomToolCommonProjectFile>
|
||||
@@ -1,169 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<launchConfiguration type="com.renesas.cdt.launch.dsf.gdbremote.launchConfigurationType">
|
||||
<booleanAttribute key=".setStepMode" value="false"/>
|
||||
<stringAttribute key="com.renesas.cdt.core.additionalServerArgs" value=""/>
|
||||
<stringAttribute key="com.renesas.cdt.core.initCommands" value=""/>
|
||||
<stringAttribute key="com.renesas.cdt.core.ipAddress" value="localhost"/>
|
||||
<stringAttribute key="com.renesas.cdt.core.jtagDevice" value="E1 (RX)"/>
|
||||
<stringAttribute key="com.renesas.cdt.core.jtagDeviceId" value="com.renesas.hardwaredebug.rx.e1"/>
|
||||
<listAttribute key="com.renesas.cdt.core.listGDBExe">
|
||||
<listEntry value="rx-elf-gdb -rx-force-v2"/>
|
||||
</listAttribute>
|
||||
<listAttribute key="com.renesas.cdt.core.listGDBLaunchName">
|
||||
<listEntry value="main"/>
|
||||
</listAttribute>
|
||||
<listAttribute key="com.renesas.cdt.core.listGDBPort">
|
||||
<listEntry value="61234"/>
|
||||
</listAttribute>
|
||||
<stringAttribute key="com.renesas.cdt.core.optionInitCommands" value="monitor set_internal_mem_overwrite 0-581 "/>
|
||||
<intAttribute key="com.renesas.cdt.core.portNumber" value="61234"/>
|
||||
<stringAttribute key="com.renesas.cdt.core.runCommands" value=""/>
|
||||
<stringAttribute key="com.renesas.cdt.core.secondGDBExe" value="green_dsp-elf-gdb"/>
|
||||
<booleanAttribute key="com.renesas.cdt.core.secondGDBSupport" value="false"/>
|
||||
<intAttribute key="com.renesas.cdt.core.secondGdbPortNumber" value="61237"/>
|
||||
<stringAttribute key="com.renesas.cdt.core.serverParam" value="-g E1 -t R5F565NE -uClockSrcHoco= 0 -uInputClock= 24.0000 -uAllowClockSourceInternal= 1 -uUseFine= 0 -uJTagClockFreq= 6.188 -w 0 -z 0 -uRegisterSetting= 0 -uModePin= 0 -uChangeStartupBank= 0 -uStartupBank= 0 -uDebugMode= 0 -uExecuteProgram= 0 -uIdCode= FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF -uresetOnReload= 1 -n 0 -uWorkRamAddress= 1000 -uverifyOnWritingMemory= 0 -uProgReWriteIRom= 0 -uProgReWriteDFlash= 0 -uhookWorkRamAddr= 0x3fdd0 -uhookWorkRamSize= 0x230"/>
|
||||
<booleanAttribute key="com.renesas.cdt.core.startServer" value="true"/>
|
||||
<stringAttribute key="com.renesas.cdt.core.targetDevice" value="R5F565NE"/>
|
||||
<booleanAttribute key="com.renesas.cdt.core.useRemoteTarget" value="true"/>
|
||||
<booleanAttribute key="com.renesas.cdt.core.verboseMode" value="false"/>
|
||||
<stringAttribute key="com.renesas.cdt.debug.ioview.dsf.registerSelection0" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <selectedRegisterList ioFilePath="C:\Users\Taka\.eclipse\com.renesas.platform_1380223289\DebugComp\RX\IoFiles\RX65N.sfrx"/> "/>
|
||||
<stringAttribute key="com.renesas.cdt.launch.dsf.IO_MAP" value="${support_area_loc}"/>
|
||||
<booleanAttribute key="com.renesas.cdt.launch.dsf.USE_DEFAULT_IO_MAP" value="true"/>
|
||||
<listAttribute key="com.renesas.cdt.launch.dsf.downloadImages">
|
||||
<listEntry value="|true|true|true|0|true|No core"/>
|
||||
</listAttribute>
|
||||
<booleanAttribute key="com.renesas.cdt.launch.dsf.downloadImagesUpgradedV30" value="true"/>
|
||||
<stringAttribute key="com.renesas.cdt.launch.dsf.launchSeqType" value="com.renesas.cdt.launch.dsf.launchSequence.e2GdbServer"/>
|
||||
<stringAttribute key="com.renesas.cdt.launch.dsf.serverPath" value="${renesas.support.targetLoc:rx-debug}\e2-server-gdb"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.allow.change.startup_bank" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.allow.clock.source.internal" value="true"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.e1.clock_source" value="0"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.connection.mode" value="0"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.e1_pwr" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.enable.hot.plug" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.execute.program" value="false"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.external_memory" value=""/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.fine.baud.rate" value="2.00"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.flash_overwrite_blocks" value="0-581"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.hook_Stop_func" value="0x0"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.hook_enable_Stop" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.hook_enable_start" value="false"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.hook_start_func" value="0x0"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.e1.hook_work_ram_Addr" value="261584"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.e1.hook_work_ram_Size" value="560"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.id_code" value="FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.inputclock" value="24.0000"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.jtag.clock.freq" value="6.188"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.jtag.or.fine" value="0"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.le" value="true"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.mode" value="0"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.mode_pin" value="0"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.prog_rewrite_dflash" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.prog_rewrite_irom" value="false"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.serial_number" value=""/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.startup_bank" value="0"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.supply.voltage" value="3.3V"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.e1.timer_clock" value="0"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.verify.on.writing.to.memory" value="false"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.e1.work_ram_start" value="4096"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.ez.allow.clock.source.internal" value="true"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.ez.clock_source" value="1"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.connection.mode" value="0"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.ez.enable.hot.plug" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.ez.execute.program" value="false"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.external_memory" value=""/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.fine.baud.rate" value="1.00"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.flash_overwrite_blocks" value="0-31"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.hook_Stop_func" value="0x0"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.ez.hook_enable_Stop" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.ez.hook_enable_start" value="false"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.hook_start_func" value="0x0"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.ez.hook_work_ram_Addr" value="9680"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.ez.hook_work_ram_Size" value="560"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.id_code" value="FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.inputclock" value="22.0"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.jtag.clock.freq" value="16.5"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.jtag.or.fine" value="1"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.ez.le" value="true"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.mode" value="0"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.mode_pin" value="0"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.power.voltage" value="0.0000"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.ez.prog_rewrite_dflash" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.ez.prog_rewrite_irom" value="false"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.serial_number" value=""/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.ez.timer_clock" value="0"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.ez.work_ram_start" value="4096"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e1.E1DebugToolSettingsTree.resetAfterReload" value="true"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e2.E2LiteDebugToolSettingsTree.resetAfterReload" value="true"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e2lite.allow.change.startup_bank" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e2lite.allow.clock.source.internal" value="true"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.rx.e2lite.clock_source" value="0"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.connection.mode" value="0"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e2lite.e2lite_pwr" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e2lite.enable.hot.plug" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e2lite.execute.program" value="false"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.external_memory" value=""/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.fine.baud.rate" value="1.50"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.flash_overwrite_blocks" value="0-645"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.hook_Stop_func" value="0x0"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e2lite.hook_enable_Stop" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e2lite.hook_enable_start" value="false"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.hook_start_func" value="0x0"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.rx.e2lite.hook_work_ram_Addr" value="523072"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.rx.e2lite.hook_work_ram_Size" value="1216"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.id_code" value="FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.inputclock" value="16.0000"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.jtag.clock.freq" value="6.00"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.jtag.or.fine" value="1"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e2lite.le" value="true"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.mode" value="0"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.mode_pin" value="0"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e2lite.prog_rewrite_dflash" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e2lite.prog_rewrite_irom" value="false"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.serial_number" value=""/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.startup_bank" value="0"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.supply.voltage" value="3.3"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.rx.e2lite.timer_clock" value="0"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.rx.e2lite.work_ram_start" value="4096"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.ez.EzDebugToolSettingsTree.resetAfterReload" value="true"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.timemeasurement" value="true"/>
|
||||
<intAttribute key="org.eclipse.cdt.debug.gdbjtag.core.delay" value="3"/>
|
||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.doHalt" value="false"/>
|
||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.doReset" value="false"/>
|
||||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.imageFileName" value="F:\Work\1_Renesas\tsip113_integrate\wolfssl\IDE\Renesas\e2studio\RSK+RX65N-2MB\test\HardwareDebug\test.x"/>
|
||||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.imageOffset" value="0"/>
|
||||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.initCommands" value=""/>
|
||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadImage" value="true"/>
|
||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadSymbols" value="true"/>
|
||||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.pcRegister" value=""/>
|
||||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.runCommands" value=""/>
|
||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setPcRegister" value="false"/>
|
||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setResume" value="false"/>
|
||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setStopAt" value="true"/>
|
||||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.stopAt" value="main"/>
|
||||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.symbolsFileName" value="F:\Work\1_Renesas\tsip113_integrate\wolfssl\IDE\Renesas\e2studio\RSK+RX65N-2MB\test\HardwareDebug\test.x"/>
|
||||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.symbolsOffset" value="0"/>
|
||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useFileForImage" value="false"/>
|
||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useFileForSymbols" value="false"/>
|
||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useProjBinaryForImage" value="true"/>
|
||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useProjBinaryForSymbols" value="true"/>
|
||||
<stringAttribute key="org.eclipse.cdt.dsf.gdb.DEBUG_NAME" value="rx-elf-gdb -rx-force-v2"/>
|
||||
<booleanAttribute key="org.eclipse.cdt.dsf.gdb.NON_STOP" value="true"/>
|
||||
<intAttribute key="org.eclipse.cdt.launch.ATTR_BUILD_BEFORE_LAUNCH_ATTR" value="2"/>
|
||||
<stringAttribute key="org.eclipse.cdt.launch.COREFILE_PATH" value=""/>
|
||||
<stringAttribute key="org.eclipse.cdt.launch.DEBUGGER_START_MODE" value="remote"/>
|
||||
<booleanAttribute key="org.eclipse.cdt.launch.DEBUGGER_STOP_AT_MAIN" value="true"/>
|
||||
<stringAttribute key="org.eclipse.cdt.launch.DEBUGGER_STOP_AT_MAIN_SYMBOL" value="main"/>
|
||||
<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="HardwareDebug/test.x"/>
|
||||
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_ATTR" value="test"/>
|
||||
<booleanAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_AUTO_ATTR" value="true"/>
|
||||
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_ID_ATTR" value="com.renesas.cdt.managedbuild.renesas.ccrx.hardwaredebug.configuration.1378385971"/>
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
||||
<listEntry value="/test"/>
|
||||
</listAttribute>
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||
<listEntry value="4"/>
|
||||
</listAttribute>
|
||||
<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?><memoryBlockExpressionList context="reserved-for-future-use"/>"/>
|
||||
<stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/>
|
||||
</launchConfiguration>
|
||||
@@ -14,7 +14,7 @@
|
||||
</storageModule>
|
||||
<storageModule moduleId="com.renesas.cdt.managedbuild.core.toolchainInfo">
|
||||
<option id="toolchain.id" value="Renesas_RXC"/>
|
||||
<option id="toolchain.version" value="v3.03.00"/>
|
||||
<option id="toolchain.version" value="v3.04.00"/>
|
||||
<option id="toolchain.enable" value="true"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
@@ -30,12 +30,12 @@
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.common.566285610" name="Common" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.common">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.789156168" name="命令セット・アーキテクチャ (-isa)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.rxv2" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasFpu.1416683217" name="Has FPU" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasFpu" useByScannerDiscovery="false" value="TRUE" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceName.738625467" name="Device Name" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceName" useByScannerDiscovery="false" value="R5F565NEHxFC" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceName.738625467" name="Device Name" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceName" useByScannerDiscovery="false" value="R5F565NEDxFC" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceCommand.806008705" name="Device Command" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceCommand" useByScannerDiscovery="false" value="R5F565NE" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.checkRtos.313687436" name="Check RTOS" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.checkRtos" useByScannerDiscovery="false" value="unusedRtos" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasDsp.963524125" name="Has DSP" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasDsp" useByScannerDiscovery="false" value="false" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceFamily.664031971" name="Device Family" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceFamily" useByScannerDiscovery="false" value="RX65N" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceHistory.1128940076" name="Device history" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceHistory" useByScannerDiscovery="false" value="R5F572NNHxFB;R5F565NEHxFC" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceHistory.1128940076" name="Device history" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceHistory" useByScannerDiscovery="false" value="R5F565NEHxFC;R5F565NEDxFC" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.rxArchitecture.1334393839" name="RX Architecture" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.rxArchitecture" value="rxv2" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns.1627839884" name="浮動小数点演算命令を使用する (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns.yes" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isaHistory.1548751985" name="ISA history" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isaHistory" value="non_init;com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.rxv2" valueType="string"/>
|
||||
@@ -43,19 +43,25 @@
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.compiler.958103973" name="Compiler" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.compiler">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu.1276851320" name="浮動小数点演算命令を使用する (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu.yes" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.include.1381248206" name="インクルード・ファイルを検索するフォルダ (-include)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.include" useByScannerDiscovery="false" valueType="includePath">
|
||||
<listOptionValue builtIn="false" value="${ProjDirPath}/../common"/>
|
||||
<listOptionValue builtIn="false" value="${ProjDirPath}//../../../../../../"/>
|
||||
<listOptionValue builtIn="false" value="${TCINSTALL}/include"/>
|
||||
<listOptionValue builtIn="false" value="${ProjDirPath}/../test/src/smc_gen/"/>
|
||||
<listOptionValue builtIn="false" value="${ProjDirPath}/../test/src/smc_gen/r_bsp"/>
|
||||
<listOptionValue builtIn="false" value="${ProjDirPath}/../test/src/smc_gen/r_config"/>
|
||||
<listOptionValue builtIn="false" value="${ProjDirPath}/../test/src/smc_gen/r_tsip_rx"/>
|
||||
<listOptionValue builtIn="false" value=""${ProjDirPath}/../../../../../../""/>
|
||||
<listOptionValue builtIn="false" value=""${ProjDirPath}/../wolfssl_demo""/>
|
||||
<listOptionValue builtIn="false" value=""${ProjDirPath}/../../../../../../../demos""/>
|
||||
<listOptionValue builtIn="false" value=""${ProjDirPath}/../../../../../../../freertos_kernel/include""/>
|
||||
<listOptionValue builtIn="false" value=""${ProjDirPath}/../../../../../../../freertos_kernel/portable/Renesas/RX600v2""/>
|
||||
<listOptionValue builtIn="false" value=""${ProjDirPath}/../../../../../../../libraries/freertos_plus/standard/freertos_plus_tcp/include""/>
|
||||
<listOptionValue builtIn="false" value=""${ProjDirPath}/../../../../../../../vendors/renesas/amazon_freertos_common""/>
|
||||
<listOptionValue builtIn="false" value=""${ProjDirPath}/../../../../../../../vendors/renesas/boards/rx65n-rsk/aws_demos/config_files""/>
|
||||
<listOptionValue builtIn="false" value=""${ProjDirPath}/../../../../../../../vendors/renesas/boards/rx65n-rsk/aws_demos/src/smc_gen""/>
|
||||
<listOptionValue builtIn="false" value=""${ProjDirPath}/../../../../../../../vendors/renesas/boards/rx65n-rsk/aws_demos/src/smc_gen/r_config""/>
|
||||
<listOptionValue builtIn="false" value=""${ProjDirPath}/../../../../../../../vendors/renesas/boards/rx65n-rsk/aws_demos/src/smc_gen/r_bsp""/>
|
||||
<listOptionValue builtIn="false" value=""${ProjDirPath}/../../../../../../../vendors/renesas/boards/rx65n-rsk/aws_demos/src/smc_gen/r_tsip_rx""/>
|
||||
</option>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.define.687020263" name="プリプロセッサ・マクロの定義 (-define)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.define" useByScannerDiscovery="false" valueType="definedSymbols">
|
||||
<listOptionValue builtIn="false" value="WOLFSSL_USER_SETTINGS"/>
|
||||
</option>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC.1494793389" name="Cソース (-lang)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.langFileC.c99" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.optimize.573554071" name="最適化レベル (-optimize)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.optimize" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.optimize.level0" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.optimize.573554071" name="最適化レベル (-optimize)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.optimize" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.optimize.level2" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userBefore.1331174374" name="追加するオプション(すべての指定オプションの前に追加)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.userBefore" valueType="stringList">
|
||||
<listOptionValue builtIn="false" value=""/>
|
||||
</option>
|
||||
@@ -127,7 +133,11 @@
|
||||
</configuration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
|
||||
<storageModule moduleId="com.renesas.cdt.managedbuild.core.boardInfo"/>
|
||||
<storageModule moduleId="com.renesas.cdt.managedbuild.core.boardInfo">
|
||||
<option id="board.id" value="RSKRX65N-2MB"/>
|
||||
<option id="board.name" value="RSKRX65N-2MB"/>
|
||||
<option id="board.device" value="R5F565NEDxFC"/>
|
||||
</storageModule>
|
||||
</cconfiguration>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
|
||||
@@ -87,25 +87,30 @@
|
||||
</Category>
|
||||
</Category>
|
||||
</Files>
|
||||
<Device Category="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.cpu.rx600" Series="RX">R5F565NEHxFC</Device>
|
||||
<BuildOptions Name="CC-RX" Version="v3.03.00">
|
||||
<Device Category="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.cpu.rx600" Series="RX">R5F565NEDxFC</Device>
|
||||
<BuildOptions Name="CC-RX" Version="v3.04.00">
|
||||
<BuildMode Active="True" Name="Debug">
|
||||
<GeneralOptions/>
|
||||
<CompileOptions>
|
||||
<Option>-isa=rxv2</Option>
|
||||
<Option>-fpu</Option>
|
||||
<Option>-include="${ProjDirPath}\..\common"</Option>
|
||||
<Option>-include="${ProjDirPath}\\..\..\..\..\..\..\"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\test\src\smc_gen\"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\test\src\smc_gen\r_bsp"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\test\src\smc_gen\r_config"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\test\src\smc_gen\r_tsip_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\wolfssl_demo"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\demos"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\freertos_kernel\include"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\freertos_kernel\portable\Renesas\RX600v2"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\libraries\freertos_plus\standard\freertos_plus_tcp\include"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\vendors\renesas\amazon_freertos_common"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\vendors\renesas\boards\rx65n-rsk\aws_demos\config_files"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\vendors\renesas\boards\rx65n-rsk\aws_demos\src\smc_gen"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\vendors\renesas\boards\rx65n-rsk\aws_demos\src\smc_gen\r_config"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\vendors\renesas\boards\rx65n-rsk\aws_demos\src\smc_gen\r_bsp"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\vendors\renesas\boards\rx65n-rsk\aws_demos\src\smc_gen\r_tsip_rx"</Option>
|
||||
<Option>-define=WOLFSSL_USER_SETTINGS</Option>
|
||||
<Option>-utf8</Option>
|
||||
<Option>-nomessage</Option>
|
||||
<Option>-debug</Option>
|
||||
<Option>-outcode=utf8</Option>
|
||||
<Option>-optimize=0</Option>
|
||||
<Option>-nologo</Option>
|
||||
<Option>-lang=c99</Option>
|
||||
<Option>-lang=cpp</Option>
|
||||
@@ -205,12 +210,18 @@
|
||||
<Path>Debug\wolfmath.obj</Path>
|
||||
</LinkOrder>
|
||||
<CommonOptions>
|
||||
<IncludePathForC>"${ProjDirPath}\..\common"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\\..\..\..\..\..\..\"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\test\src\smc_gen\"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\test\src\smc_gen\r_bsp"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\test\src\smc_gen\r_config"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\test\src\smc_gen\r_tsip_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\wolfssl_demo"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\demos"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\freertos_kernel\include"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\freertos_kernel\portable\Renesas\RX600v2"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\libraries\freertos_plus\standard\freertos_plus_tcp\include"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\vendors\renesas\amazon_freertos_common"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\vendors\renesas\boards\rx65n-rsk\aws_demos\config_files"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\vendors\renesas\boards\rx65n-rsk\aws_demos\src\smc_gen"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\vendors\renesas\boards\rx65n-rsk\aws_demos\src\smc_gen\r_config"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\vendors\renesas\boards\rx65n-rsk\aws_demos\src\smc_gen\r_bsp"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\vendors\renesas\boards\rx65n-rsk\aws_demos\src\smc_gen\r_tsip_rx"</IncludePathForC>
|
||||
<MacroForC>WOLFSSL_USER_SETTINGS</MacroForC>
|
||||
</CommonOptions>
|
||||
</BuildMode>
|
||||
|
||||
230
IDE/Renesas/e2studio/RX65N/RSK/wolfssl_demo/key_data.c
Normal file
230
IDE/Renesas/e2studio/RX65N/RSK/wolfssl_demo/key_data.c
Normal file
@@ -0,0 +1,230 @@
|
||||
/* key_data.c
|
||||
*
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
#include "key_data.h"
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
TSIP v1.09 or later
|
||||
--------------------------------------------------------------------------*/
|
||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS) && (WOLFSSL_RENESAS_TSIP_VER >=109)
|
||||
|
||||
const st_key_block_data_t g_key_block_data =
|
||||
{
|
||||
/* uint8_t encrypted_provisioning_key[R_TSIP_AES_CBC_IV_BYTE_SIZE * 2]; */
|
||||
{
|
||||
0x94, 0x4D, 0x99, 0x53, 0xE9, 0x15, 0xD1, 0xD9, 0x0A, 0x2C, 0x17, 0x48,
|
||||
0x87, 0x2F, 0x22, 0xA8, 0x90, 0xB3, 0xDE, 0x25, 0x17, 0xEA, 0xE6, 0x31,
|
||||
0x28, 0x3F, 0xB9, 0x8F, 0xC6, 0xE3, 0xE4, 0x85
|
||||
},
|
||||
/* uint8_t iv[R_TSIP_AES_CBC_IV_BYTE_SIZE]; */
|
||||
{
|
||||
0xF6, 0xA9, 0x83, 0x5A, 0xA1, 0x65, 0x1D, 0x28, 0xC8, 0x1A, 0xA6, 0x9D,
|
||||
0x34, 0xB2, 0x4D, 0x92
|
||||
},
|
||||
/*
|
||||
* uint8_t
|
||||
* encrypted_user_rsa2048_ne_key[R_TSIP_RSA2048_NE_KEY_BYTE_SIZE + 16];
|
||||
*/
|
||||
{
|
||||
0xD9, 0x9A, 0x75, 0x0E, 0x9D, 0x4F, 0x63, 0xA4, 0x02, 0x96, 0xE1, 0xF1,
|
||||
0x49, 0x44, 0xB5, 0x90, 0x59, 0x24, 0xC4, 0x23, 0xF7, 0xA0, 0x32, 0x65,
|
||||
0x68, 0x7B, 0x70, 0xE7, 0xA5, 0xC8, 0x12, 0xD1, 0xCD, 0x55, 0x36, 0x5F,
|
||||
0xE6, 0xEB, 0xD0, 0xAD, 0x5A, 0x7F, 0x9F, 0x41, 0x79, 0x8B, 0x2F, 0x3B,
|
||||
0x17, 0xC9, 0xEE, 0xA7, 0xCB, 0xB5, 0x40, 0xFA, 0x3B, 0x43, 0x1D, 0xF8,
|
||||
0x34, 0xCC, 0xB1, 0xB4, 0x8E, 0x67, 0xF6, 0xA0, 0x49, 0xAA, 0x76, 0x33,
|
||||
0xA4, 0x56, 0xCD, 0x16, 0xE9, 0x76, 0x16, 0x92, 0xBE, 0x3F, 0x3A, 0x3A,
|
||||
0xD7, 0x7A, 0xCD, 0xC9, 0xE2, 0xA0, 0xC8, 0x16, 0x2A, 0x0D, 0xBD, 0x3C,
|
||||
0xEA, 0xC8, 0x26, 0x82, 0xDA, 0x5D, 0x19, 0x71, 0x7B, 0x90, 0x03, 0xEF,
|
||||
0x1E, 0x24, 0x01, 0x62, 0x15, 0x3D, 0x2B, 0x4C, 0xA7, 0x8F, 0xBC, 0xD3,
|
||||
0xD9, 0xC8, 0x9F, 0xBB, 0x4A, 0x62, 0x57, 0xE8, 0xE2, 0x86, 0x8C, 0x56,
|
||||
0x36, 0x64, 0xE7, 0xB9, 0x47, 0x5C, 0x02, 0xF4, 0x87, 0x50, 0x16, 0x9C,
|
||||
0xFB, 0xF6, 0xE9, 0x73, 0x96, 0x78, 0x94, 0x59, 0x12, 0x28, 0x03, 0x37,
|
||||
0x75, 0x56, 0x00, 0x2F, 0xCE, 0x54, 0x7C, 0x34, 0xFD, 0x0B, 0x10, 0x5B,
|
||||
0x4A, 0xEE, 0x11, 0x1B, 0x39, 0xE9, 0x80, 0x8B, 0x27, 0x2D, 0x29, 0x12,
|
||||
0x68, 0x87, 0xD2, 0xC9, 0x78, 0xED, 0xED, 0xF2, 0xA6, 0x4D, 0x6B, 0x10,
|
||||
0x98, 0x9D, 0x52, 0x1C, 0xCE, 0x69, 0x0D, 0x5C, 0x46, 0xEB, 0x5D, 0x9B,
|
||||
0xC8, 0x6A, 0x8E, 0x1F, 0x56, 0x05, 0xBA, 0xD2, 0x50, 0x9F, 0x92, 0xB7,
|
||||
0xD4, 0x4D, 0xCD, 0x58, 0x5B, 0xA7, 0x87, 0x10, 0x6D, 0xF3, 0xDB, 0xA8,
|
||||
0x1D, 0x23, 0x00, 0xE4, 0x81, 0x69, 0x3E, 0x7D, 0xEA, 0x5B, 0x33, 0xF4,
|
||||
0x73, 0xD8, 0x7C, 0xDD, 0x64, 0x74, 0x40, 0x30, 0x93, 0x8D, 0x2C, 0xA5,
|
||||
0x2C, 0x24, 0x11, 0xB2, 0x26, 0x56, 0xE3, 0x41, 0x72, 0xAE, 0x41, 0x56,
|
||||
0x9C, 0x75, 0x11, 0x8E, 0x53, 0x59, 0x77, 0xBF, 0x48, 0x71, 0x86, 0x7C,
|
||||
0x7C, 0xCE, 0x04, 0xB9, 0x73, 0x62, 0xE6, 0x1D, 0xF8, 0xED, 0x93, 0x87
|
||||
},
|
||||
/* uint8_t encrypted_user_update_key[R_TSIP_AES256_KEY_BYTE_SIZE + 16]; */
|
||||
{
|
||||
0
|
||||
},
|
||||
/* uint8_t
|
||||
* encrypted_user_rsa2048_private_key[R_TSIP_RSA2048_ND_KEY_BYTE_SIZE + 16]
|
||||
*/
|
||||
{
|
||||
0x22, 0xEC, 0xE3, 0x79, 0xD1, 0x0C, 0xB4, 0xED, 0xE0, 0xA9, 0x0F, 0xBD,
|
||||
0xC7, 0x0B, 0xB4, 0x1E, 0x82, 0x27, 0x79, 0x20, 0x6A, 0x15, 0x56, 0xD6,
|
||||
0x0F, 0xFA, 0xE4, 0x61, 0x04, 0xDA, 0x81, 0x33, 0x42, 0xBA, 0x6D, 0xB9,
|
||||
0x34, 0x81, 0xFD, 0x67, 0xDF, 0x1D, 0xCB, 0x52, 0x64, 0x9A, 0x2E, 0x30,
|
||||
0x12, 0x60, 0xCB, 0x48, 0x27, 0xB6, 0x38, 0x0B, 0x54, 0x5A, 0x70, 0xCB,
|
||||
0x6F, 0x05, 0x53, 0x46, 0x8B, 0x08, 0x86, 0x24, 0xCB, 0xA2, 0x36, 0x54,
|
||||
0xCD, 0xC9, 0x61, 0x37, 0x43, 0xCB, 0xCC, 0x7C, 0x6B, 0x20, 0x07, 0xB6,
|
||||
0x01, 0x96, 0x32, 0xF5, 0x30, 0x0E, 0x96, 0x05, 0xC4, 0xF5, 0xF0, 0xB0,
|
||||
0xD3, 0x26, 0xAF, 0x6E, 0x39, 0x01, 0x2D, 0xAC, 0x7E, 0x39, 0xCF, 0x48,
|
||||
0x74, 0x7D, 0x98, 0x00, 0xA6, 0x95, 0xDA, 0x4C, 0xAC, 0x81, 0xC7, 0x9A,
|
||||
0x93, 0x69, 0x23, 0xD4, 0x39, 0xCD, 0xB3, 0x62, 0x4A, 0x4A, 0x26, 0x95,
|
||||
0x51, 0xE1, 0x06, 0x8F, 0xB2, 0x3C, 0x8F, 0xDE, 0xF1, 0xC3, 0x69, 0xFC,
|
||||
0xF5, 0xC3, 0xCE, 0x39, 0x3F, 0x7F, 0x2D, 0xA8, 0x8B, 0xB3, 0x2D, 0xE4,
|
||||
0xB8, 0xA4, 0x19, 0x55, 0x29, 0xEC, 0x9C, 0x6A, 0xD7, 0xD7, 0x45, 0x3E,
|
||||
0x1D, 0x18, 0x52, 0xB5, 0x8A, 0xB1, 0x26, 0x43, 0x8C, 0x7A, 0x65, 0xF1,
|
||||
0x17, 0x5E, 0x75, 0x4A, 0x1A, 0x30, 0xD8, 0xEA, 0xC2, 0x19, 0x3C, 0x1E,
|
||||
0x2E, 0xFB, 0xDB, 0xC9, 0x1F, 0x73, 0xC9, 0x95, 0x53, 0x8C, 0x99, 0x5D,
|
||||
0x3B, 0x59, 0xFE, 0x8B, 0xA1, 0xD2, 0xBB, 0xBC, 0xBC, 0x4B, 0x78, 0x0A,
|
||||
0x6B, 0xD8, 0xBE, 0x85, 0x60, 0x08, 0x1E, 0x2F, 0x38, 0x77, 0xA3, 0xC4,
|
||||
0x46, 0xC1, 0x42, 0x39, 0xA6, 0x59, 0x98, 0x59, 0x21, 0x94, 0x1F, 0xDC,
|
||||
0xB3, 0xAE, 0xA3, 0xB6, 0xCC, 0x35, 0x82, 0x6F, 0x87, 0x58, 0x91, 0x70,
|
||||
0xEC, 0x3F, 0x05, 0x86, 0x3C, 0xD1, 0x83, 0xB0, 0xBA, 0xE8, 0xD7, 0xF6,
|
||||
0xE5, 0x9E, 0x50, 0xA4, 0x04, 0xF3, 0x95, 0x9C, 0x41, 0xAF, 0xEB, 0x9D,
|
||||
0xB6, 0xA2, 0xF7, 0x80, 0x5A, 0xC4, 0x67, 0xD4, 0xFD, 0x0C, 0x2A, 0x7C,
|
||||
0x24, 0x03, 0xE5, 0x7F, 0x08, 0x69, 0x18, 0x4E, 0x33, 0x22, 0x7E, 0x03,
|
||||
0x8E, 0x13, 0xFB, 0xC6, 0x9B, 0xA3, 0x44, 0x5B, 0xEC, 0xF9, 0x5C, 0x93,
|
||||
0x3E, 0x9F, 0xBD, 0x72, 0x50, 0x52, 0xF3, 0xEA, 0x34, 0x2B, 0x8E, 0xEC,
|
||||
0x17, 0x42, 0x1A, 0xDF, 0x57, 0xA2, 0x66, 0xA7, 0x0B, 0x3B, 0xE5, 0xF7,
|
||||
0x64, 0x44, 0xA2, 0xA3, 0x5F, 0xB7, 0x5B, 0xF5, 0x99, 0x8C, 0xA0, 0x64,
|
||||
0x04, 0x46, 0x7C, 0x60, 0x75, 0xE4, 0xD9, 0xD5, 0xED, 0x21, 0x1D, 0x65,
|
||||
0x5D, 0x25, 0x21, 0x90, 0x7D, 0xA4, 0x95, 0x15, 0x54, 0x91, 0xD6, 0xB8,
|
||||
0xF9, 0xB7, 0x30, 0xD9, 0x7D, 0x2C, 0x7E, 0x85, 0x6A, 0xCF, 0x31, 0x1C,
|
||||
0xDC, 0x90, 0xA3, 0x75, 0xA4, 0xE4, 0x89, 0x5F, 0x2B, 0xED, 0x93, 0x4E,
|
||||
0xA8, 0x35, 0xD3, 0x20, 0x36, 0x7A, 0x02, 0x23, 0x70, 0xB7, 0xC2, 0x39,
|
||||
0xA4, 0x69, 0xB2, 0xBF, 0xA4, 0x3A, 0x6D, 0xB7, 0xB1, 0x32, 0x32, 0x9A,
|
||||
0x95, 0xEA, 0x02, 0xD2, 0x35, 0xE7, 0x8C, 0xD8, 0x22, 0xA9, 0xC3, 0x4C,
|
||||
0x68, 0x09, 0xA1, 0x2B, 0xB0, 0xE4, 0x55, 0x72, 0x7E, 0xE6, 0x00, 0xDD,
|
||||
0xC6, 0xD1, 0x83, 0x56, 0x08, 0x35, 0xC7, 0x9A, 0x98, 0x0C, 0x79, 0xBD,
|
||||
0x49, 0xBC, 0x3F, 0x45, 0x4A, 0x38, 0x1B, 0x55, 0x2D, 0x52, 0x57, 0x00,
|
||||
0xFC, 0xDB, 0xE7, 0xA0, 0x53, 0xB4, 0x63, 0xE4, 0x37, 0xEC, 0x9F, 0xF0,
|
||||
0xA4, 0x0F, 0xEF, 0x06, 0xF0, 0xC6, 0x5F, 0x0C, 0x4A, 0xB8, 0xC1, 0x96,
|
||||
0x1D, 0x0D, 0x9A, 0x43, 0x89, 0xA4, 0xF6, 0x55, 0x4A, 0x83, 0x54, 0x3F,
|
||||
0xCC, 0x09, 0x65, 0x34, 0xC0, 0x0F, 0x42, 0xF2, 0xE6, 0xDD, 0x2D, 0x8C,
|
||||
0x93, 0x42, 0x09, 0xF6, 0xE4, 0xDF, 0xB2, 0x64, 0x2A, 0x12, 0x7A, 0x59
|
||||
},
|
||||
/* uint8_t
|
||||
* encrypted_user_ecc256_private_key[R_TSIP_ECC_PRIVATE_KEY_BYTE_SIZE + 16];
|
||||
*/
|
||||
{
|
||||
0x25, 0x7A, 0x0C, 0x8C, 0x9B, 0xF9, 0x3C, 0xF5, 0x49, 0x08, 0x86, 0x92,
|
||||
0x00, 0x7D, 0xAB, 0x21, 0x23, 0x38, 0xF8, 0xEA, 0xB0, 0x95, 0x59, 0x9B,
|
||||
0x04, 0xC8, 0xAA, 0xEA, 0x8C, 0x2D, 0x68, 0xF4, 0xD5, 0xD7, 0xA9, 0x6F,
|
||||
0x2C, 0x8C, 0x13, 0x93, 0xA3, 0x80, 0x11, 0xF9, 0x0F, 0x36, 0x14, 0xA8
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
/* Public key type of CA root cert: 0: RSA-2048 2: ECDSA-P256*/
|
||||
#if defined(USE_ECC_CERT)
|
||||
const uint32_t encrypted_user_key_type =
|
||||
R_TSIP_TLS_PUBLIC_KEY_TYPE_ECDSA_P256;
|
||||
#else
|
||||
const uint32_t encrypted_user_key_type =
|
||||
R_TSIP_TLS_PUBLIC_KEY_TYPE_RSA2048;
|
||||
#endif
|
||||
|
||||
const unsigned char ca_ecc_cert_der_sig[] =
|
||||
{
|
||||
0x6e, 0x7d, 0x2b, 0xd3, 0x6d, 0x6a, 0x70, 0x31, 0xbf, 0xcd, 0x6f, 0x32,
|
||||
0x74, 0x8b, 0x4d, 0xdf, 0x7c, 0x72, 0xc6, 0x78, 0x61, 0x2b, 0x0f, 0xcc,
|
||||
0xbc, 0xa3, 0x25, 0x54, 0x04, 0xfa, 0x9e, 0xf7, 0x1c, 0xa2, 0xe1, 0x33,
|
||||
0x90, 0x08, 0xcd, 0x3c, 0xc1, 0x03, 0x66, 0xb6, 0x3f, 0xf1, 0xbf, 0xaf,
|
||||
0x0d, 0xb0, 0xeb, 0xe4, 0xc7, 0x54, 0x60, 0x34, 0x3b, 0x62, 0xcf, 0x28,
|
||||
0x95, 0xa2, 0x08, 0x79, 0xc5, 0x51, 0xf3, 0xe1, 0x88, 0x3b, 0xa0, 0x1d,
|
||||
0x1d, 0x42, 0x5a, 0xba, 0x09, 0xe4, 0x64, 0xa1, 0x83, 0xf4, 0x60, 0x44,
|
||||
0x89, 0xd3, 0xdd, 0x6c, 0x71, 0x7b, 0xd1, 0xb0, 0x28, 0x7b, 0x98, 0xe2,
|
||||
0x4b, 0x99, 0x9a, 0x22, 0xd0, 0xeb, 0x1c, 0x5c, 0xbe, 0x49, 0x1a, 0xcf,
|
||||
0xd7, 0x4b, 0x19, 0xe9, 0xdf, 0x82, 0x21, 0xe3, 0x87, 0x7a, 0x25, 0x58,
|
||||
0x8f, 0x29, 0x0e, 0xce, 0xf4, 0x09, 0x0f, 0x2f, 0x04, 0xe9, 0xd2, 0xf9,
|
||||
0xcc, 0xb7, 0x7a, 0x46, 0x5d, 0x98, 0x05, 0x54, 0x89, 0x8e, 0x09, 0x79,
|
||||
0xa8, 0x6f, 0xf6, 0x12, 0xdd, 0x93, 0x38, 0x83, 0x14, 0x3f, 0x42, 0xcf,
|
||||
0x03, 0x9d, 0x84, 0x9d, 0xe9, 0x6e, 0x9f, 0x87, 0x0f, 0xb8, 0x15, 0x9b,
|
||||
0x9b, 0x4c, 0x32, 0x3b, 0x82, 0x7b, 0x3d, 0xd4, 0x85, 0x1e, 0x71, 0x99,
|
||||
0x67, 0x40, 0x59, 0xad, 0x8c, 0x31, 0xd7, 0xa2, 0x81, 0xfd, 0x46, 0x21,
|
||||
0xd7, 0xc8, 0x89, 0x3d, 0x17, 0x3f, 0x5e, 0x82, 0x5e, 0xfa, 0x7b, 0x34,
|
||||
0x7a, 0x1b, 0x85, 0x86, 0xf8, 0x02, 0xf2, 0xf3, 0x01, 0x2c, 0xbd, 0x4a,
|
||||
0x98, 0x0f, 0xe9, 0x4b, 0x1a, 0xa3, 0xee, 0xfc, 0x77, 0xda, 0xcf, 0xee,
|
||||
0x9c, 0xca, 0xf9, 0xbf, 0xaa, 0x5b, 0xbc, 0x01, 0x4b, 0xd4, 0x74, 0x7c,
|
||||
0xee, 0xfb, 0x7c, 0xc4, 0x31, 0xb7, 0x46, 0x9e, 0x94, 0x84, 0xa3, 0x82,
|
||||
0x0c, 0x7b, 0x61, 0x4e
|
||||
};
|
||||
const int sizeof_ca_ecc_cert_sig = sizeof(ca_ecc_cert_der_sig);
|
||||
|
||||
/* ./ca-cert.der.sign, */
|
||||
const unsigned char ca_cert_der_sig[] =
|
||||
{
|
||||
0x0a, 0xc8, 0xbb, 0x7e, 0x5a, 0x72, 0x6a, 0x5b, 0xf0, 0xc6, 0xbf, 0x36,
|
||||
0x8e, 0xe1, 0xcd, 0xbc, 0x08, 0xfd, 0x22, 0x5a, 0x3b, 0x48, 0x33, 0xb9,
|
||||
0x12, 0x55, 0x80, 0x6c, 0x36, 0x14, 0x05, 0x24, 0x63, 0x20, 0x8b, 0x26,
|
||||
0x69, 0xa9, 0xe3, 0x15, 0xb9, 0x00, 0x8d, 0xea, 0x3a, 0xee, 0x2d, 0x41,
|
||||
0xec, 0x43, 0x4a, 0x17, 0x48, 0x26, 0x4a, 0xd6, 0xe4, 0x1b, 0xa5, 0x97,
|
||||
0x2e, 0xf6, 0x41, 0xa7, 0xa2, 0x2b, 0x83, 0x2c, 0xad, 0x6e, 0x4e, 0xfc,
|
||||
0x57, 0xf1, 0x28, 0xf0, 0xa7, 0xf9, 0x5b, 0x48, 0xab, 0xed, 0x63, 0x22,
|
||||
0xed, 0x1e, 0xf1, 0x9d, 0xab, 0xbf, 0x9c, 0x78, 0x04, 0x49, 0xad, 0xf1,
|
||||
0x43, 0x2f, 0x21, 0x9c, 0x90, 0xb8, 0x35, 0x14, 0x68, 0x12, 0x89, 0x00,
|
||||
0x20, 0x5b, 0x83, 0x52, 0xb7, 0xec, 0x26, 0x01, 0x26, 0xe1, 0x0f, 0xf6,
|
||||
0x98, 0xd1, 0xb6, 0x28, 0x84, 0xc8, 0xa5, 0x3e, 0xe9, 0xfb, 0x19, 0x2e,
|
||||
0x8f, 0xd7, 0x66, 0x98, 0xc0, 0x5e, 0x7b, 0xbc, 0x1a, 0xd9, 0x27, 0xb9,
|
||||
0x76, 0xcc, 0x58, 0x48, 0x0c, 0x0c, 0x22, 0x23, 0x19, 0xfd, 0x22, 0xfa,
|
||||
0x47, 0x90, 0x38, 0x62, 0xe0, 0x91, 0x79, 0x35, 0x3d, 0xa2, 0x83, 0x99,
|
||||
0x2b, 0x86, 0x7a, 0x88, 0x9b, 0x07, 0xe7, 0xc5, 0x95, 0x69, 0x9a, 0x2b,
|
||||
0x2e, 0x47, 0xcf, 0xfd, 0x9e, 0x64, 0xb5, 0xca, 0x44, 0x94, 0x95, 0xf3,
|
||||
0x2a, 0x8f, 0x4a, 0xcf, 0x0f, 0xd4, 0x7e, 0x0d, 0x0f, 0x2a, 0x0b, 0xb6,
|
||||
0x89, 0x64, 0xe3, 0x8c, 0x02, 0x3e, 0x76, 0x66, 0x68, 0x19, 0xa9, 0x07,
|
||||
0x5a, 0xc6, 0x33, 0xcd, 0x27, 0xff, 0x07, 0xd4, 0x91, 0x5b, 0x11, 0x3a,
|
||||
0xe3, 0xf5, 0x69, 0x70, 0xa7, 0xfe, 0xf2, 0xf0, 0xbd, 0x11, 0xaf, 0xa7,
|
||||
0x37, 0xda, 0x24, 0x75, 0x3e, 0x1a, 0x39, 0x49, 0xb4, 0x1e, 0x0e, 0xaf,
|
||||
0x5d, 0x1e, 0x94, 0xdf
|
||||
};
|
||||
const int sizeof_ca_cert_sig = sizeof(ca_cert_der_sig);
|
||||
/* ./client-cert.der.sign, */
|
||||
const unsigned char client_cert_der_sign[] =
|
||||
{
|
||||
0x5D, 0x1F, 0x89, 0x41, 0xEC, 0x47, 0xC8, 0x90, 0x61, 0x79, 0x8A, 0x16,
|
||||
0x1F, 0x31, 0x96, 0x67, 0xD9, 0x3C, 0xEC, 0x6B, 0x58, 0xC6, 0x5A, 0xED,
|
||||
0x99, 0xB3, 0xEF, 0x27, 0x6F, 0x04, 0x8C, 0xD9, 0x68, 0xB1, 0xD6, 0x23,
|
||||
0x15, 0x84, 0x00, 0xE1, 0x27, 0xD1, 0x1F, 0x68, 0xB7, 0x3F, 0x13, 0x53,
|
||||
0x8A, 0x95, 0x5A, 0x20, 0x7C, 0xB2, 0x76, 0x5B, 0xDC, 0xE0, 0xA6, 0x21,
|
||||
0x7C, 0x49, 0xCF, 0x93, 0xBA, 0xD5, 0x12, 0x9F, 0xEE, 0x90, 0x5B, 0x3F,
|
||||
0xA3, 0x9D, 0x13, 0x72, 0xAC, 0x72, 0x16, 0xFE, 0x1D, 0xBE, 0xEB, 0x8E,
|
||||
0xC7, 0xDC, 0xC4, 0xF8, 0x1A, 0xD8, 0xA0, 0xA4, 0xF6, 0x04, 0x30, 0xF6,
|
||||
0x7E, 0xB6, 0xC8, 0xE1, 0xAB, 0x88, 0x37, 0x08, 0x63, 0x72, 0xAA, 0x46,
|
||||
0xCC, 0xCA, 0xF0, 0x9E, 0x02, 0x1E, 0x65, 0x67, 0xFF, 0x2C, 0x9D, 0x81,
|
||||
0x6C, 0x1E, 0xF1, 0x54, 0x05, 0x68, 0x68, 0x18, 0x72, 0x26, 0x55, 0xB6,
|
||||
0x2C, 0x95, 0xC0, 0xC9, 0xB2, 0xA7, 0x0B, 0x60, 0xD7, 0xEB, 0x1D, 0x08,
|
||||
0x1A, 0xA2, 0x54, 0x15, 0x89, 0xCB, 0x83, 0x21, 0x5D, 0x15, 0x9B, 0x38,
|
||||
0xAC, 0x89, 0x63, 0xD5, 0x4B, 0xF4, 0x8B, 0x47, 0x93, 0x78, 0x43, 0xCB,
|
||||
0x9B, 0x71, 0xBF, 0x94, 0x76, 0xB5, 0xCE, 0x35, 0xA9, 0x1A, 0xD5, 0xA5,
|
||||
0xD8, 0x19, 0xA6, 0x04, 0x39, 0xB1, 0x09, 0x8C, 0x65, 0x02, 0x58, 0x3A,
|
||||
0x95, 0xEF, 0xA2, 0xC3, 0x85, 0x18, 0x61, 0x23, 0x2D, 0xC5, 0xCD, 0x62,
|
||||
0xC1, 0x19, 0x31, 0xE5, 0x36, 0x95, 0x22, 0xDB, 0x3E, 0x1A, 0x3C, 0xE8,
|
||||
0xC6, 0x2E, 0xDF, 0xD9, 0x2F, 0x84, 0xC1, 0xF0, 0x38, 0x2B, 0xE5, 0x73,
|
||||
0x35, 0x4F, 0x05, 0xE2, 0xA5, 0x60, 0x79, 0xB0, 0x23, 0xDC, 0x56, 0x4C,
|
||||
0xE7, 0xD9, 0x1F, 0xCF, 0x6A, 0xFC, 0x55, 0xEB, 0xAA, 0x48, 0x3E, 0x95,
|
||||
0x2A, 0x10, 0x01, 0x05
|
||||
};
|
||||
const int sizeof_client_cert_der_sign = sizeof(client_cert_der_sign);
|
||||
|
||||
uint32_t s_inst1[R_TSIP_SINST_WORD_SIZE] = { 0 };
|
||||
uint32_t s_inst2[R_TSIP_SINST2_WORD_SIZE]= { 0 };
|
||||
#endif
|
||||
@@ -1,6 +1,6 @@
|
||||
/* key_data.h
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
@@ -38,6 +38,8 @@ typedef struct st_key_block_data
|
||||
uint8_t iv[R_TSIP_AES_CBC_IV_BYTE_SIZE];
|
||||
uint8_t encrypted_user_rsa2048_ne_key[R_TSIP_RSA2048_NE_KEY_BYTE_SIZE + 16];
|
||||
uint8_t encrypted_user_update_key[R_TSIP_AES256_KEY_BYTE_SIZE + 16];
|
||||
uint8_t encrypted_user_rsa2048_private_key[R_TSIP_RSA2048_ND_KEY_BYTE_SIZE + 16];
|
||||
uint8_t encrypted_user_ecc256_private_key[R_TSIP_ECC_PRIVATE_KEY_BYTE_SIZE + 16];
|
||||
} st_key_block_data_t;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* user_settings.h
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
@@ -23,8 +23,7 @@
|
||||
*
|
||||
*
|
||||
*----------------------------------------------------------------------------*/
|
||||
#define WOLFSSL_RENESAS_RX65N
|
||||
|
||||
#define WOLFSSL_RENESAS_RX65N
|
||||
|
||||
|
||||
/*-- Renesas TSIP usage and its version ---------------------------------------
|
||||
@@ -37,9 +36,10 @@
|
||||
* 109: TSIPv1.09
|
||||
* 113: TSIPv1.13
|
||||
* 114: TSIPv1.14
|
||||
* 115: TSIPv1.15
|
||||
*----------------------------------------------------------------------------*/
|
||||
#define WOLFSSL_RENESAS_TSIP
|
||||
#define WOLFSSL_RENESAS_TSIP_VER 114
|
||||
#define WOLFSSL_RENESAS_TSIP_VER 115
|
||||
|
||||
|
||||
/*-- TLS version definitions --------------------------------------------------
|
||||
@@ -48,7 +48,7 @@
|
||||
* TLSv1.3, uncomment line below.
|
||||
*
|
||||
*----------------------------------------------------------------------------*/
|
||||
/*#define WOLFSSL_TLS13*/
|
||||
#define WOLFSSL_TLS13
|
||||
|
||||
|
||||
/*-- Operating System related definitions --------------------------------------
|
||||
@@ -57,8 +57,11 @@
|
||||
* Otherwise, define "SINGLE_THREADED". They are exclusive each other.
|
||||
*
|
||||
*----------------------------------------------------------------------------*/
|
||||
#define SINGLE_THREADED
|
||||
/*#define FREERTOS*/
|
||||
|
||||
#define FREERTOS
|
||||
#define FREERTOS_TCP
|
||||
|
||||
|
||||
|
||||
|
||||
/*-- Cipher related definitions -----------------------------------------------
|
||||
@@ -67,11 +70,12 @@
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
#define NO_DEV_RANDOM
|
||||
|
||||
#define NO_MD4
|
||||
#define WOLFSSL_DH_CONST
|
||||
#define HAVE_TLS_EXTENSIONS
|
||||
|
||||
#define HAVE_AESGCM
|
||||
#define HAVE_AESCCM
|
||||
#define HAVE_AES_CBC
|
||||
#define WOLFSSL_SHA512
|
||||
|
||||
@@ -79,7 +83,7 @@
|
||||
#define HAVE_ECC
|
||||
#define HAVE_CURVE25519
|
||||
#define CURVE25519_SMALL
|
||||
#define HAVE_ED25519
|
||||
|
||||
|
||||
#define WOLFSSL_STATIC_RSA
|
||||
|
||||
@@ -103,7 +107,7 @@
|
||||
* - TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA256
|
||||
*
|
||||
*/
|
||||
/*#define USE_ECC_CERT*/
|
||||
#define USE_ECC_CERT
|
||||
|
||||
/* In this example application, Root CA cert buffer named
|
||||
* "ca_ecc_cert_der_256" is used under the following macro definition
|
||||
@@ -123,9 +127,6 @@
|
||||
*----------------------------------------------------------------------------*/
|
||||
#define SIZEOF_LONG_LONG 8
|
||||
|
||||
#if !defined(min)
|
||||
#define min(data1, data2) _builtin_min(data1, data2)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* -- "NO_ASN_TIME" macro is to avoid certificate expiration validation --
|
||||
@@ -146,19 +147,23 @@
|
||||
#define WOLFSSL_HAVE_MAX
|
||||
#define WOLFSSL_SMALL_STACK
|
||||
#define NO_WRITEV
|
||||
#define WOLFSSL_USER_IO
|
||||
|
||||
|
||||
#define WOLFSSL_USER_CURRTIME /* for benchmark */
|
||||
#define USER_TIME
|
||||
#define XTIME time
|
||||
#define TIME_OVERRIDES
|
||||
#define XTIME time
|
||||
#define WOLFSSL_GMTIME
|
||||
#define XGMTIME(c,t) gmtime(c)
|
||||
#define USE_WOLF_SUSECONDS_T
|
||||
#define USE_WOLF_TIMEVAL_T
|
||||
|
||||
|
||||
#define XSTRNCASECMP(s1,s2,n) strncmp(s1,s2,n)
|
||||
|
||||
#define WC_RSA_BLINDING
|
||||
#define TFM_TIMING_RESISTANT
|
||||
#define ECC_TIMING_RESISTANT
|
||||
|
||||
#define USE_FAST_MATH
|
||||
|
||||
/*-- Debugging options ------------------------------------------------------
|
||||
*
|
||||
@@ -218,3 +223,6 @@
|
||||
#define HAVE_HKDF
|
||||
#define WC_RSA_PSS
|
||||
#endif
|
||||
|
||||
/*-- strcasecmp */
|
||||
#define XSTRCASECMP(s1,s2) strcmp((s1),(s2))
|
||||
504
IDE/Renesas/e2studio/RX65N/RSK/wolfssl_demo/wolfssl_demo.c
Normal file
504
IDE/Renesas/e2studio/RX65N/RSK/wolfssl_demo/wolfssl_demo.c
Normal file
@@ -0,0 +1,504 @@
|
||||
/* wolfssl_demo.c
|
||||
*
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "FreeRTOS.h"
|
||||
#include "FreeRTOS_IP.h"
|
||||
#include "FreeRTOS_Sockets.h"
|
||||
#include "platform/iot_network.h"
|
||||
#include "platform.h"
|
||||
|
||||
|
||||
#include <wolfssl/wolfcrypt/settings.h>
|
||||
#include "wolfssl/ssl.h"
|
||||
#include <wolfssl/wolfio.h>
|
||||
#include "wolfssl/certs_test.h"
|
||||
#include "wolfssl/wolfcrypt/types.h"
|
||||
#include "wolfssl_demo.h"
|
||||
#include <wolfcrypt/test/test.h>
|
||||
#include <wolfcrypt/benchmark/benchmark.h>
|
||||
|
||||
#if defined(BENCHMARK)
|
||||
#include "r_cmt_rx_if.h"
|
||||
#endif
|
||||
|
||||
#if defined(TLS_CLIENT)
|
||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS)
|
||||
#include "key_data.h"
|
||||
#include <wolfssl/wolfcrypt/port/Renesas/renesas-tsip-crypt.h>
|
||||
|
||||
extern const st_key_block_data_t g_key_block_data;
|
||||
user_PKCbInfo guser_PKCbInfo;
|
||||
uint32_t g_encrypted_root_public_key[140];
|
||||
static TsipUserCtx userContext;
|
||||
|
||||
#endif /* WOLFSSL_RENESAS_TSIP_TLS */
|
||||
|
||||
static WOLFSSL_CTX* client_ctx;
|
||||
#endif /* TLS_CLIENT */
|
||||
|
||||
#define TLSSERVER_IP "192.168.1.14"
|
||||
#define TLSSERVER_PORT 11111
|
||||
#define YEAR 2022
|
||||
#define MON 3
|
||||
#define FREQ 10000 /* Hz */
|
||||
|
||||
static long tick;
|
||||
static int tmTick;
|
||||
|
||||
/* time
|
||||
* returns seconds from EPOCH
|
||||
*/
|
||||
time_t time(time_t *t)
|
||||
{
|
||||
(void)t;
|
||||
return ((YEAR-1970)*365+30*MON)*24*60*60 + tmTick++;
|
||||
}
|
||||
|
||||
/* timeTick
|
||||
* called periodically by H/W timer to increase tmTick.
|
||||
*/
|
||||
#if defined(BENCHMARK)
|
||||
static void timeTick(void* pdata)
|
||||
{
|
||||
(void)pdata;
|
||||
tick++;
|
||||
}
|
||||
#endif
|
||||
|
||||
double current_time(int reset)
|
||||
{
|
||||
if(reset) tick = 0 ;
|
||||
return ((double)tick/FREQ) ;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* --------------------------------------------------------*/
|
||||
/* Benchmark_demo */
|
||||
/* --------------------------------------------------------*/
|
||||
#if defined(BENCHMARK)
|
||||
static void Benchmark_demo(void)
|
||||
{
|
||||
uint32_t channel;
|
||||
R_CMT_CreatePeriodic(FREQ, &timeTick, &channel);
|
||||
|
||||
printf("Start wolfCrypt Benchmark\n");
|
||||
benchmark_test(NULL);
|
||||
printf("End wolfCrypt Benchmark\n");
|
||||
}
|
||||
#endif /* BENCHMARK */
|
||||
/* --------------------------------------------------------*/
|
||||
/* CryptTest_demo */
|
||||
/* --------------------------------------------------------*/
|
||||
#if defined(CRYPT_TEST)
|
||||
static void CryptTest_demo(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
if ((ret = wolfCrypt_Init()) != 0) {
|
||||
printf("wolfCrypt_Init failed %d\n", ret);
|
||||
}
|
||||
|
||||
printf("Start wolfCrypt Test\n");
|
||||
wolfcrypt_test(NULL);
|
||||
printf("End wolfCrypt Test\n");
|
||||
|
||||
if ((ret = wolfCrypt_Cleanup()) != 0) {
|
||||
printf("wolfCrypt_Cleanup failed %d\n", ret);
|
||||
}
|
||||
}
|
||||
#endif /* CRYPT_TEST */
|
||||
/* --------------------------------------------------------*/
|
||||
/* Tls_client_demo */
|
||||
/* --------------------------------------------------------*/
|
||||
#if defined(TLS_CLIENT)
|
||||
static void Tls_client_init(const char* cipherlist)
|
||||
{
|
||||
|
||||
#ifndef NO_FILESYSTEM
|
||||
#ifdef USE_ECC_CERT
|
||||
char *cert = "./certs/ca-ecc-cert.pem";
|
||||
#else
|
||||
char *cert = "./certs/ca-cert.pem";
|
||||
#endif
|
||||
#else
|
||||
#if defined(USE_ECC_CERT) && defined(USE_CERT_BUFFERS_256)
|
||||
const unsigned char *cert = ca_ecc_cert_der_256;
|
||||
#define SIZEOF_CERT sizeof_ca_ecc_cert_der_256
|
||||
#else
|
||||
const unsigned char *cert = ca_cert_der_2048;
|
||||
#define SIZEOF_CERT sizeof_ca_cert_der_2048
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
client_ctx = NULL;
|
||||
|
||||
wolfSSL_Init();
|
||||
|
||||
#ifdef DEBUG_WOLFSSL
|
||||
wolfSSL_Debugging_ON();
|
||||
#endif
|
||||
|
||||
/* Create and initialize WOLFSSL_CTX */
|
||||
if ((client_ctx =
|
||||
wolfSSL_CTX_new(wolfSSLv23_client_method_ex((void *)NULL))) == NULL) {
|
||||
printf("ERROR: failed to create WOLFSSL_CTX\n");
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef WOLFSSL_RENESAS_TSIP_TLS
|
||||
tsip_set_callbacks(client_ctx);
|
||||
#endif
|
||||
|
||||
/* load Root CA certificate */
|
||||
#if defined(NO_FILESYSTEM)
|
||||
if (wolfSSL_CTX_load_verify_buffer(client_ctx, cert,
|
||||
SIZEOF_CERT, SSL_FILETYPE_ASN1) != SSL_SUCCESS) {
|
||||
printf("ERROR: can't load certificate data\n");
|
||||
return;
|
||||
}
|
||||
#else
|
||||
if (wolfSSL_CTX_load_verify_locations(client_ctx, cert, 0) != SSL_SUCCESS) {
|
||||
printf("ERROR: can't load \"%s\"\n", cert);
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* load client certificate */
|
||||
#ifdef USE_ECC_CERT
|
||||
if (wolfSSL_CTX_use_certificate_chain_buffer_format(client_ctx,
|
||||
cliecc_cert_der_256,
|
||||
sizeof_cliecc_cert_der_256,
|
||||
WOLFSSL_FILETYPE_ASN1) != SSL_SUCCESS) {
|
||||
printf("ERROR: can't load client-certificate\n");
|
||||
return;
|
||||
}
|
||||
#else
|
||||
if (wolfSSL_CTX_use_certificate_chain_buffer_format(client_ctx,
|
||||
client_cert_der_2048,
|
||||
sizeof_client_cert_der_2048,
|
||||
WOLFSSL_FILETYPE_ASN1) != SSL_SUCCESS) {
|
||||
printf("ERROR: can't load client-certificate\n");
|
||||
return;
|
||||
}
|
||||
#endif /* USE_ECC_CERT */
|
||||
|
||||
/* load client private key */
|
||||
|
||||
#ifdef USE_ECC_CERT
|
||||
#if defined(WOLFSSL_TLS13) && defined(WOLFSSL_RENESAS_TSIP_TLS) &&
|
||||
(WOLFSSL_RENESAS_TSIP_VER >= 115 )
|
||||
if (tsip_set_clientPrivateKeyEnc(
|
||||
g_key_block_data.encrypted_user_ecc256_private_key,
|
||||
TSIP_ECCP256) != 0) {
|
||||
printf("ERROR: can't load client-private key\n");
|
||||
return;
|
||||
}
|
||||
#else
|
||||
if (wolfSSL_CTX_use_PrivateKey_buffer(client_ctx,
|
||||
ecc_clikey_der_256,
|
||||
sizeof_ecc_clikey_der_256,
|
||||
SSL_FILETYPE_ASN1) != WOLFSSL_SUCCESS) {
|
||||
printf("ERROR: can't load private-key data.\n");
|
||||
return;
|
||||
}
|
||||
#endif /* WOLFSSL_TLS13 */
|
||||
#else
|
||||
if (wolfSSL_CTX_use_PrivateKey_buffer(client_ctx,
|
||||
client_key_der_2048,
|
||||
sizeof_client_key_der_2048,
|
||||
SSL_FILETYPE_ASN1)
|
||||
!= WOLFSSL_SUCCESS) {
|
||||
printf("ERROR: can't load private-key data.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
#endif /* USE_ECC_CERT */
|
||||
|
||||
/* use specific cipher */
|
||||
if (cipherlist != NULL &&
|
||||
wolfSSL_CTX_set_cipher_list(client_ctx, cipherlist) !=
|
||||
WOLFSSL_SUCCESS) {
|
||||
wolfSSL_CTX_free(client_ctx); client_ctx = NULL;
|
||||
printf("client can't set cipher list");
|
||||
}
|
||||
|
||||
#if defined(WOLFSSL_TLS13) && defined(WOLFSSL_RENESAS_TSIP_TLS) &&
|
||||
(WOLFSSL_RENESAS_TSIP_VER >= 115)
|
||||
|
||||
if (wolfSSL_CTX_UseSupportedCurve(client_ctx, WOLFSSL_ECC_SECP256R1)
|
||||
!= WOLFSSL_SUCCESS) {
|
||||
wolfSSL_CTX_free(client_ctx); client_ctx = NULL;
|
||||
printf("client can't set use supported curves\n");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
static void Tls_client()
|
||||
{
|
||||
#define BUFF_SIZE 256
|
||||
#define ADDR_SIZE 16
|
||||
int ret;
|
||||
WOLFSSL_CTX* ctx = (WOLFSSL_CTX *)client_ctx;
|
||||
WOLFSSL* ssl;
|
||||
Socket_t socket;
|
||||
socklen_t socksize = sizeof(struct freertos_sockaddr);
|
||||
struct freertos_sockaddr PeerAddr;
|
||||
char addrBuff[ADDR_SIZE] = {0};
|
||||
|
||||
static const char sendBuff[]= "Hello Server\n" ;
|
||||
char rcvBuff[BUFF_SIZE] = {0};
|
||||
|
||||
|
||||
/* create TCP socket */
|
||||
|
||||
socket = FreeRTOS_socket(FREERTOS_AF_INET,
|
||||
FREERTOS_SOCK_STREAM,
|
||||
FREERTOS_IPPROTO_TCP);
|
||||
|
||||
configASSERT(socket != FREERTOS_INVALID_SOCKET);
|
||||
|
||||
FreeRTOS_bind(socket, NULL, socksize);
|
||||
|
||||
/* attempt to connect TLS server */
|
||||
|
||||
PeerAddr.sin_addr = FreeRTOS_inet_addr(TLSSERVER_IP);
|
||||
PeerAddr.sin_port = FreeRTOS_htons(TLSSERVER_PORT);
|
||||
|
||||
ret = FreeRTOS_connect(socket, &PeerAddr, sizeof(PeerAddr));
|
||||
|
||||
if (ret != 0) {
|
||||
printf("ERROR FreeRTOS_connect: %d\n",ret);
|
||||
}
|
||||
|
||||
/* create WOLFSSL object */
|
||||
if (ret == 0) {
|
||||
ssl = wolfSSL_new(ctx);
|
||||
if (ssl == NULL) {
|
||||
printf("ERROR wolfSSL_new: %d\n", wolfSSL_get_error(ssl, 0));
|
||||
ret = -1;
|
||||
}
|
||||
}
|
||||
if (ret == 0) {
|
||||
#ifdef WOLFSSL_RENESAS_TSIP_TLS
|
||||
tsip_set_callback_ctx(ssl, &userContext);
|
||||
#endif
|
||||
}
|
||||
|
||||
if (ret == 0) {
|
||||
/* associate socket with ssl object */
|
||||
if (wolfSSL_set_fd(ssl, (int)socket) != WOLFSSL_SUCCESS) {
|
||||
printf("ERROR wolfSSL_set_fd: %d\n", wolfSSL_get_error(ssl, 0));
|
||||
ret = -1;
|
||||
}
|
||||
}
|
||||
|
||||
if (ret == 0) {
|
||||
if (wolfSSL_connect(ssl) != WOLFSSL_SUCCESS) {
|
||||
printf("ERROR wolfSSL_connect: %d\n", wolfSSL_get_error(ssl, 0));
|
||||
ret = -1;
|
||||
}
|
||||
}
|
||||
|
||||
if (ret == 0) {
|
||||
if (wolfSSL_write(ssl, sendBuff, strlen(sendBuff)) !=
|
||||
strlen(sendBuff)) {
|
||||
printf("ERROR wolfSSL_write: %d\n", wolfSSL_get_error(ssl, 0));
|
||||
ret = -1;
|
||||
}
|
||||
}
|
||||
|
||||
if (ret == 0) {
|
||||
if ((ret=wolfSSL_read(ssl, rcvBuff, BUFF_SIZE -1)) < 0) {
|
||||
printf("ERROR wolfSSL_read: %d\n", wolfSSL_get_error(ssl, 0));
|
||||
ret = -1;
|
||||
}
|
||||
else {
|
||||
rcvBuff[ret] = '\0';
|
||||
printf("Received: %s\n\n", rcvBuff);
|
||||
ret = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
wolfSSL_shutdown(ssl);
|
||||
|
||||
FreeRTOS_shutdown(socket, FREERTOS_SHUT_RDWR);
|
||||
while(FreeRTOS_recv(socket, rcvBuff, BUFF_SIZE -1, 0) >=0) {
|
||||
vTaskDelay(250);
|
||||
}
|
||||
|
||||
FreeRTOS_closesocket(socket);
|
||||
|
||||
|
||||
wolfSSL_free(ssl);
|
||||
wolfSSL_CTX_free(ctx);
|
||||
wolfSSL_Cleanup();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
static void Tls_client_demo(void)
|
||||
{
|
||||
|
||||
/* setup ciphersuite list to use for TLS handshake */
|
||||
|
||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS)
|
||||
|
||||
#ifdef USE_ECC_CERT
|
||||
const char* cipherlist[] = {
|
||||
#if defined(WOLFSSL_TLS13)
|
||||
"TLS13-AES128-GCM-SHA256",
|
||||
"TLS13-AES128-CCM-SHA256",
|
||||
#endif
|
||||
"ECDHE-ECDSA-AES128-GCM-SHA256",
|
||||
"ECDHE-ECDSA-AES128-SHA256"
|
||||
};
|
||||
int cipherlist_sz;
|
||||
#if defined(WOLFSSL_TLS13)
|
||||
cipherlist_sz = 2;
|
||||
#else
|
||||
cipherlist_sz = 2;
|
||||
#endif
|
||||
|
||||
#else
|
||||
const char* cipherlist[] = {
|
||||
#if defined(WOLFSSL_TLS13)
|
||||
"TLS13-AES128-GCM-SHA256",
|
||||
"TLS13-AES128-CCM-SHA256",
|
||||
#endif
|
||||
"ECDHE-RSA-AES128-GCM-SHA256",
|
||||
"ECDHE-RSA-AES128-SHA256",
|
||||
"AES128-SHA",
|
||||
"AES128-SHA256",
|
||||
"AES256-SHA",
|
||||
"AES256-SHA256"
|
||||
};
|
||||
int cipherlist_sz;
|
||||
#if defined(WOLFSSL_TLS13)
|
||||
cipherlist_sz = 2;
|
||||
#else
|
||||
cipherlist_sz = 6;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#else
|
||||
const char* cipherlist[] = { NULL };
|
||||
const int cipherlist_sz = 0;
|
||||
|
||||
#endif
|
||||
|
||||
int i = 0;
|
||||
|
||||
printf("/*------------------------------------------------*/\n");
|
||||
printf(" TLS_Client demo\n");
|
||||
printf(" - TLS server address:" TLSSERVER_IP " port: %d\n",
|
||||
TLSSERVER_PORT);
|
||||
|
||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS) && (WOLFSSL_RENESAS_TSIP_VER >=109)
|
||||
printf(" - with TSIP\n");
|
||||
#endif
|
||||
printf("/*------------------------------------------------*/\n");
|
||||
|
||||
/* setup credentials for TLS handshake */
|
||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS) && (WOLFSSL_RENESAS_TSIP_VER >=109)
|
||||
|
||||
#if defined(USE_ECC_CERT)
|
||||
|
||||
/* Root CA cert has ECC-P256 public key */
|
||||
tsip_inform_cert_sign((const byte*)ca_ecc_cert_der_sig);
|
||||
|
||||
#else
|
||||
|
||||
/* Root CA cert has RSA public key */
|
||||
tsip_inform_cert_sign((const byte*)ca_cert_der_sig);
|
||||
|
||||
#endif
|
||||
|
||||
wc_tsip_inform_user_keys_ex(
|
||||
(byte*)&g_key_block_data.encrypted_provisioning_key,
|
||||
(byte*)&g_key_block_data.iv,
|
||||
(byte*)&g_key_block_data.encrypted_user_rsa2048_ne_key,
|
||||
encrypted_user_key_type);
|
||||
|
||||
|
||||
#endif /* WOLFSSL_RENESAS_TSIP_TLS && (WOLFSSL_RENESAS_TSIP_VER >=109) */
|
||||
|
||||
do {
|
||||
if(cipherlist_sz > 0 ) printf("cipher : %s\n", cipherlist[i]);
|
||||
|
||||
Tls_client_init(cipherlist[i]);
|
||||
|
||||
Tls_client();
|
||||
|
||||
i++;
|
||||
} while (i < cipherlist_sz);
|
||||
|
||||
printf("End of TLS_Client demo.\n");
|
||||
}
|
||||
#endif /* TLS_CLIENT */
|
||||
|
||||
/* Demo entry function called by iot_demo_runner
|
||||
* To run this entry function as an aws_iot_demo, define this as
|
||||
* DEMO_entryFUNCTION in aws_demo_config.h.
|
||||
*/
|
||||
void wolfSSL_demo_task(bool awsIotMqttMode,
|
||||
const char* pIdentifier,
|
||||
void* pNetworkServerInfo,
|
||||
void* pNetworkCredentialInfo,
|
||||
const IotNetworkInterface_t* pNetworkInterface)
|
||||
{
|
||||
|
||||
(void)awsIotMqttMode;
|
||||
(void)pIdentifier;
|
||||
(void)pNetworkServerInfo;
|
||||
(void)pNetworkCredentialInfo;
|
||||
(void)pNetworkInterface;
|
||||
|
||||
|
||||
#if defined(CRYPT_TEST)
|
||||
|
||||
CryptTest_demo();
|
||||
|
||||
#elif defined(BENCHMARK)
|
||||
|
||||
Benchmark_demo();
|
||||
|
||||
#elif defined(TLS_CLIENT)
|
||||
|
||||
Tls_client_demo();
|
||||
|
||||
#endif
|
||||
|
||||
while (1) {
|
||||
vTaskDelay(10000);
|
||||
}
|
||||
}
|
||||
|
||||
63
IDE/Renesas/e2studio/RX65N/RSK/wolfssl_demo/wolfssl_demo.h
Normal file
63
IDE/Renesas/e2studio/RX65N/RSK/wolfssl_demo/wolfssl_demo.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/* wolfssl_demo.h
|
||||
*
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
#ifndef WOLFSSL_DEMO_H_
|
||||
#define WOLFSSL_DEMO_H_
|
||||
|
||||
|
||||
/**************************************************/
|
||||
/******* DO NOT CHANGE the following order ********/
|
||||
/**************************************************/
|
||||
|
||||
/* Include logging header files and define logging macros in the following order:
|
||||
* 1. Include the header file "logging_levels.h".
|
||||
* 2. Define the LIBRARY_LOG_NAME and LIBRARY_LOG_LEVEL macros depending on
|
||||
* the logging configuration for DEMO.
|
||||
* 3. Include the header file "logging_stack.h", if logging is enabled for DEMO.
|
||||
*/
|
||||
|
||||
#include "logging_levels.h"
|
||||
|
||||
/* Logging configuration for the Demo. */
|
||||
#ifndef LIBRARY_LOG_NAME
|
||||
#define LIBRARY_LOG_NAME "WOLFSSL_Demo"
|
||||
#endif
|
||||
|
||||
#ifndef LIBRARY_LOG_LEVEL
|
||||
#define LIBRARY_LOG_LEVEL LOG_INFO
|
||||
#endif
|
||||
#include "logging_stack.h"
|
||||
|
||||
|
||||
|
||||
|
||||
/* Enable wolfcrypt test demo */
|
||||
/*#define CRYPT_TEST*/
|
||||
|
||||
/* Enable benchmark demo */
|
||||
/*#define BENCHMARK*/
|
||||
|
||||
/* Enable TLS client demo */
|
||||
/* cannot enable with other definition */
|
||||
#define TLS_CLIENT
|
||||
|
||||
|
||||
#endif /* WOLFSSL_DEMO_H_ */
|
||||
Binary file not shown.
Binary file not shown.
@@ -16,9 +16,6 @@
|
||||
<sections name="RPFRAM2*"/>
|
||||
<sections name="SU"/>
|
||||
<sections name="SI"/>
|
||||
<sections name="C_BOOTLOADER_KEY_STORAGE*">
|
||||
<sectionAddress xsi:type="com.renesas.linkersection.model:FixedAddress" fixedAddress="1048576"/>
|
||||
</sections>
|
||||
<sections name="C_PKCS11_STORAGE*">
|
||||
<sectionAddress xsi:type="com.renesas.linkersection.model:FixedAddress" fixedAddress="1050624"/>
|
||||
</sections>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
</storageModule>
|
||||
<storageModule moduleId="com.renesas.cdt.managedbuild.core.toolchainInfo">
|
||||
<option id="toolchain.id" value="Renesas_RXC"/>
|
||||
<option id="toolchain.version" value="v3.03.00"/>
|
||||
<option id="toolchain.version" value="v3.04.00"/>
|
||||
<option id="toolchain.enable" value="true"/>
|
||||
</storageModule>
|
||||
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
|
||||
@@ -27,7 +27,7 @@
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.noDebugInfo.317830941" name="デバッグ情報を出力する (-no_debug_info)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.dsp.option.noDebugInfo" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.common.566285610" name="Common" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.common">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.789156168" name="命令セット・アーキテクチャ (-isa)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.rxv2" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.789156168" name="命令セット・アーキテクチャ (-isa)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.isa.rxv3" valueType="enumerated"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasFpu.1416683217" name="Has FPU" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasFpu" useByScannerDiscovery="false" value="TRUE" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceName.738625467" name="Device Name" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceName" useByScannerDiscovery="false" value="R5F572NNHxFB" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceCommand.806008705" name="Device Command" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceCommand" useByScannerDiscovery="false" value="R5F572NN" valueType="string"/>
|
||||
@@ -35,6 +35,8 @@
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasDsp.963524125" name="Has DSP" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.hasDsp" useByScannerDiscovery="false" value="false" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceFamily.664031971" name="Device Family" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceFamily" useByScannerDiscovery="false" value="RX72N" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceHistory.1128940076" name="Device history" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.deviceHistory" useByScannerDiscovery="false" value="non_init;R5F572NNHxFB" valueType="string"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.doublePrecisionFPU.1794174354" name="倍精度浮動小数点処理命令を使用する (-dpfpu/-nodpfpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.doublePrecisionFPU" useByScannerDiscovery="false" value="true" valueType="boolean"/>
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns.1365779106" name="浮動小数点演算命令を使用する (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.floatIns.yes" valueType="enumerated"/>
|
||||
</tool>
|
||||
<tool id="com.renesas.cdt.managedbuild.renesas.ccrx.base.compiler.958103973" name="Compiler" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.base.compiler">
|
||||
<option id="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu.1276851320" name="浮動小数点演算命令を使用する (-fpu/-nofpu)" superClass="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu" useByScannerDiscovery="false" value="com.renesas.cdt.managedbuild.renesas.ccrx.compiler.option.fpu.yes" valueType="enumerated"/>
|
||||
|
||||
@@ -88,11 +88,13 @@
|
||||
</Category>
|
||||
</Files>
|
||||
<Device Category="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.cpu.rx600" Series="RX">R5F572NNHxFB</Device>
|
||||
<BuildOptions Name="CC-RX" Version="v3.03.00">
|
||||
<BuildOptions Name="CC-RX" Version="v3.04.00">
|
||||
<BuildMode Active="True" Name="Debug">
|
||||
<GeneralOptions/>
|
||||
<CompileOptions>
|
||||
<Option>-isa=rxv2</Option>
|
||||
<Option>-isa=rxv3</Option>
|
||||
<Option>-fpu</Option>
|
||||
<Option>-dpfpu</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\demos"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\freertos_kernel\include"</Option>
|
||||
@@ -106,6 +108,7 @@
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\vendors\renesas\boards\rx72n-envision-kit\aws_demos\src\smc_gen\r_tsip_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\wolfssl_demo"</Option>
|
||||
<Option>-define=WOLFSSL_USER_SETTINGS</Option>
|
||||
<Option>-asmopt=-bank</Option>
|
||||
<Option>-nomessage</Option>
|
||||
<Option>-debug</Option>
|
||||
<Option>-tfu=intrinsic</Option>
|
||||
@@ -116,7 +119,10 @@
|
||||
<Option>-obj_path=${CONFIGDIR}</Option>
|
||||
</CompileOptions>
|
||||
<AssembleOptions>
|
||||
<Option>-isa=rxv2</Option>
|
||||
<Option>-isa=rxv3</Option>
|
||||
<Option>-fpu</Option>
|
||||
<Option>-dpfpu</Option>
|
||||
<Option>-bank</Option>
|
||||
<Option>-debug</Option>
|
||||
<Option>-nologo</Option>
|
||||
<Option>-output=${CONFIGDIR}</Option>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* key_data.c
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
@@ -70,10 +70,65 @@ const st_key_block_data_t g_key_block_data =
|
||||
},
|
||||
/* uint8_t encrypted_user_update_key[R_TSIP_AES256_KEY_BYTE_SIZE + 16]; */
|
||||
{
|
||||
0xD6, 0xDB, 0x33, 0x0B, 0xC4, 0x72, 0x5A, 0xD3, 0x23, 0xDE, 0x1C, 0xAF,
|
||||
0xA8, 0x33, 0xA6, 0x85, 0xA0, 0xAB, 0xBF, 0x51, 0x8B, 0xF4, 0x68, 0x45,
|
||||
0xBD, 0x6D, 0xA5, 0x7A, 0x88, 0x82, 0x9C, 0x50, 0x43, 0xD7, 0x53, 0xC0,
|
||||
0x9E, 0xA8, 0x4B, 0x7E, 0x8A, 0x8B, 0xF3, 0x1B, 0xA5, 0x50, 0x55, 0x5D
|
||||
0
|
||||
},
|
||||
/* uint8_t
|
||||
* encrypted_user_rsa2048_private_key[R_TSIP_RSA2048_ND_KEY_BYTE_SIZE + 16]
|
||||
*/
|
||||
{
|
||||
0xAF, 0x8C, 0x78, 0xE3, 0x6C, 0x9E, 0xC6, 0x76, 0xE5, 0x86, 0x84, 0xBE,
|
||||
0xF5, 0x6C, 0xD7, 0x2B, 0x46, 0x24, 0x35, 0x99, 0xA5, 0x64, 0xDD, 0xFA,
|
||||
0x35, 0x22, 0x5A, 0xB8, 0x5F, 0xD8, 0x1E, 0xCF, 0xCC, 0x73, 0x10, 0xD6,
|
||||
0x13, 0x69, 0x8F, 0x36, 0xA9, 0x8E, 0x09, 0xDF, 0x83, 0x20, 0x85, 0xBE,
|
||||
0x81, 0x69, 0x51, 0x75, 0xCB, 0xA5, 0x90, 0x8C, 0xC1, 0x75, 0xBE, 0x0F,
|
||||
0x8C, 0xB6, 0xFE, 0x73, 0x03, 0x37, 0x03, 0x41, 0xC0, 0x98, 0xC2, 0xEE,
|
||||
0x2D, 0x1B, 0xDA, 0x10, 0x8B, 0xF6, 0xB6, 0x67, 0xE9, 0x29, 0xCD, 0xEC,
|
||||
0x4C, 0x4D, 0x84, 0x28, 0x61, 0x3A, 0xF5, 0x6D, 0xEE, 0x78, 0x45, 0xF3,
|
||||
0x17, 0xC9, 0x77, 0xAB, 0x56, 0x2C, 0x68, 0xCB, 0x14, 0x9F, 0x5A, 0xE7,
|
||||
0x11, 0xC7, 0x13, 0x4B, 0xDC, 0x31, 0x60, 0x77, 0xDA, 0x56, 0x0C, 0x15,
|
||||
0xB2, 0xA9, 0x73, 0x4C, 0xD3, 0x46, 0x29, 0x18, 0x1C, 0x8C, 0xFD, 0xCF,
|
||||
0xAC, 0x4B, 0x55, 0x30, 0x96, 0xDC, 0xE9, 0xC0, 0x6A, 0x74, 0x68, 0x1D,
|
||||
0x6B, 0x25, 0xB0, 0x8F, 0x0C, 0xD7, 0xDD, 0xFC, 0xA8, 0x15, 0x87, 0x3E,
|
||||
0xA3, 0x91, 0x46, 0x25, 0x6C, 0x6F, 0xC4, 0xB2, 0xE1, 0xB8, 0x5F, 0xF3,
|
||||
0x6A, 0x0D, 0x9C, 0x29, 0x08, 0x6F, 0x5E, 0xFF, 0xA0, 0x81, 0x34, 0xA5,
|
||||
0x2B, 0x2B, 0x47, 0xE0, 0x6D, 0x56, 0xD2, 0x52, 0xC7, 0x19, 0x63, 0x72,
|
||||
0x84, 0x96, 0x64, 0xA5, 0xF2, 0x92, 0x3C, 0x38, 0x37, 0x9F, 0x6A, 0x2D,
|
||||
0x58, 0x33, 0x8C, 0x5C, 0x27, 0x05, 0xCB, 0x4F, 0x62, 0x2F, 0x40, 0xE9,
|
||||
0x55, 0x2C, 0x75, 0x4B, 0x02, 0xB3, 0x61, 0xAD, 0x34, 0x14, 0x49, 0x26,
|
||||
0x94, 0x45, 0x9B, 0xB8, 0xDB, 0x1F, 0xCE, 0xE9, 0xB1, 0xBF, 0x47, 0xF3,
|
||||
0xD4, 0xAD, 0xEB, 0xBC, 0x4F, 0x61, 0xAD, 0x66, 0xAF, 0x10, 0x94, 0x5D,
|
||||
0x25, 0x5B, 0x52, 0xF3, 0x44, 0xBA, 0x28, 0xF8, 0xF2, 0x01, 0x41, 0x61,
|
||||
0xF3, 0xE5, 0x91, 0x44, 0xF9, 0xA3, 0x56, 0xD8, 0xE9, 0x43, 0x0F, 0x78,
|
||||
0x7E, 0x1C, 0x01, 0xA6, 0xD7, 0x47, 0x87, 0x7C, 0xC5, 0xAF, 0x2A, 0xD3,
|
||||
0x71, 0x3A, 0x3E, 0x96, 0xF5, 0x8E, 0xA8, 0x1A, 0x89, 0x17, 0xCD, 0x52,
|
||||
0x7E, 0x98, 0x70, 0xB3, 0x57, 0x22, 0x59, 0x1C, 0xB7, 0x61, 0xD3, 0x32,
|
||||
0xE5, 0x2E, 0x6B, 0x6F, 0x2B, 0xD2, 0xAB, 0x27, 0x62, 0x65, 0xBE, 0x0B,
|
||||
0x8B, 0xFC, 0x9D, 0xB7, 0x3B, 0x4F, 0xA7, 0x35, 0xA6, 0xB3, 0x10, 0x98,
|
||||
0x6D, 0x47, 0x12, 0x16, 0x89, 0x33, 0x9A, 0x87, 0x85, 0x50, 0x21, 0x2B,
|
||||
0x03, 0xD0, 0x0C, 0x25, 0x52, 0xC1, 0xA4, 0xD9, 0x50, 0x57, 0x0A, 0x88,
|
||||
0x67, 0xE9, 0x55, 0x78, 0xFF, 0x23, 0xC0, 0xD1, 0xB6, 0xF4, 0xBD, 0x64,
|
||||
0x38, 0x9A, 0x59, 0xD8, 0x0C, 0xCA, 0x3C, 0x44, 0xBB, 0x31, 0x40, 0xF3,
|
||||
0x3F, 0x84, 0x74, 0x1A, 0x1B, 0xFB, 0x81, 0x22, 0x20, 0x0E, 0x68, 0x48,
|
||||
0x7F, 0xBF, 0xBB, 0xE2, 0xF7, 0xEA, 0x1C, 0xDD, 0x63, 0xAA, 0x3E, 0xFE,
|
||||
0x7A, 0xBD, 0x6C, 0x2A, 0x2C, 0x6C, 0x8E, 0x3C, 0xB6, 0x42, 0x2F, 0x42,
|
||||
0xF2, 0x17, 0x07, 0x2F, 0x4F, 0xAA, 0x4B, 0xA0, 0xE7, 0x98, 0xAE, 0x95,
|
||||
0x21, 0x2A, 0xF8, 0x1C, 0x33, 0x81, 0xC2, 0x64, 0xEC, 0xF3, 0xD7, 0x75,
|
||||
0x81, 0x61, 0x8C, 0xDF, 0x7F, 0x76, 0x6B, 0x44, 0x22, 0x36, 0xD3, 0x7F,
|
||||
0x17, 0x40, 0x84, 0xF8, 0xA8, 0x4B, 0xD5, 0xD4, 0x4E, 0xA1, 0x86, 0xDB,
|
||||
0x9B, 0xCD, 0xB6, 0x6C, 0xDF, 0x35, 0x0C, 0x0D, 0x7E, 0x0F, 0x01, 0x9C,
|
||||
0xF7, 0x6E, 0x89, 0xE6, 0x2F, 0x0E, 0xC5, 0xF3, 0xEA, 0x69, 0x8C, 0xA5,
|
||||
0xD5, 0x48, 0xEE, 0x5B, 0x77, 0x04, 0xFE, 0xC7, 0x56, 0x87, 0x27, 0xD4,
|
||||
0xF9, 0xCC, 0xB4, 0xB4, 0xB7, 0x1A, 0x85, 0x38, 0x0B, 0x93, 0xD2, 0x1D,
|
||||
0xD3, 0xDE, 0x7E, 0x45, 0xAF, 0x82, 0x46, 0x65, 0xFE, 0x59, 0x55, 0x83
|
||||
},
|
||||
/* uint8_t
|
||||
* encrypted_user_ecc256_private_key[R_TSIP_ECC_PRIVATE_KEY_BYTE_SIZE + 16];
|
||||
*/
|
||||
{
|
||||
0xE6, 0x6C, 0xB8, 0x7C, 0xDB, 0x85, 0x50, 0x51, 0x4A, 0x75, 0x38, 0xA4,
|
||||
0x74, 0x7A, 0x8C, 0x7C, 0x07, 0x71, 0x0E, 0x52, 0xC3, 0x19, 0xD1, 0xE6,
|
||||
0xF8, 0x36, 0xD2, 0xD3, 0x53, 0xF8, 0xA7, 0xCE, 0xBC, 0xBE, 0xAE, 0x62,
|
||||
0x7F, 0x00, 0x54, 0xB1, 0x01, 0x11, 0xCA, 0xE3, 0x77, 0x3E, 0x2E, 0x21
|
||||
},
|
||||
|
||||
};
|
||||
@@ -89,56 +144,56 @@ const uint32_t encrypted_user_key_type =
|
||||
|
||||
const unsigned char ca_ecc_cert_der_sig[] =
|
||||
{
|
||||
0x53, 0x07, 0xba, 0xa4, 0xed, 0xd3, 0x8c, 0x2e, 0xea, 0x36, 0xe4, 0x3c,
|
||||
0x0c, 0x4a, 0x89, 0x6c, 0x39, 0x2c, 0xcf, 0xd6, 0x5d, 0x83, 0xe9, 0x3f,
|
||||
0x12, 0x67, 0xdd, 0xbb, 0xa3, 0xe8, 0x33, 0x84, 0x70, 0x36, 0x24, 0xab,
|
||||
0xb4, 0x7e, 0x79, 0x43, 0x77, 0xbf, 0x97, 0xb4, 0x34, 0xd3, 0xbb, 0x9b,
|
||||
0xa5, 0x4c, 0x3c, 0xe0, 0xa6, 0xc2, 0x2a, 0xb0, 0x8b, 0xe1, 0x11, 0xf1,
|
||||
0x7f, 0xf1, 0x7d, 0xad, 0x15, 0x10, 0x25, 0x89, 0x95, 0x6e, 0xdc, 0xcc,
|
||||
0x8e, 0x1a, 0xf4, 0x6e, 0x48, 0xef, 0xe2, 0x17, 0xd5, 0x77, 0x4a, 0x07,
|
||||
0x63, 0xf1, 0xe5, 0x63, 0x20, 0x7c, 0x20, 0x81, 0xda, 0x95, 0xca, 0x46,
|
||||
0x86, 0x80, 0x6d, 0x68, 0x91, 0xc0, 0xd2, 0x85, 0xdf, 0x77, 0xf1, 0xb8,
|
||||
0xa5, 0x6d, 0x3a, 0x09, 0x42, 0x60, 0xdb, 0xf0, 0x10, 0xd7, 0x74, 0xe9,
|
||||
0x1c, 0xb7, 0xc5, 0x8d, 0x4e, 0x6a, 0x6c, 0x80, 0x75, 0x3b, 0xd5, 0xd1,
|
||||
0xde, 0xbb, 0xd2, 0xfb, 0x35, 0x60, 0xa6, 0x31, 0x30, 0xc9, 0x79, 0x83,
|
||||
0xfb, 0xce, 0xe1, 0x96, 0x7c, 0xb9, 0x12, 0x44, 0x1c, 0x96, 0x71, 0x02,
|
||||
0x57, 0xd7, 0x97, 0xa0, 0xc0, 0x24, 0x8d, 0xf5, 0xc2, 0x5c, 0xbf, 0x59,
|
||||
0x9a, 0x74, 0x85, 0xcb, 0x3f, 0x59, 0x58, 0x57, 0x8e, 0xf3, 0x9e, 0x25,
|
||||
0x72, 0x61, 0xb7, 0xc1, 0x36, 0xa6, 0x76, 0xe4, 0x74, 0x2f, 0x1c, 0xbe,
|
||||
0x0d, 0x33, 0x92, 0xba, 0xe7, 0xe7, 0x73, 0x35, 0x41, 0x96, 0x61, 0x95,
|
||||
0xc0, 0x83, 0xab, 0xfd, 0x94, 0xe7, 0x4d, 0xea, 0xe9, 0x54, 0x7b, 0xe9,
|
||||
0xfb, 0xcc, 0x4b, 0x8b, 0xbc, 0x7a, 0x47, 0x54, 0xa5, 0x64, 0x6b, 0x23,
|
||||
0x7a, 0x06, 0x0f, 0x95, 0x3b, 0xd8, 0x5e, 0x32, 0x9d, 0xdf, 0x32, 0x74,
|
||||
0x44, 0xc9, 0xa3, 0x7a, 0xe9, 0x38, 0xf6, 0x11, 0x6f, 0x59, 0x5d, 0xd1,
|
||||
0x4e, 0xfe, 0xab, 0x55,
|
||||
0x6e, 0x7d, 0x2b, 0xd3, 0x6d, 0x6a, 0x70, 0x31, 0xbf, 0xcd, 0x6f, 0x32,
|
||||
0x74, 0x8b, 0x4d, 0xdf, 0x7c, 0x72, 0xc6, 0x78, 0x61, 0x2b, 0x0f, 0xcc,
|
||||
0xbc, 0xa3, 0x25, 0x54, 0x04, 0xfa, 0x9e, 0xf7, 0x1c, 0xa2, 0xe1, 0x33,
|
||||
0x90, 0x08, 0xcd, 0x3c, 0xc1, 0x03, 0x66, 0xb6, 0x3f, 0xf1, 0xbf, 0xaf,
|
||||
0x0d, 0xb0, 0xeb, 0xe4, 0xc7, 0x54, 0x60, 0x34, 0x3b, 0x62, 0xcf, 0x28,
|
||||
0x95, 0xa2, 0x08, 0x79, 0xc5, 0x51, 0xf3, 0xe1, 0x88, 0x3b, 0xa0, 0x1d,
|
||||
0x1d, 0x42, 0x5a, 0xba, 0x09, 0xe4, 0x64, 0xa1, 0x83, 0xf4, 0x60, 0x44,
|
||||
0x89, 0xd3, 0xdd, 0x6c, 0x71, 0x7b, 0xd1, 0xb0, 0x28, 0x7b, 0x98, 0xe2,
|
||||
0x4b, 0x99, 0x9a, 0x22, 0xd0, 0xeb, 0x1c, 0x5c, 0xbe, 0x49, 0x1a, 0xcf,
|
||||
0xd7, 0x4b, 0x19, 0xe9, 0xdf, 0x82, 0x21, 0xe3, 0x87, 0x7a, 0x25, 0x58,
|
||||
0x8f, 0x29, 0x0e, 0xce, 0xf4, 0x09, 0x0f, 0x2f, 0x04, 0xe9, 0xd2, 0xf9,
|
||||
0xcc, 0xb7, 0x7a, 0x46, 0x5d, 0x98, 0x05, 0x54, 0x89, 0x8e, 0x09, 0x79,
|
||||
0xa8, 0x6f, 0xf6, 0x12, 0xdd, 0x93, 0x38, 0x83, 0x14, 0x3f, 0x42, 0xcf,
|
||||
0x03, 0x9d, 0x84, 0x9d, 0xe9, 0x6e, 0x9f, 0x87, 0x0f, 0xb8, 0x15, 0x9b,
|
||||
0x9b, 0x4c, 0x32, 0x3b, 0x82, 0x7b, 0x3d, 0xd4, 0x85, 0x1e, 0x71, 0x99,
|
||||
0x67, 0x40, 0x59, 0xad, 0x8c, 0x31, 0xd7, 0xa2, 0x81, 0xfd, 0x46, 0x21,
|
||||
0xd7, 0xc8, 0x89, 0x3d, 0x17, 0x3f, 0x5e, 0x82, 0x5e, 0xfa, 0x7b, 0x34,
|
||||
0x7a, 0x1b, 0x85, 0x86, 0xf8, 0x02, 0xf2, 0xf3, 0x01, 0x2c, 0xbd, 0x4a,
|
||||
0x98, 0x0f, 0xe9, 0x4b, 0x1a, 0xa3, 0xee, 0xfc, 0x77, 0xda, 0xcf, 0xee,
|
||||
0x9c, 0xca, 0xf9, 0xbf, 0xaa, 0x5b, 0xbc, 0x01, 0x4b, 0xd4, 0x74, 0x7c,
|
||||
0xee, 0xfb, 0x7c, 0xc4, 0x31, 0xb7, 0x46, 0x9e, 0x94, 0x84, 0xa3, 0x82,
|
||||
0x0c, 0x7b, 0x61, 0x4e
|
||||
};
|
||||
const int sizeof_ca_ecc_cert_sig = sizeof(ca_ecc_cert_der_sig);
|
||||
|
||||
/* ./ca-cert.der.sign, */
|
||||
const unsigned char ca_cert_der_sig[] =
|
||||
{
|
||||
0x8b, 0x61, 0x86, 0xe5, 0x0e, 0x2b, 0x4c, 0x76, 0x42, 0x4b, 0x3d, 0x75,
|
||||
0xc4, 0xb0, 0xa8, 0xde, 0x3a, 0xb3, 0xde, 0xbc, 0xb8, 0xb9, 0xfb, 0x98,
|
||||
0xd2, 0x6f, 0xc1, 0xcd, 0x90, 0xea, 0x3f, 0x60, 0x56, 0x09, 0xa4, 0xd7,
|
||||
0x0f, 0x5b, 0x55, 0x73, 0x02, 0x6c, 0x60, 0x07, 0xc6, 0x94, 0xf7, 0xa5,
|
||||
0x14, 0xc8, 0x60, 0x65, 0x29, 0xfa, 0x94, 0x6b, 0x27, 0x10, 0x74, 0xf7,
|
||||
0x2b, 0xe9, 0x7c, 0x7e, 0x53, 0xe9, 0x81, 0x87, 0x47, 0xc1, 0xc7, 0xeb,
|
||||
0xe3, 0x30, 0x0b, 0x83, 0x65, 0x48, 0x98, 0x8b, 0x14, 0x51, 0x3f, 0x9b,
|
||||
0xa1, 0x50, 0x96, 0x03, 0x0d, 0xd2, 0xf1, 0x94, 0x5e, 0xa3, 0x19, 0x8f,
|
||||
0xfd, 0xd3, 0x8f, 0xd9, 0x13, 0x95, 0x8c, 0x7b, 0x6d, 0x4b, 0xc8, 0x2a,
|
||||
0x83, 0xf4, 0xfa, 0xa8, 0x40, 0x0c, 0x04, 0x8a, 0x61, 0xbc, 0x1e, 0xa8,
|
||||
0xff, 0x35, 0xe0, 0x42, 0xbb, 0xf3, 0x55, 0x5d, 0x2f, 0x85, 0x29, 0xe7,
|
||||
0x9f, 0x90, 0xe7, 0x15, 0x56, 0x02, 0x29, 0x1c, 0xe8, 0xd3, 0x83, 0x1c,
|
||||
0x09, 0x7d, 0x5e, 0xa5, 0xdc, 0x2a, 0x75, 0xcf, 0x8c, 0x3b, 0x5a, 0xbd,
|
||||
0xa6, 0x7a, 0x7d, 0xb8, 0xa9, 0xdb, 0x2b, 0xd2, 0x5f, 0xf0, 0x74, 0xe5,
|
||||
0x86, 0x1b, 0xf4, 0xd6, 0x97, 0x92, 0xe8, 0xce, 0x3e, 0x20, 0x70, 0x41,
|
||||
0x95, 0xc4, 0x9b, 0xc2, 0x79, 0x26, 0x91, 0xc7, 0x0c, 0x38, 0x0e, 0x4c,
|
||||
0xa4, 0xc0, 0xbc, 0xca, 0x01, 0x7b, 0x9e, 0x5c, 0xa9, 0xac, 0x4e, 0x72,
|
||||
0xbf, 0x2b, 0x4c, 0xc9, 0xde, 0x28, 0x75, 0xcb, 0xa5, 0xd5, 0xb2, 0xb5,
|
||||
0xf0, 0x35, 0x5f, 0x77, 0x12, 0xf0, 0xbf, 0xbe, 0x38, 0xb9, 0x54, 0xd4,
|
||||
0x48, 0xbc, 0xd1, 0x0f, 0xf2, 0x20, 0xbc, 0xe1, 0x80, 0x63, 0x81, 0xbf,
|
||||
0xa4, 0xf4, 0x83, 0xe0, 0xef, 0x78, 0xe5, 0x35, 0x33, 0x1a, 0x7a, 0x1f,
|
||||
0x98, 0xd1, 0x8f, 0x93,
|
||||
0x0a, 0xc8, 0xbb, 0x7e, 0x5a, 0x72, 0x6a, 0x5b, 0xf0, 0xc6, 0xbf, 0x36,
|
||||
0x8e, 0xe1, 0xcd, 0xbc, 0x08, 0xfd, 0x22, 0x5a, 0x3b, 0x48, 0x33, 0xb9,
|
||||
0x12, 0x55, 0x80, 0x6c, 0x36, 0x14, 0x05, 0x24, 0x63, 0x20, 0x8b, 0x26,
|
||||
0x69, 0xa9, 0xe3, 0x15, 0xb9, 0x00, 0x8d, 0xea, 0x3a, 0xee, 0x2d, 0x41,
|
||||
0xec, 0x43, 0x4a, 0x17, 0x48, 0x26, 0x4a, 0xd6, 0xe4, 0x1b, 0xa5, 0x97,
|
||||
0x2e, 0xf6, 0x41, 0xa7, 0xa2, 0x2b, 0x83, 0x2c, 0xad, 0x6e, 0x4e, 0xfc,
|
||||
0x57, 0xf1, 0x28, 0xf0, 0xa7, 0xf9, 0x5b, 0x48, 0xab, 0xed, 0x63, 0x22,
|
||||
0xed, 0x1e, 0xf1, 0x9d, 0xab, 0xbf, 0x9c, 0x78, 0x04, 0x49, 0xad, 0xf1,
|
||||
0x43, 0x2f, 0x21, 0x9c, 0x90, 0xb8, 0x35, 0x14, 0x68, 0x12, 0x89, 0x00,
|
||||
0x20, 0x5b, 0x83, 0x52, 0xb7, 0xec, 0x26, 0x01, 0x26, 0xe1, 0x0f, 0xf6,
|
||||
0x98, 0xd1, 0xb6, 0x28, 0x84, 0xc8, 0xa5, 0x3e, 0xe9, 0xfb, 0x19, 0x2e,
|
||||
0x8f, 0xd7, 0x66, 0x98, 0xc0, 0x5e, 0x7b, 0xbc, 0x1a, 0xd9, 0x27, 0xb9,
|
||||
0x76, 0xcc, 0x58, 0x48, 0x0c, 0x0c, 0x22, 0x23, 0x19, 0xfd, 0x22, 0xfa,
|
||||
0x47, 0x90, 0x38, 0x62, 0xe0, 0x91, 0x79, 0x35, 0x3d, 0xa2, 0x83, 0x99,
|
||||
0x2b, 0x86, 0x7a, 0x88, 0x9b, 0x07, 0xe7, 0xc5, 0x95, 0x69, 0x9a, 0x2b,
|
||||
0x2e, 0x47, 0xcf, 0xfd, 0x9e, 0x64, 0xb5, 0xca, 0x44, 0x94, 0x95, 0xf3,
|
||||
0x2a, 0x8f, 0x4a, 0xcf, 0x0f, 0xd4, 0x7e, 0x0d, 0x0f, 0x2a, 0x0b, 0xb6,
|
||||
0x89, 0x64, 0xe3, 0x8c, 0x02, 0x3e, 0x76, 0x66, 0x68, 0x19, 0xa9, 0x07,
|
||||
0x5a, 0xc6, 0x33, 0xcd, 0x27, 0xff, 0x07, 0xd4, 0x91, 0x5b, 0x11, 0x3a,
|
||||
0xe3, 0xf5, 0x69, 0x70, 0xa7, 0xfe, 0xf2, 0xf0, 0xbd, 0x11, 0xaf, 0xa7,
|
||||
0x37, 0xda, 0x24, 0x75, 0x3e, 0x1a, 0x39, 0x49, 0xb4, 0x1e, 0x0e, 0xaf,
|
||||
0x5d, 0x1e, 0x94, 0xdf
|
||||
};
|
||||
const int sizeof_ca_cert_sig = sizeof(ca_cert_der_sig);
|
||||
/* ./client-cert.der.sign, */
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* key_data.h
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
@@ -38,6 +38,8 @@ typedef struct st_key_block_data
|
||||
uint8_t iv[R_TSIP_AES_CBC_IV_BYTE_SIZE];
|
||||
uint8_t encrypted_user_rsa2048_ne_key[R_TSIP_RSA2048_NE_KEY_BYTE_SIZE + 16];
|
||||
uint8_t encrypted_user_update_key[R_TSIP_AES256_KEY_BYTE_SIZE + 16];
|
||||
uint8_t encrypted_user_rsa2048_private_key[R_TSIP_RSA2048_ND_KEY_BYTE_SIZE + 16];
|
||||
uint8_t encrypted_user_ecc256_private_key[R_TSIP_ECC_PRIVATE_KEY_BYTE_SIZE + 16];
|
||||
} st_key_block_data_t;
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* user_settings.h
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
@@ -36,9 +36,10 @@
|
||||
* 109: TSIPv1.09
|
||||
* 113: TSIPv1.13
|
||||
* 114: TSIPv1.14
|
||||
* 115: TSIPv1.15
|
||||
*----------------------------------------------------------------------------*/
|
||||
#define WOLFSSL_RENESAS_TSIP
|
||||
#define WOLFSSL_RENESAS_TSIP_VER 114
|
||||
#define WOLFSSL_RENESAS_TSIP_VER 115
|
||||
|
||||
|
||||
/*-- TLS version definitions --------------------------------------------------
|
||||
@@ -47,7 +48,7 @@
|
||||
* TLSv1.3, uncomment line below.
|
||||
*
|
||||
*----------------------------------------------------------------------------*/
|
||||
/*#define WOLFSSL_TLS13*/
|
||||
#define WOLFSSL_TLS13
|
||||
|
||||
|
||||
/*-- Operating System related definitions --------------------------------------
|
||||
@@ -60,8 +61,10 @@
|
||||
#define FREERTOS
|
||||
#define FREERTOS_TCP
|
||||
|
||||
|
||||
|
||||
#if !defined(FREERTOS_TCP)
|
||||
#define WOLFSSL_NO_SOCK
|
||||
#define WOLFSSL_USER_IO
|
||||
#endif
|
||||
|
||||
/*-- Cipher related definitions -----------------------------------------------
|
||||
*
|
||||
@@ -69,11 +72,12 @@
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
#define NO_DEV_RANDOM
|
||||
|
||||
#define NO_MD4
|
||||
#define WOLFSSL_DH_CONST
|
||||
#define HAVE_TLS_EXTENSIONS
|
||||
|
||||
#define HAVE_AESGCM
|
||||
#define HAVE_AESCCM
|
||||
#define HAVE_AES_CBC
|
||||
#define WOLFSSL_SHA512
|
||||
|
||||
@@ -148,8 +152,10 @@
|
||||
|
||||
|
||||
#define WOLFSSL_USER_CURRTIME /* for benchmark */
|
||||
#define USER_TIME
|
||||
#define TIME_OVERRIDES
|
||||
#define XTIME time
|
||||
#define WOLFSSL_GMTIME
|
||||
#define XGMTIME(c,t) gmtime(c)
|
||||
#define USE_WOLF_SUSECONDS_T
|
||||
#define USE_WOLF_TIMEVAL_T
|
||||
|
||||
@@ -219,3 +225,6 @@
|
||||
#define HAVE_HKDF
|
||||
#define WC_RSA_PSS
|
||||
#endif
|
||||
|
||||
/*-- strcasecmp */
|
||||
#define XSTRCASECMP(s1,s2) strcmp((s1),(s2))
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* wolfssl_demo.c
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
@@ -24,11 +24,7 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "FreeRTOS.h"
|
||||
#include "FreeRTOS_IP.h"
|
||||
#include "FreeRTOS_Sockets.h"
|
||||
#include "platform/iot_network.h"
|
||||
#include "platform.h"
|
||||
|
||||
|
||||
|
||||
#include <wolfssl/wolfcrypt/settings.h>
|
||||
@@ -37,43 +33,45 @@
|
||||
#include "wolfssl/certs_test.h"
|
||||
#include "wolfssl/wolfcrypt/types.h"
|
||||
#include "wolfssl_demo.h"
|
||||
#include <wolfcrypt/test/test.h>
|
||||
#include <wolfcrypt/benchmark/benchmark.h>
|
||||
|
||||
#include "FreeRTOS.h"
|
||||
#if defined(FREERTOS_TCP)
|
||||
#include "FreeRTOS_IP.h"
|
||||
#include "FreeRTOS_Sockets.h"
|
||||
#include "platform/iot_network.h"
|
||||
#include "platform.h"
|
||||
#endif
|
||||
|
||||
#if defined(BENCHMARK)
|
||||
#include "r_cmt_rx_if.h"
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(TLS_CLIENT)
|
||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS)
|
||||
#include "key_data.h"
|
||||
#include <wolfssl/wolfcrypt/port/Renesas/renesas-tsip-crypt.h>
|
||||
|
||||
extern const st_key_block_data_t g_key_block_data;
|
||||
user_PKCbInfo guser_PKCbInfo;
|
||||
#endif
|
||||
user_PKCbInfo guser_PKCbInfo;
|
||||
uint32_t g_encrypted_root_public_key[140];
|
||||
static TsipUserCtx userContext;
|
||||
|
||||
#endif /* WOLFSSL_RENESAS_TSIP_TLS */
|
||||
|
||||
static WOLFSSL_CTX* client_ctx;
|
||||
#endif /* TLS_CLIENT */
|
||||
|
||||
#define YEAR 2022
|
||||
#define MON 1
|
||||
#define FREQ 10000 /* Hz */
|
||||
|
||||
#define TLSSERVER_IP "192.168.1.14"
|
||||
#define TLSSERVER_IP "192.168.11.49"
|
||||
#define TLSSERVER_PORT 11111
|
||||
|
||||
typedef struct func_args {
|
||||
int argc;
|
||||
char** argv;
|
||||
int return_code;
|
||||
} func_args;
|
||||
#define YEAR 2022
|
||||
#define MON 3
|
||||
#define FREQ 10000 /* Hz */
|
||||
|
||||
static long tick;
|
||||
static int tmTick;
|
||||
static WOLFSSL_CTX* client_ctx;
|
||||
|
||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS)
|
||||
uint32_t g_encrypted_root_public_key[140];
|
||||
static TsipUserCtx userContext;
|
||||
#endif
|
||||
|
||||
/* time
|
||||
* returns seconds from EPOCH
|
||||
*/
|
||||
@@ -86,11 +84,13 @@ time_t time(time_t *t)
|
||||
/* timeTick
|
||||
* called periodically by H/W timer to increase tmTick.
|
||||
*/
|
||||
#if defined(BENCHMARK)
|
||||
static void timeTick(void* pdata)
|
||||
{
|
||||
(void)pdata;
|
||||
tick++;
|
||||
}
|
||||
#endif
|
||||
|
||||
double current_time(int reset)
|
||||
{
|
||||
@@ -98,30 +98,30 @@ double current_time(int reset)
|
||||
return ((double)tick/FREQ) ;
|
||||
}
|
||||
|
||||
void wolfcrypt_test();
|
||||
void benchmark_test();
|
||||
|
||||
|
||||
|
||||
|
||||
/* --------------------------------------------------------*/
|
||||
/* Benchmark_demo */
|
||||
/* --------------------------------------------------------*/
|
||||
#if defined(BENCHMARK)
|
||||
static void Benchmark_demo(void)
|
||||
{
|
||||
uint32_t channel;
|
||||
R_CMT_CreatePeriodic(FREQ, &timeTick, &channel);
|
||||
|
||||
printf("Start wolfCrypt Benchmark\n");
|
||||
benchmark_test();
|
||||
benchmark_test(NULL);
|
||||
printf("End wolfCrypt Benchmark\n");
|
||||
}
|
||||
|
||||
#endif /* BENCHMARK */
|
||||
/* --------------------------------------------------------*/
|
||||
/* CryptTest_demo */
|
||||
/* --------------------------------------------------------*/
|
||||
#if defined(CRYPT_TEST)
|
||||
static void CryptTest_demo(void)
|
||||
{
|
||||
func_args args = { 0 };
|
||||
int ret;
|
||||
|
||||
if ((ret = wolfCrypt_Init()) != 0) {
|
||||
@@ -129,17 +129,18 @@ static void CryptTest_demo(void)
|
||||
}
|
||||
|
||||
printf("Start wolfCrypt Test\n");
|
||||
wolfcrypt_test(args);
|
||||
wolfcrypt_test(NULL);
|
||||
printf("End wolfCrypt Test\n");
|
||||
|
||||
if ((ret = wolfCrypt_Cleanup()) != 0) {
|
||||
printf("wolfCrypt_Cleanup failed %d\n", ret);
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* CRYPT_TEST */
|
||||
/* --------------------------------------------------------*/
|
||||
/* Tls_client_demo */
|
||||
/* --------------------------------------------------------*/
|
||||
#if defined(TLS_CLIENT)
|
||||
static void Tls_client_init(const char* cipherlist)
|
||||
{
|
||||
|
||||
@@ -169,7 +170,8 @@ static void Tls_client_init(const char* cipherlist)
|
||||
#endif
|
||||
|
||||
/* Create and initialize WOLFSSL_CTX */
|
||||
if ((client_ctx = wolfSSL_CTX_new(wolfTLSv1_2_client_method_ex((void *)NULL))) == NULL) {
|
||||
if ((client_ctx =
|
||||
wolfSSL_CTX_new(wolfSSLv23_client_method_ex((void *)NULL))) == NULL) {
|
||||
printf("ERROR: failed to create WOLFSSL_CTX\n");
|
||||
return;
|
||||
}
|
||||
@@ -178,26 +180,86 @@ static void Tls_client_init(const char* cipherlist)
|
||||
tsip_set_callbacks(client_ctx);
|
||||
#endif
|
||||
|
||||
/* load root CA certificate */
|
||||
#if defined(NO_FILESYSTEM)
|
||||
|
||||
if (wolfSSL_CTX_load_verify_buffer(client_ctx, cert, SIZEOF_CERT, SSL_FILETYPE_ASN1) != SSL_SUCCESS){
|
||||
if (wolfSSL_CTX_load_verify_buffer(client_ctx, cert,
|
||||
SIZEOF_CERT, SSL_FILETYPE_ASN1) != SSL_SUCCESS) {
|
||||
printf("ERROR: can't load certificate data\n");
|
||||
return;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
if (wolfSSL_CTX_load_verify_locations(client_ctx, cert, 0) != SSL_SUCCESS) {
|
||||
printf("ERROR: can't load \"%s\"\n", cert);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/* load client certificate */
|
||||
#ifdef USE_ECC_CERT
|
||||
if (wolfSSL_CTX_use_certificate_chain_buffer_format(client_ctx,
|
||||
cliecc_cert_der_256,
|
||||
sizeof_cliecc_cert_der_256,
|
||||
WOLFSSL_FILETYPE_ASN1) != SSL_SUCCESS) {
|
||||
printf("ERROR: can't load client-certificate\n");
|
||||
return;
|
||||
}
|
||||
#else
|
||||
if (wolfSSL_CTX_use_certificate_chain_buffer_format(client_ctx,
|
||||
client_cert_der_2048,
|
||||
sizeof_client_cert_der_2048,
|
||||
WOLFSSL_FILETYPE_ASN1) != SSL_SUCCESS) {
|
||||
printf("ERROR: can't load client-certificate\n");
|
||||
return;
|
||||
}
|
||||
#endif /* USE_ECC_CERT */
|
||||
|
||||
/* load client private key */
|
||||
#ifdef USE_ECC_CERT
|
||||
#if defined(WOLFSSL_TLS13) && defined(WOLFSSL_RENESAS_TSIP_TLS) && \
|
||||
(WOLFSSL_RENESAS_TSIP_VER >= 115 )
|
||||
if (tsip_set_clientPrivateKeyEnc(
|
||||
g_key_block_data.encrypted_user_ecc256_private_key,
|
||||
TSIP_ECCP256) != 0) {
|
||||
printf("ERROR: can't load client-private key\n");
|
||||
return;
|
||||
}
|
||||
#else
|
||||
if (wolfSSL_CTX_use_PrivateKey_buffer(client_ctx,
|
||||
ecc_clikey_der_256,
|
||||
sizeof_ecc_clikey_der_256,
|
||||
SSL_FILETYPE_ASN1) != WOLFSSL_SUCCESS) {
|
||||
printf("ERROR: can't load private-key data.\n");
|
||||
return;
|
||||
}
|
||||
#endif /* WOLFSSL_TLS13 */
|
||||
#else
|
||||
if (wolfSSL_CTX_use_PrivateKey_buffer(client_ctx,
|
||||
client_key_der_2048,
|
||||
sizeof_client_key_der_2048,
|
||||
SSL_FILETYPE_ASN1)
|
||||
!= WOLFSSL_SUCCESS) {
|
||||
printf("ERROR: can't load private-key data.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
#endif /* USE_ECC_CERT */
|
||||
|
||||
#if defined(WOLFSSL_TLS13) && defined(WOLFSSL_RENESAS_TSIP_TLS) && \
|
||||
(WOLFSSL_RENESAS_TSIP_VER >= 115)
|
||||
|
||||
if (wolfSSL_CTX_UseSupportedCurve(client_ctx, WOLFSSL_ECC_SECP256R1)
|
||||
!= WOLFSSL_SUCCESS) {
|
||||
wolfSSL_CTX_free(client_ctx); client_ctx = NULL;
|
||||
printf("client can't set use supported curves\n");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/* use specific cipher */
|
||||
if (cipherlist != NULL &&
|
||||
wolfSSL_CTX_set_cipher_list(client_ctx, cipherlist) != WOLFSSL_SUCCESS) {
|
||||
wolfSSL_CTX_set_cipher_list(client_ctx, cipherlist) !=
|
||||
WOLFSSL_SUCCESS) {
|
||||
wolfSSL_CTX_free(client_ctx); client_ctx = NULL;
|
||||
printf("client can't set cipher list");
|
||||
}
|
||||
@@ -270,7 +332,8 @@ static void Tls_client()
|
||||
}
|
||||
|
||||
if (ret == 0) {
|
||||
if (wolfSSL_write(ssl, sendBuff, strlen(sendBuff)) != strlen(sendBuff)) {
|
||||
if (wolfSSL_write(ssl, sendBuff, strlen(sendBuff)) !=
|
||||
strlen(sendBuff)) {
|
||||
printf("ERROR wolfSSL_write: %d\n", wolfSSL_get_error(ssl, 0));
|
||||
ret = -1;
|
||||
}
|
||||
@@ -309,19 +372,32 @@ static void Tls_client()
|
||||
static void Tls_client_demo(void)
|
||||
{
|
||||
|
||||
/* setup ciphersuite list to use for TLS handshake */
|
||||
/* setup ciphersuite list to use for TLS handshake */
|
||||
|
||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS)
|
||||
|
||||
#ifdef USE_ECC_CERT
|
||||
const char* cipherlist[] = {
|
||||
#if defined(WOLFSSL_TLS13)
|
||||
"TLS13-AES128-GCM-SHA256",
|
||||
"TLS13-AES128-CCM-SHA256",
|
||||
#endif
|
||||
"ECDHE-ECDSA-AES128-GCM-SHA256",
|
||||
"ECDHE-ECDSA-AES128-SHA256"
|
||||
};
|
||||
const int cipherlist_sz = 2;
|
||||
int cipherlist_sz;
|
||||
#if defined(WOLFSSL_TLS13)
|
||||
cipherlist_sz = 2;
|
||||
#else
|
||||
cipherlist_sz = 2;
|
||||
#endif
|
||||
|
||||
#else
|
||||
const char* cipherlist[] = {
|
||||
#if defined(WOLFSSL_TLS13)
|
||||
"TLS13-AES128-GCM-SHA256",
|
||||
"TLS13-AES128-CCM-SHA256",
|
||||
#endif
|
||||
"ECDHE-RSA-AES128-GCM-SHA256",
|
||||
"ECDHE-RSA-AES128-SHA256",
|
||||
"AES128-SHA",
|
||||
@@ -329,7 +405,12 @@ static void Tls_client_demo(void)
|
||||
"AES256-SHA",
|
||||
"AES256-SHA256"
|
||||
};
|
||||
const int cipherlist_sz = 6;
|
||||
int cipherlist_sz;
|
||||
#if defined(WOLFSSL_TLS13)
|
||||
cipherlist_sz = 2;
|
||||
#else
|
||||
cipherlist_sz = 6;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -344,7 +425,7 @@ static void Tls_client_demo(void)
|
||||
printf("/*------------------------------------------------*/\n");
|
||||
printf(" TLS_Client demo\n");
|
||||
printf(" - TLS server address:" TLSSERVER_IP " port: %d\n",
|
||||
TLSSERVER_PORT );
|
||||
TLSSERVER_PORT);
|
||||
|
||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS) && (WOLFSSL_RENESAS_TSIP_VER >=109)
|
||||
printf(" - with TSIP\n");
|
||||
@@ -372,8 +453,6 @@ static void Tls_client_demo(void)
|
||||
(byte*)&g_key_block_data.encrypted_user_rsa2048_ne_key,
|
||||
encrypted_user_key_type);
|
||||
|
||||
guser_PKCbInfo.user_key_id = 0;
|
||||
|
||||
#endif /* WOLFSSL_RENESAS_TSIP_TLS && (WOLFSSL_RENESAS_TSIP_VER >=109) */
|
||||
|
||||
do {
|
||||
@@ -388,7 +467,7 @@ static void Tls_client_demo(void)
|
||||
|
||||
printf("End of TLS_Client demo.\n");
|
||||
}
|
||||
|
||||
#endif /* TLS_CLIENT */
|
||||
|
||||
/* Demo entry function called by iot_demo_runner
|
||||
* To run this entry function as an aws_iot_demo, define this as
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* wolfssl_demo.h
|
||||
*
|
||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# STM Benchmarks
|
||||
|
||||
* [STM32H753ZI](#stm32h753zi)
|
||||
* [STM32WB55](#stm32wb55)
|
||||
* [STM32F437](#stm32f437)
|
||||
* [STM32L4A6Z](#stm32l4a6z)
|
||||
* [STM32L562E](#stm32l562e)
|
||||
* [STM32F777](#stm32f777)
|
||||
* [STM32U585](#stm32u585)
|
||||
|
||||
## STM32H753ZI
|
||||
|
||||
Supports RNG, AES CBC/GCM and SHA-2 acceleration.
|
||||
@@ -562,3 +570,141 @@ ECDSA 256 verify 2 ops took 1.463 sec, avg 731.500 ms, 1.367 ops/sec
|
||||
Benchmark complete
|
||||
Benchmark Test: Return code 0
|
||||
```
|
||||
|
||||
## STM32U585
|
||||
|
||||
Supports RNG, AES CBC/GCM and SHA-1,SHA-2 acceleration.
|
||||
|
||||
Board: B-U585I-IOT02A
|
||||
CPU: Cortex-M33 at 160 MHz
|
||||
IDE: STM32CubeIDE
|
||||
RTOS: FreeRTOS
|
||||
|
||||
### STM32U585 (STM Symmetric AES/SHA acceleration, STM PKA PKA w/Fast Math)
|
||||
|
||||
This test uses `WOLFSSL_SMALL_STACK_CACHE`, which slightly improves the DRBG RNG performance.
|
||||
|
||||
Only the ECC sign and verify are currently being accelerated by PKA.
|
||||
|
||||
```
|
||||
------------------------------------------------------------------------------
|
||||
wolfSSL version 5.3.1
|
||||
------------------------------------------------------------------------------
|
||||
Running wolfCrypt Benchmarks...
|
||||
wolfCrypt Benchmark (block bytes 1024, min 1.0 sec each)
|
||||
RNG 575 KB took 1.039 seconds, 553.417 KB/s
|
||||
AES-128-CBC-enc 6 MB took 1.000 seconds, 6.274 MB/s
|
||||
AES-128-CBC-dec 6 MB took 1.000 seconds, 6.128 MB/s
|
||||
AES-256-CBC-enc 6 MB took 1.000 seconds, 6.274 MB/s
|
||||
AES-256-CBC-dec 6 MB took 1.000 seconds, 6.152 MB/s
|
||||
AES-128-GCM-enc 6 MB took 1.000 seconds, 5.640 MB/s
|
||||
AES-128-GCM-dec 6 MB took 1.000 seconds, 5.566 MB/s
|
||||
AES-256-GCM-enc 6 MB took 1.000 seconds, 5.615 MB/s
|
||||
AES-256-GCM-dec 6 MB took 1.000 seconds, 5.542 MB/s
|
||||
GMAC Small 11 MB took 1.000 seconds, 11.499 MB/s
|
||||
CHACHA 4 MB took 1.000 seconds, 3.882 MB/s
|
||||
CHA-POLY 2 MB took 1.008 seconds, 2.470 MB/s
|
||||
3DES 200 KB took 1.071 seconds, 186.741 KB/s
|
||||
MD5 6 MB took 1.000 seconds, 6.299 MB/s
|
||||
POLY1305 10 MB took 1.000 seconds, 10.449 MB/s
|
||||
SHA 6 MB took 1.000 seconds, 6.299 MB/s
|
||||
SHA-256 6 MB took 1.000 seconds, 6.250 MB/s
|
||||
HMAC-MD5 6 MB took 1.000 seconds, 6.177 MB/s
|
||||
HMAC-SHA 6 MB took 1.000 seconds, 6.177 MB/s
|
||||
HMAC-SHA256 6 MB took 1.000 seconds, 6.104 MB/s
|
||||
RSA 2048 public 28 ops took 1.031 sec, avg 36.821 ms, 27.158 ops/sec
|
||||
RSA 2048 private 2 ops took 4.310 sec, avg 2155.000 ms, 0.464 ops/sec
|
||||
DH 2048 key gen 3 ops took 1.197 sec, avg 399.000 ms, 2.506 ops/sec
|
||||
DH 2048 agree 2 ops took 1.525 sec, avg 762.500 ms, 1.311 ops/sec
|
||||
ECC [ SECP256R1] 256 key gen 50 ops took 1.019 sec, avg 20.380 ms, 49.068 ops/sec
|
||||
ECDHE [ SECP256R1] 256 agree 52 ops took 1.008 sec, avg 19.385 ms, 51.587 ops/sec
|
||||
ECDSA [ SECP256R1] 256 sign 56 ops took 1.000 sec, avg 17.857 ms, 56.000 ops/sec
|
||||
ECDSA [ SECP256R1] 256 verify 56 ops took 1.008 sec, avg 18.000 ms, 55.556 ops/sec
|
||||
Benchmark complete
|
||||
Benchmark Test: Return code 0
|
||||
```
|
||||
|
||||
|
||||
### STM32U585 (STM Symmetric AES/SHA acceleration, SP Math ASM Cortex M)
|
||||
|
||||
```
|
||||
------------------------------------------------------------------------------
|
||||
wolfSSL version 5.3.1
|
||||
------------------------------------------------------------------------------
|
||||
Running wolfCrypt Benchmarks...
|
||||
wolfCrypt Benchmark (block bytes 1024, min 1.0 sec each)
|
||||
RNG 250 KB took 1.039 seconds, 240.616 KB/s
|
||||
AES-128-CBC-enc 6 MB took 1.000 seconds, 6.152 MB/s
|
||||
AES-128-CBC-dec 6 MB took 1.004 seconds, 6.031 MB/s
|
||||
AES-256-CBC-enc 6 MB took 1.000 seconds, 6.152 MB/s
|
||||
AES-256-CBC-dec 6 MB took 1.000 seconds, 6.055 MB/s
|
||||
AES-128-GCM-enc 6 MB took 1.000 seconds, 5.542 MB/s
|
||||
AES-128-GCM-dec 5 MB took 1.000 seconds, 5.493 MB/s
|
||||
AES-256-GCM-enc 6 MB took 1.000 seconds, 5.518 MB/s
|
||||
AES-256-GCM-dec 5 MB took 1.000 seconds, 5.469 MB/s
|
||||
GMAC Small 11 MB took 1.000 seconds, 11.182 MB/s
|
||||
CHACHA 3 MB took 1.004 seconds, 3.429 MB/s
|
||||
CHA-POLY 2 MB took 1.000 seconds, 2.271 MB/s
|
||||
3DES 175 KB took 1.000 seconds, 175.000 KB/s
|
||||
MD5 8 MB took 1.000 seconds, 8.008 MB/s
|
||||
POLY1305 10 MB took 1.000 seconds, 10.181 MB/s
|
||||
SHA 8 MB took 1.000 seconds, 7.983 MB/s
|
||||
SHA-256 8 MB took 1.000 seconds, 7.910 MB/s
|
||||
HMAC-MD5 8 MB took 1.000 seconds, 7.812 MB/s
|
||||
HMAC-SHA 8 MB took 1.000 seconds, 7.812 MB/s
|
||||
HMAC-SHA256 8 MB took 1.000 seconds, 7.642 MB/s
|
||||
RSA 2048 public 52 ops took 1.000 sec, avg 19.231 ms, 52.000 ops/sec
|
||||
RSA 2048 private 2 ops took 1.381 sec, avg 690.500 ms, 1.448 ops/sec
|
||||
DH 2048 key gen 4 ops took 1.263 sec, avg 315.750 ms, 3.167 ops/sec
|
||||
DH 2048 agree 4 ops took 1.262 sec, avg 315.500 ms, 3.170 ops/sec
|
||||
ECC [ SECP256R1] 256 key gen 108 ops took 1.016 sec, avg 9.407 ms, 106.299 ops/sec
|
||||
ECDHE [ SECP256R1] 256 agree 58 ops took 1.032 sec, avg 17.793 ms, 56.202 ops/sec
|
||||
ECDSA [ SECP256R1] 256 sign 64 ops took 1.027 sec, avg 16.047 ms, 62.317 ops/sec
|
||||
ECDSA [ SECP256R1] 256 verify 36 ops took 1.019 sec, avg 28.306 ms, 35.329 ops/sec
|
||||
Benchmark complete
|
||||
Benchmark Test: Return code 0
|
||||
```
|
||||
|
||||
### STM32U585 (No STM HW Crypto, SP Math C32)
|
||||
|
||||
```
|
||||
------------------------------------------------------------------------------
|
||||
wolfSSL version 5.3.1
|
||||
------------------------------------------------------------------------------
|
||||
Running wolfCrypt Benchmarks...
|
||||
wolfCrypt Benchmark (block bytes 1024, min 1.0 sec each)
|
||||
RNG 750 KB took 1.015 seconds, 738.916 KB/s
|
||||
AES-128-CBC-enc 900 KB took 1.004 seconds, 896.414 KB/s
|
||||
AES-128-CBC-dec 900 KB took 1.012 seconds, 889.328 KB/s
|
||||
AES-192-CBC-enc 775 KB took 1.004 seconds, 771.912 KB/s
|
||||
AES-192-CBC-dec 775 KB took 1.023 seconds, 757.576 KB/s
|
||||
AES-256-CBC-enc 675 KB took 1.000 seconds, 675.000 KB/s
|
||||
AES-256-CBC-dec 675 KB took 1.031 seconds, 654.704 KB/s
|
||||
AES-128-GCM-enc 50 KB took 1.035 seconds, 48.309 KB/s
|
||||
AES-128-GCM-dec 50 KB took 1.036 seconds, 48.263 KB/s
|
||||
AES-192-GCM-enc 50 KB took 1.051 seconds, 47.574 KB/s
|
||||
AES-192-GCM-dec 50 KB took 1.051 seconds, 47.574 KB/s
|
||||
AES-256-GCM-enc 50 KB took 1.067 seconds, 46.860 KB/s
|
||||
AES-256-GCM-dec 50 KB took 1.070 seconds, 46.729 KB/s
|
||||
GMAC Small 52 KB took 1.004 seconds, 51.793 KB/s
|
||||
CHACHA 4 MB took 1.000 seconds, 3.833 MB/s
|
||||
CHA-POLY 2 MB took 1.004 seconds, 2.456 MB/s
|
||||
3DES 200 KB took 1.074 seconds, 186.220 KB/s
|
||||
MD5 6 MB took 1.000 seconds, 6.274 MB/s
|
||||
POLY1305 10 MB took 1.000 seconds, 10.400 MB/s
|
||||
SHA 5 MB took 1.000 seconds, 5.225 MB/s
|
||||
SHA-256 2 MB took 1.004 seconds, 1.970 MB/s
|
||||
HMAC-MD5 6 MB took 1.000 seconds, 6.201 MB/s
|
||||
HMAC-SHA 5 MB took 1.000 seconds, 5.176 MB/s
|
||||
HMAC-SHA256 2 MB took 1.000 seconds, 1.953 MB/s
|
||||
RSA 2048 public 36 ops took 1.008 sec, avg 28.000 ms, 35.714 ops/sec
|
||||
RSA 2048 private 2 ops took 3.216 sec, avg 1608.000 ms, 0.622 ops/sec
|
||||
DH 2048 key gen 2 ops took 1.416 sec, avg 708.000 ms, 1.412 ops/sec
|
||||
DH 2048 agree 2 ops took 1.419 sec, avg 709.500 ms, 1.409 ops/sec
|
||||
ECC [ SECP256R1] 256 key gen 8 ops took 1.169 sec, avg 146.125 ms, 6.843 ops/sec
|
||||
ECDHE [ SECP256R1] 256 agree 8 ops took 1.165 sec, avg 145.625 ms, 6.867 ops/sec
|
||||
ECDSA [ SECP256R1] 256 sign 8 ops took 1.314 sec, avg 164.250 ms, 6.088 ops/sec
|
||||
ECDSA [ SECP256R1] 256 verify 4 ops took 1.196 sec, avg 299.000 ms, 3.344 ops/sec
|
||||
Benchmark complete
|
||||
Benchmark Test: Return code 0
|
||||
```
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user