Add mynewt testplan

Signed-off-by: Fabio Utzig <utzig@apache.org>
diff --git a/testplan/mynewt/keys/ec/pkg.yml b/testplan/mynewt/keys/ec/pkg.yml
new file mode 100644
index 0000000..2b3256b
--- /dev/null
+++ b/testplan/mynewt/keys/ec/pkg.yml
@@ -0,0 +1,3 @@
+pkg.name: keys/ec
+pkg.author: "Apache Mynewt <dev@mynewt.apache.org>"
+pkg.homepage: "http://mynewt.apache.org/"
diff --git a/testplan/mynewt/keys/ec/src/keys.c b/testplan/mynewt/keys/ec/src/keys.c
new file mode 100644
index 0000000..81505eb
--- /dev/null
+++ b/testplan/mynewt/keys/ec/src/keys.c
@@ -0,0 +1,18 @@
+#include <bootutil/sign_key.h>
+static unsigned char key[] = {
+  0x30, 0x4e, 0x30, 0x10, 0x06, 0x07, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x02,
+  0x01, 0x06, 0x05, 0x2b, 0x81, 0x04, 0x00, 0x21, 0x03, 0x3a, 0x00, 0x04,
+  0xa0, 0x8c, 0x5a, 0xd6, 0x98, 0x20, 0x1a, 0xd5, 0xb9, 0xc4, 0xfd, 0x7f,
+  0xa5, 0xd3, 0x08, 0xca, 0x00, 0x91, 0x5e, 0xc6, 0x92, 0x49, 0xce, 0x18,
+  0xc5, 0x64, 0x17, 0xed, 0xbf, 0x63, 0xd0, 0xcd, 0xb8, 0xf7, 0xff, 0x29,
+  0x25, 0x35, 0x5a, 0x7a, 0x20, 0x30, 0xc9, 0x26, 0x95, 0xb2, 0x57, 0xd1,
+  0x46, 0x0d, 0x69, 0x18, 0x13, 0xc9, 0x7d, 0xb3
+};
+static unsigned int key_len = 80;
+const struct bootutil_key bootutil_keys[] = {
+    [0] = {
+        .key = key,
+        .len = &key_len,
+    },
+};
+const int bootutil_key_cnt = 1;
diff --git a/testplan/mynewt/keys/ec256/pkg.yml b/testplan/mynewt/keys/ec256/pkg.yml
new file mode 100644
index 0000000..2467ce4
--- /dev/null
+++ b/testplan/mynewt/keys/ec256/pkg.yml
@@ -0,0 +1,3 @@
+pkg.name: keys/ec256
+pkg.author: "Apache Mynewt <dev@mynewt.apache.org>"
+pkg.homepage: "http://mynewt.apache.org/"
diff --git a/testplan/mynewt/keys/ec256/src/keys.c b/testplan/mynewt/keys/ec256/src/keys.c
new file mode 100644
index 0000000..ece45c3
--- /dev/null
+++ b/testplan/mynewt/keys/ec256/src/keys.c
@@ -0,0 +1,19 @@
+#include <bootutil/sign_key.h>
+static unsigned char key[] = {
+  0x30, 0x59, 0x30, 0x13, 0x06, 0x07, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x02,
+  0x01, 0x06, 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x03, 0x01, 0x07, 0x03,
+  0x42, 0x00, 0x04, 0x6e, 0x68, 0x61, 0x7f, 0xd7, 0xe2, 0xc9, 0x3d, 0xb4,
+  0x0a, 0x2c, 0x6d, 0xb0, 0xd0, 0xce, 0xfe, 0x54, 0xb8, 0x96, 0xad, 0xfc,
+  0x60, 0x87, 0x89, 0x41, 0xe9, 0x2d, 0x21, 0xc8, 0x3e, 0x1d, 0x5e, 0xc3,
+  0x77, 0xfd, 0x62, 0x5f, 0xbb, 0xfb, 0xda, 0x10, 0xa7, 0x5a, 0x23, 0xaa,
+  0xfc, 0x01, 0xb5, 0xdc, 0x73, 0x3d, 0x37, 0xc1, 0x45, 0x8f, 0x90, 0x3b,
+  0x66, 0xfd, 0x2b, 0x95, 0x66, 0x9c, 0xc9
+};
+static unsigned int key_len = 91;
+const struct bootutil_key bootutil_keys[] = {
+    [0] = {
+        .key = key,
+        .len = &key_len,
+    },
+};
+const int bootutil_key_cnt = 1;
diff --git a/testplan/mynewt/keys/pkg.yml b/testplan/mynewt/keys/pkg.yml
new file mode 100644
index 0000000..e7e73e3
--- /dev/null
+++ b/testplan/mynewt/keys/pkg.yml
@@ -0,0 +1,12 @@
+pkg.name: keys
+pkg.author: "Apache Mynewt <dev@mynewt.apache.org>"
+pkg.homepage: "http://mynewt.apache.org/"
+
+pkg.deps.BOOTUTIL_SIGN_RSA:
+    - keys/rsa
+
+pkg.deps.BOOTUTIL_SIGN_EC:
+    - keys/ec
+
+pkg.deps.BOOTUTIL_SIGN_EC256:
+    - keys/ec256
diff --git a/testplan/mynewt/keys/rsa/pkg.yml b/testplan/mynewt/keys/rsa/pkg.yml
new file mode 100644
index 0000000..eaadda1
--- /dev/null
+++ b/testplan/mynewt/keys/rsa/pkg.yml
@@ -0,0 +1,3 @@
+pkg.name: keys/rsa
+pkg.author: "Apache Mynewt <dev@mynewt.apache.org>"
+pkg.homepage: "http://mynewt.apache.org/"
diff --git a/testplan/mynewt/keys/rsa/src/keys.c b/testplan/mynewt/keys/rsa/src/keys.c
new file mode 100644
index 0000000..bc59322
--- /dev/null
+++ b/testplan/mynewt/keys/rsa/src/keys.c
@@ -0,0 +1,34 @@
+#include <bootutil/sign_key.h>
+static unsigned char key[] = {
+  0x30, 0x82, 0x01, 0x0a, 0x02, 0x82, 0x01, 0x01, 0x00, 0xe2, 0x48, 0x5f,
+  0x31, 0x08, 0x50, 0x2e, 0x4f, 0x6d, 0xbf, 0xcd, 0xd0, 0x09, 0xf1, 0x5c,
+  0xd6, 0x08, 0xe9, 0x84, 0xcf, 0x75, 0x2c, 0x88, 0x07, 0xcc, 0x0e, 0xf9,
+  0x53, 0xae, 0x4a, 0x9a, 0x93, 0xb4, 0x1b, 0x55, 0x43, 0xb7, 0x7e, 0x10,
+  0xa8, 0x50, 0xd9, 0x14, 0x90, 0x05, 0x80, 0x15, 0xa0, 0x8c, 0xdb, 0xdc,
+  0x1b, 0x03, 0x56, 0xd6, 0x47, 0x94, 0x44, 0xa1, 0xe8, 0x15, 0xf4, 0x77,
+  0x49, 0x60, 0x45, 0x34, 0xa4, 0x17, 0x9a, 0x81, 0xa8, 0xfc, 0xb6, 0xd9,
+  0x21, 0xf6, 0x68, 0xfa, 0x7a, 0x13, 0xe5, 0x25, 0xcd, 0xa5, 0x0b, 0x77,
+  0x0a, 0x5f, 0xf6, 0x0b, 0x9d, 0x34, 0x8f, 0xc3, 0xf4, 0x91, 0xf7, 0xab,
+  0x28, 0x12, 0x52, 0xdc, 0xbb, 0xb2, 0x92, 0x80, 0x98, 0xe2, 0x13, 0x33,
+  0xe7, 0xc3, 0x2a, 0x1c, 0x27, 0x98, 0xfc, 0xff, 0x07, 0xdb, 0x5d, 0x16,
+  0xd2, 0x50, 0xc1, 0x8e, 0x12, 0xfa, 0x95, 0x98, 0x51, 0x91, 0xbb, 0xf9,
+  0xee, 0xc3, 0x65, 0xa4, 0x02, 0xe0, 0xbf, 0xb6, 0xb1, 0xc6, 0x20, 0xc7,
+  0x9f, 0xfe, 0x63, 0x61, 0x6a, 0x68, 0xf6, 0x08, 0xca, 0x55, 0x32, 0xc0,
+  0x50, 0xdd, 0x8d, 0x52, 0x73, 0x03, 0x7a, 0xbe, 0xd7, 0x32, 0xd9, 0x61,
+  0x99, 0x19, 0xff, 0x0d, 0xe6, 0x82, 0xc8, 0x1c, 0x3d, 0x07, 0x1a, 0xe9,
+  0xa8, 0x7b, 0xad, 0x75, 0x2c, 0x26, 0x87, 0x3d, 0x67, 0x2b, 0x5a, 0xc4,
+  0x7f, 0x70, 0x86, 0x70, 0x8a, 0x7e, 0xed, 0xe9, 0x2f, 0xbe, 0x2a, 0xd5,
+  0xb4, 0x33, 0x7b, 0xcc, 0x89, 0xcd, 0x57, 0x08, 0xbb, 0x72, 0xdf, 0x00,
+  0x8e, 0xea, 0x8a, 0x2a, 0xa8, 0xa0, 0x1c, 0xb8, 0x8a, 0x61, 0xaf, 0x32,
+  0x3d, 0x41, 0xe9, 0xf6, 0xb1, 0xa2, 0x73, 0xc2, 0xff, 0xd1, 0x32, 0x55,
+  0x1f, 0xda, 0x09, 0x23, 0xc1, 0x83, 0x51, 0xe1, 0x4f, 0xd5, 0x65, 0x3e,
+  0x97, 0x02, 0x03, 0x01, 0x00, 0x01
+};
+static unsigned int key_len = 270;
+const struct bootutil_key bootutil_keys[] = {
+    [0] = {
+        .key = key,
+        .len = &key_len,
+    },
+};
+const int bootutil_key_cnt = 1;