aboutsummaryrefslogtreecommitdiff
path: root/src/stm32/test
diff options
context:
space:
mode:
authorPavel V. Shatov (Meister) <meisterpaul1@yandex.ru>2017-08-06 21:47:56 +0300
committerPavel V. Shatov (Meister) <meisterpaul1@yandex.ru>2017-08-06 21:47:56 +0300
commit5c4d3b9b62cd8de2fae6ae49d479ee06173cadc4 (patch)
tree9093e435d846e71ce1afb8c6211f5c8c1ce292b8 /src/stm32/test
parentf96ad01980fc4d0ed40f6ffb0fbb7c2006421c18 (diff)
Added demo program that shows how to talk to the core and sign something.
Diffstat (limited to 'src/stm32/test')
-rw-r--r--src/stm32/test/modexp_fpga_model_vectors.h94
1 files changed, 94 insertions, 0 deletions
diff --git a/src/stm32/test/modexp_fpga_model_vectors.h b/src/stm32/test/modexp_fpga_model_vectors.h
new file mode 100644
index 0000000..622b16c
--- /dev/null
+++ b/src/stm32/test/modexp_fpga_model_vectors.h
@@ -0,0 +1,94 @@
+/* Generated automatically, do not edit. */
+
+#define N_384 \
+ {0xb06b4de3, 0x1006214f, 0xaa3c8cae, 0x6c568477, \
+ 0xb8c8d8b2, 0x08684070, 0x3b9ba674, 0x739e0eec, \
+ 0x950a0d8a, 0xb6b7443d, 0xfebe690c, 0xe2810099}
+
+#define M_384 \
+ {0x00d1bda6, 0x6c3babf4, 0xe418ec5b, 0x18435414, \
+ 0x5ed5b8aa, 0x0b62f138, 0x84551519, 0x1e94e625, \
+ 0x0901814a, 0x138eda05, 0x56b54f83, 0x1cd7605d}
+
+#define D_384 \
+ {0xad24a30c, 0x766d8dc3, 0xe2100b02, 0x24d1c4b0, \
+ 0xbb6a6342, 0x577df9be, 0x89bb1ec3, 0xdc3259f0, \
+ 0x1a343f93, 0x57a12599, 0xa328ae2f, 0xf85ef401}
+
+#define S_384 \
+ {0x65752d0f, 0x9a017293, 0x36bfa115, 0x4a7a81fc, \
+ 0xa76b945b, 0x49a3f645, 0x76801499, 0xb98e6a16, \
+ 0xd2467b6a, 0x75b7d614, 0x0fff0fde, 0xb31d1819}
+
+#define P_384 \
+ {0xe9ac4cf6, 0x03b2d80a, 0x7f1d091e, 0x49d5f1a0, \
+ 0xac2ae4ff, 0xbf9bf375}
+
+#define Q_384 \
+ {0xc1468f3e, 0xc6909231, 0x5a4d74ba, 0x477b303f, \
+ 0x4b2e10d1, 0x1f44e815}
+
+#define DP_384 \
+ {0x69b6c286, 0x95fbc613, 0x51988034, 0x8cb0d684, \
+ 0x9aff38e4, 0x9ef9ddb5}
+
+#define DQ_384 \
+ {0x1eda82b7, 0x84bf4377, 0x39712ff7, 0x24be179f, \
+ 0xa302c190, 0x80ab6159}
+
+#define MP_384 \
+ {0x9e163bb5, 0x35e718cb, 0xcde52b7b, 0x5db8552b, \
+ 0x46a300e0, 0x34f91e6b}
+
+#define MQ_384 \
+ {0x7b01a724, 0x90f0d5f9, 0x9e237ce5, 0x6d31fd28, \
+ 0x4ecb9dad, 0x58bf366a}
+
+#define N_512 \
+ {0xef78b4ed, 0xaee1cc78, 0x659b9935, 0x39d5f5e1, \
+ 0xa47c2b29, 0x5a38e8c4, 0x85e2b846, 0xa354614f, \
+ 0xde1f94ee, 0x7462ba8f, 0x991ffec3, 0x6172bc7a, \
+ 0x11784156, 0x572b6e41, 0xa23fa8d0, 0x257ae8f7}
+
+#define M_512 \
+ {0x005536b6, 0x43ea651f, 0x2fd3c70a, 0xa83659cb, \
+ 0xd0c1f47b, 0xa8033730, 0x29c6b082, 0x6db48613, \
+ 0x6b4f769c, 0x6bf531ff, 0x247d6d76, 0xea4ad050, \
+ 0xdc0e82cc, 0xedf5fd1c, 0xe07abb51, 0x92204551}
+
+#define D_512 \
+ {0xc9686c43, 0xbbe28d66, 0x758ef8bc, 0x9b7828e5, \
+ 0x2ec2804a, 0xb76745de, 0x83fcbba0, 0x2d9eba78, \
+ 0x215f4cc2, 0xf49387b3, 0x8ed0b9dc, 0x6c129231, \
+ 0x944368be, 0xdbf2db79, 0x16323c49, 0x34cdf801}
+
+#define S_512 \
+ {0xcc2fc6b6, 0xe4849987, 0x75773499, 0xcb0792b0, \
+ 0xe79f4600, 0xb2d739c5, 0x1a661ac6, 0xd3bf2db5, \
+ 0xfd1e029d, 0xfe887387, 0x4312635f, 0xb2b54b8d, \
+ 0x5d3b379e, 0x161eaa4f, 0xedfd932b, 0x780f0203}
+
+#define P_512 \
+ {0xfedea889, 0x97cfdb79, 0xcca87074, 0xe5abcda1, \
+ 0x3be201c4, 0xc416fd15, 0xf2130931, 0x61ff5937}
+
+#define Q_512 \
+ {0xf0889147, 0x5aa60f93, 0xb9927d86, 0x8f795c5c, \
+ 0x8e98dcf2, 0xad3aad74, 0x9441583a, 0x967dce41}
+
+#define DP_512 \
+ {0x2504d437, 0xfffbe9e5, 0xfc0aef22, 0x9b8563bd, \
+ 0xaa83fe3b, 0xc53b8d91, 0x15731c5f, 0xb6db2eeb}
+
+#define DQ_512 \
+ {0xd3265fba, 0x2eb65638, 0x4d106ec7, 0x000dfe69, \
+ 0x75f87505, 0x47d299d0, 0x1c115cdd, 0x599ca8c1}
+
+#define MP_512 \
+ {0x23359955, 0xcad299b6, 0x049bb248, 0x3828b6a5, \
+ 0x74c85825, 0x7dd8e109, 0x07edbda9, 0x4980c2c9}
+
+#define MQ_512 \
+ {0x8578120b, 0x91f4ca9e, 0x371d3e70, 0x0005bb89, \
+ 0xd31ed864, 0x477bd9cf, 0x65a1f03b, 0x606d3bc8}
+